]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1d8f7a1281424d184c395df3d990caf361f41bd
treee47bfbd5bbc1a499d2b2b826930d99920f61686e
parent8f9dd7fe85a4dd579b223e41003ea40f36de52e2
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: 3ea8fa69c63a ("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