Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20b6a1c7 authored by Saeed Mahameed's avatar Saeed Mahameed
Browse files

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: 6f9485af ("net/mlx5e: Fail safe tc setup")
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent e3c19503
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2976,7 +2976,7 @@ static int mlx5e_setup_tc(struct net_device *netdev, u8 tc)
	new_channels.params = priv->channels.params;
	new_channels.params.num_tc = tc ? tc : 1;

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