On 9/14/2026 10:17 AM, David Marchand wrote:
On port restart, all MAC addresses get pushed *twice* to the hardware,
once by the driver and once by the eth_dev_mac_restore() in ethdev.

On the other hand, MAC address filters are reset in the hardware
by the PF only when a VF reset is triggered.

Strictly speaking, the mac restore on port (re)start is unneeded,
if no VF reset happened, so we can announce to ethdev that no mac
restoration is needed via a get_restore_flags callback.

Then, move the mac restoration to the VF reset handler.

Fixes: 3d42086def30 ("net/iavf: preserve MAC address with i40e PF Linux driver")
Cc: [email protected]

Signed-off-by: David Marchand <[email protected]>
---

(with Ciara's suggested fix)

Acked-by: Anatoly Burakov <[email protected]>

--
Thanks,
Anatoly

Reply via email to