net/mlx5e: Fix allowed tc redirect merged eswitch offload cases
authorMaor Dickman <maord@mellanox.com>
Thu, 23 Apr 2020 12:16:17 +0000 (15:16 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 23 May 2020 00:28:40 +0000 (17:28 -0700)
commit321348475d544aa6705dcfac2135deeccb8dc0bb
treee47bfbd5bbc1a499d2b2b826930d99920f61686e
parentf7936ddd35d8b849daf0372770c7c9dbe7910fca
net/mlx5e: Fix allowed tc redirect merged eswitch offload cases

After changing the parent_id to be the same for both NICs of same
The cited commit wrongly allow offload of tc redirect flows from
VF to uplink and vice versa when devcies are on different eswitch,
these cases aren't supported by HW.

Disallow the above offloads when devcies are on different eswitch
and VF LAG is not configured.

Fixes: f6dc1264f1c0 ("net/mlx5e: Disallow tc redirect offload cases we don't support")
Signed-off-by: Maor Dickman <maord@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c