]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix LAG requirement when CONFIG_MLX5_ESWITCH is off
authorAviv Heller <avivh@mellanox.com>
Tue, 18 Dec 2018 17:03:27 +0000 (19:03 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 20 Dec 2018 13:06:03 +0000 (05:06 -0800)
commitcd28a3a4d5593601dd397b1c80123e69eea3a493
treebbb9368f43ba52a43568b6165dc603d65c604fc1
parent58b669570cf567304deadfbc6fb7d575974bb525
net/mlx5: Fix LAG requirement when CONFIG_MLX5_ESWITCH is off

If CONFIG_MLX5_ESWITCH is not defined, test for SR-IOV being disabled,
instead of calling e-switch LAG prereq routine.

Since LAG with SRIOV is allowed only when switchdev mode is on.

Fixes: 85a807f3de6c ("net/mlx5: Allow/disallow LAG according to pre-req only")
Signed-off-by: Aviv Heller <avivh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c