]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use correct eswitch for stack devices with lag
authorDmytro Linkin <dlinkin@nvidia.com>
Thu, 24 Jun 2021 10:37:36 +0000 (13:37 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 26 Aug 2021 22:15:42 +0000 (15:15 -0700)
commit19b184836f0bc9c5e8260caa00371733467a05a8
tree6543e92c0594fcfb10be6a5e845180ff315d41e6
parent55ed7996a3c5253bde3300e48835715fc2df6c02
net/mlx5e: Use correct eswitch for stack devices with lag

If link aggregation is used within stack devices driver rejects encap
rules if PF of the VF tunnel device is down. This happens because route
resolved for other PF and its eswitch instance is used to determine
correct vport.
To fix that use devcom feature to retrieve other eswitch instance if
failed to find vport for the 1st eswitch and LAG is active.

Fixes: 7e645301d73e ("net/mlx5e: VF tunnel TX traffic offloading")
Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c