]> 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)
commit3b1d3a8e37fecf3ac352ef63c2642e780f89c8e1
treee47bfbd5bbc1a499d2b2b826930d99920f61686e
parent874421db372190dde133d6dd8de6e5a293b99c0c
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: 8a809af0d3b8 ("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