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)
commitf9d196bd632b8b79261ec3366c30ec3923ea9a02
tree6543e92c0594fcfb10be6a5e845180ff315d41e6
parentca6891f9b27db7764bba0798202b0a21d0dc909c
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: 10742efc20a4 ("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