net/mlx5e: Offload flow rules to active lower representor
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 5 Mar 2019 19:11:14 +0000 (21:11 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 28 May 2020 01:13:48 +0000 (18:13 -0700)
commitd34eb2fcd00472323d9e26ee0aec498c2c6f5b6f
tree222b2f49d1c64187e9b17fa77c7fe5a60b1217e2
parent553f9328385d954644d74dedb655f85b687a9470
net/mlx5e: Offload flow rules to active lower representor

When a bond device is created over one or more non uplink representors,
and when a flow rule is offloaded to such bond device, offload a rule
to the active lower device.

Assuming that this is active-backup lag, the rules should be offloaded
to the active lower device which is the representor of the direct
path (not the failover).

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Vu Pham <vuhuong@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