Skip to content

Commit 20b6a1c

Browse files
author
Saeed Mahameed
committed
net/mlx5e: Fix setup TC ndo
Fail-safe support patches introduced a trivial bug, setup tc callback is doing a wrong check of the netdevice state, the fix is simply to invert the condition. Fixes: 6f9485a ("net/mlx5e: Fail safe tc setup") Signed-off-by: Saeed Mahameed <[email protected]>
1 parent e3c1950 commit 20b6a1c

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2976,7 +2976,7 @@ static int mlx5e_setup_tc(struct net_device *netdev, u8 tc)
29762976
new_channels.params = priv->channels.params;
29772977
new_channels.params.num_tc = tc ? tc : 1;
29782978

2979-
if (test_bit(MLX5E_STATE_OPENED, &priv->state)) {
2979+
if (!test_bit(MLX5E_STATE_OPENED, &priv->state)) {
29802980
priv->channels.params = new_channels.params;
29812981
goto out;
29822982
}

0 commit comments

Comments
 (0)