]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ixgbe/base/ixgbe_common.c
net/ixgbe/base: fix clearing SAN MAC address
[dpdk.git] / drivers / net / ixgbe / base / ixgbe_common.c
index cca19efcb3d18c203d9db9ae40c2f27b1e968619..b2cc6fb02dcbd9751883ae1a901ad96a5737c5f4 100644 (file)
@@ -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? */
        }
 
        /* 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;
                hw->mac.ops.clear_rar(hw, rar);
 done:
        return IXGBE_SUCCESS;