Skip to content

CNB94: net: add check for current MAC address in dev_set_mac_address

JIRA: https://issues.redhat.com/browse/RHEL-16986
JIRA: https://issues.redhat.com/browse/RHEL-6368

This prevents network drivers' .ndo_set_mac_address method from being called when the MAC address is already the current one. There are drivers that more or less assume that this is how the network core already behaves. For example, iavf will send a virtchnl message to the PF requesting to add the new address and then a message to remove the old address. This logic is broken if old and new are the same address.

Tested: I used the reproducer steps from RHEL-6368, with VFs on Intel E810.

Signed-off-by: Michal Schmidt mschmidt@redhat.com

Edited by Michal Schmidt

Merge request reports