Hi, Expert
I've investigated this for some days.
My purpose is launching a VM which has two VFs come from two physical NICs, and then do the bonding inside the VM.
I've tried all the 7 bonding modes, only the mode 1(active-backup) works, all the others cannot work.
From the following articles, the reason why other bonding mode cannot work is VM cannot change the VF's MAC address successfully.
https://bugzilla.redhat.com/show_bug.cgi?id=1164224
SR-IOV on NIC 82599: Are VF MAC Addresses unique?
From the igb driver code, I also notice the HOST refuse VM's change VF's MAC address request.
case E1000_VF_SET_MAC_ADDR:
retval = -EINVAL;
if (!(vf_data->flags & IGB_VF_FLAG_PF_SET_MAC))
retval = igb_set_vf_mac_addr(adapter, msgbuf, vf);
else
dev_warn(&pdev->dev, "VF %d attempted to override administratively set MAC address\nReload the VF driver to resume operations\n", vf);
break;
So, My question is
* Does Intel's SR-IOV NIC only support bonding mode active-backup? only this mode not request VM change it's interface's MAC address.
* If I want to use active-active bonding mode, such as mode 0/2/4/5/6, any solution/walkaround to make it work?
Thanks.