net/ixgbe: fix setting VF MAC address
authorGuinan Sun <guinanx.sun@intel.com>
Wed, 11 Mar 2020 09:06:51 +0000 (09:06 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 18 Mar 2020 14:29:39 +0000 (15:29 +0100)
commita6131c7a9589fb452f00c4a7c8f1197108691f6f
tree1b9fec7abd98f939a8dff2754700497fee621765
parent536db938a444755b09324d48a4291591a1be31a6
net/ixgbe: fix setting VF MAC address

The reason why PF cannot receive data normally is that vf performed
the clear_rar operation through dev close without adding a mac address. 
This will cause the association between the index and rx address set
by VMDq to be cancelled,thus affecting the data reception of PF. The
correction method is to add a check action, and do not perform the
set_rar operation without adding a mac address to prevent affecting the
reception of data.

Fixes: 3c4270187518 ("net/ixgbe: support VF MAC address add/remove")
Cc: stable@dpdk.org
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/ixgbe/ixgbe_pf.c