antrea icon indicating copy to clipboard operation
antrea copied to clipboard

To support defining static mac addresses for SecondaryInterfaces for SR-IOV

Open KMAnju-2021 opened this issue 5 months ago • 0 comments

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

KMAnju-2021 avatar May 12 '25 20:05 KMAnju-2021