]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add send to vport rules on paired device
authorMark Bloch <mbloch@nvidia.com>
Tue, 3 Aug 2021 23:19:55 +0000 (16:19 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Aug 2021 20:49:25 +0000 (13:49 -0700)
commit277ba05432a1e0272c474afbea7a78b7e0d80c07
tree0010c28d2f9750e501148d153dead3d180264299
parent1c3381fb72dd226d2ab361e438a50e346be045fa
net/mlx5: Add send to vport rules on paired device

When two mlx5 devices are paired in switchdev mode, always offload the
send-to-vport rule to the peer E-Switch. This allows to abstract
the logic when this is really necessary (single FDB) and combine
the logic of both cases into one.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.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/eswitch_offloads.c