Skip to content

Commit c32b7df

Browse files
Jack Morgensteindavem330
authored andcommitted
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>
1 parent e9b51a1 commit c32b7df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/net/ethernet/mellanox/mlx4

‎drivers/net/ethernet/mellanox/mlx4/cmd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ static void mlx4_master_deactivate_admin_state(struct mlx4_priv *priv, int slave
16911691
vp_oper->vlan_idx = NO_INDX;
16921692
}
16931693
if (NO_INDX != vp_oper->mac_idx) {
1694-
__mlx4_unregister_mac(&priv->dev, port, vp_oper->mac_idx);
1694+
__mlx4_unregister_mac(&priv->dev, port, vp_oper->state.mac);
16951695
vp_oper->mac_idx = NO_INDX;
16961696
}
16971697
}

0 commit comments

Comments
 (0)