From: Bernard Iremonger Date: Tue, 8 Mar 2016 17:10:27 +0000 (+0000) Subject: ixgbe: fix VF close to remove MAC address X-Git-Tag: spdx-start~7393 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5b8a98d69c4d66608012f65db14d2113611bc03f;p=dpdk.git ixgbe: fix VF close to remove MAC address Call the ixgbevf_remove_mac_addr() function in the ixgbevf_dev_close() function to ensure that the VF traffic goes to the PF after stop, close and detach of the VF. Fixes: af75078fece3 ("first public release") Signed-off-by: Bernard Iremonger Acked-by: Konstantin Ananyev --- diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index bedff984b9..6b5cbe3d8d 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -4033,8 +4033,12 @@ ixgbevf_dev_close(struct rte_eth_dev *dev) ixgbe_dev_free_queues(dev); - /* reprogram the RAR[0] in case user changed it. */ - ixgbe_set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV); + /** + * Remove the VF MAC address ro ensure + * that the VF traffic goes to the PF + * after stop, close and detach of the VF + **/ + ixgbevf_remove_mac_addr(dev, 0); } static void ixgbevf_set_vfta_all(struct rte_eth_dev *dev, bool on)