net/mlx5e: Disallow tc redirect offload cases we don't support
authorPaul Blakey <paulb@mellanox.com>
Mon, 24 Jun 2019 12:04:58 +0000 (15:04 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 28 Jun 2019 23:04:00 +0000 (16:04 -0700)
commitf6dc1264f1c01976a84239d1038359604ee42001
treeefe453cb89b4c1cc7dfbf865f1b713ff57be87d6
parent7ff40a46dd188b83311203e72cedf42eb264fdf1
net/mlx5e: Disallow tc redirect offload cases we don't support

After changing the parent_id to be the same for both NICs of same
the hardware device, netdev_port_same_parent_id now returns true for
more cases (all the lower devices in the hierarchy are on the same
hardware device).

If merged eswitch isn't enabled, these cases aren't supported, so disallow
them.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h