]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix setup TC ndo
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 May 2017 13:40:46 +0000 (16:40 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 14 May 2017 10:33:45 +0000 (13:33 +0300)
commitc5bd09f32d270fb0476e10ddb1b6b1e9eee7a88a
tree3211412f7307b9696fbc7eef17fab498a0941808
parente993c1235924bbeeb2c9c08cf83bf15a0368e4bd
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: aae050c54718 ("net/mlx5e: Fail safe tc setup")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c