linux/drivers/net/ethernet/intel
Slawomir Laba 3a7001788f i40e: Fix MAC address setting for a VF via Host/VM
Fix MAC setting flow for the PF driver.

Update the unicast VF's MAC address in VF structure if it is
a new setting in i40e_vc_add_mac_addr_msg.

When unicast MAC address gets deleted, record that and
set the new unicast MAC address that is already waiting in the filter
list. This logic is based on the order of messages arriving to
the PF driver.

Without this change the MAC address setting was interpreted
incorrectly in the following use cases:
1) Print incorrect VF MAC or zero MAC
ip link show dev $pf
2) Don't preserve MAC between driver reload
rmmod iavf; modprobe iavf
3) Update VF MAC when macvlan was set
ip link add link $vf address $mac $vf.1 type macvlan
4) Failed to update mac address when VF was trusted
ip link set dev $vf address $mac

This includes all other configurations including above commands.

Fixes: f657a6e131 ("i40e: Fix VF driver MAC address configuration")
Signed-off-by: Slawomir Laba <slawomirx.laba@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2020-11-10 15:03:06 -08:00
..
e1000 e1000: remove unused and incorrect code 2020-10-13 19:44:01 -07:00
e1000e e1000e: Add support for Meteor Lake 2020-09-28 14:42:46 -07:00
fm10k net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
i40e i40e: Fix MAC address setting for a VF via Host/VM 2020-11-10 15:03:06 -08:00
iavf Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-10-05 18:40:01 -07:00
ice ice: fix adding IP4 IP6 Flow Director rules 2020-10-09 13:14:19 -07:00
igb net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
igbvf intel-ethernet: clean up W=1 warnings in kdoc 2020-09-25 16:28:59 -07:00
igc net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
ixgb intel: handle unused assignments 2020-09-25 16:28:59 -07:00
ixgbe net: remove unneeded break 2020-10-20 10:28:21 -07:00
ixgbevf net: intel: Remove in_interrupt() warnings 2020-09-29 14:02:54 -07:00
e100.c net: e100: Remove in_interrupt() usage and pointless GFP_ATOMIC allocation 2020-09-29 14:02:54 -07:00
Kconfig ice: implement device flash update via devlink 2020-07-28 17:07:06 -07:00
Makefile