]> 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)
commitc5e84ce2d10feb539628ba1d03d9391718d91487
tree3211412f7307b9696fbc7eef17fab498a0941808
parent410552acf043de1e0d4ed431b0a5d80ae2f12fb2
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: 951c4801c62d ("net/mlx5e: Fail safe tc setup")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c