]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Correctly set LAG mode for ECPF
authorBodong Wang <bodong@mellanox.com>
Wed, 13 Feb 2019 16:52:34 +0000 (10:52 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 16 Feb 2019 01:25:56 +0000 (17:25 -0800)
commit42a97799828d9c237508b3e87792fc18e19d38c0
tree8573379c5cb5f9235b733f168a55d62dab629244
parent1011c8806266abf1d9925d594b33d34bf156f090
net/mlx5: Correctly set LAG mode for ECPF

When bonding is added, driver assumes that it's RoCE LAG if no VF is
enabled. This is not enough for ECPF as the VF is enabled in host PF
side. LAG should only choose RoCE mode when both slave devices meet
conditions below:
 1. E-Switch offloads mode is NONE.
 2. No VF is enabled.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c