net/mlx5e: Offload TC e-switch rules with egress LAG device
authorRabie Loulou <rabiel@mellanox.com>
Wed, 6 Jun 2018 13:27:08 +0000 (16:27 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 14 Dec 2018 21:28:53 +0000 (13:28 -0800)
commit7ba58ba7ba5e19324b3879000ef341966b19727b
treed6f291132636f5f9fb6aab7378330f1c3cc94f34
parent491c37e49b48e7a18dc79e29f3ac13e0c3d0fb54
net/mlx5e: Offload TC e-switch rules with egress LAG device

When parsing TC FDB actions, if the egress device is a bond/team
net-device which enslaved the uplink representor of the e-switch,
use the uplink representor as the destination in the HW rule.

Signed-off-by: Rabie Loulou <rabiel@mellanox.com>
Signed-off-by: Aviv Heller <avivh@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.c