From: Wei Dai Date: Wed, 21 Dec 2016 09:47:46 +0000 (+0800) Subject: net/ixgbe/base: fix clearing SAN MAC address X-Git-Tag: spdx-start~4959 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1b417db3d3d1a92ebcef25913a5e268c4cae830a;p=dpdk.git net/ixgbe/base: fix clearing SAN MAC address Receive Address Register (RAR) entries, including SAN MAC address, are cleared when VMDq pool bits are cleared. Prevent SAN MAC address to be cleared. Fixes: af75078fece3 ("first public release") Signed-off-by: Wei Dai --- diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index cca19efcb3..b2cc6fb02d 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c +++ b/drivers/net/ixgbe/base/ixgbe_common.c @@ -3764,7 +3764,8 @@ s32 ixgbe_clear_vmdq_generic(struct ixgbe_hw *hw, u32 rar, u32 vmdq) } /* was that the last pool using this rar? */ - if (mpsar_lo == 0 && mpsar_hi == 0 && rar != 0) + if (mpsar_lo == 0 && mpsar_hi == 0 && + rar != 0 && rar != hw->mac.san_mac_rar_index) hw->mac.ops.clear_rar(hw, rar); done: return IXGBE_SUCCESS;