net/mlx4_core: Fix call to __mlx4_unregister_mac

In function mlx4_master_deactivate_admin_state() __mlx4_unregister_mac was
called using the MAC index. It should be called with the value of the MAC itself.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Jack Morgenstein and committed by David S. Miller c32b7dfb e9b51a19

+1 -1
+1 -1
drivers/net/ethernet/mellanox/mlx4/cmd.c
··· 1691 vp_oper->vlan_idx = NO_INDX; 1692 } 1693 if (NO_INDX != vp_oper->mac_idx) { 1694 - __mlx4_unregister_mac(&priv->dev, port, vp_oper->mac_idx); 1695 vp_oper->mac_idx = NO_INDX; 1696 } 1697 }
··· 1691 vp_oper->vlan_idx = NO_INDX; 1692 } 1693 if (NO_INDX != vp_oper->mac_idx) { 1694 + __mlx4_unregister_mac(&priv->dev, port, vp_oper->state.mac); 1695 vp_oper->mac_idx = NO_INDX; 1696 } 1697 }