antrea
antrea copied to clipboard
To support defining static mac addresses for SecondaryInterfaces for SR-IOV
Describe the bug Creating this issue based on discussion :https://github.com/antrea-io/antrea/pull/7137#discussion_r2080492102 implementation and testing may need to be different for SR-IOV interfaces, will raise a follow-up PR for that.
Setting the MAC address on a SRIOV can either be:
Synchronous: The MAC is applied immediately to the VF
Asynchronous: The MAC is set at the PF level but takes time to propagate to the VF
Case 1: Intel Drivers (i40e/iavf)\
If MAC is set on the PF, the VF netdev may eventually pick it up (asynchronously). We can skip setting it directly on the VF, assuming the async update works (with retries).
However , This introduces some timing risks.
Case 2: Mellanox Drivers
Mellanox NICs do not automatically propagate the MAC from PF to VF. It must set the MAC address explicitly on the VF
For VLAN network case please check this PR: #7137