]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, add support to create/destroy/modify port selection
authorMaor Gottlieb <maorg@nvidia.com>
Thu, 15 Jul 2021 07:13:52 +0000 (10:13 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 19 Oct 2021 03:18:09 +0000 (20:18 -0700)
commitb5f58020e9cbc603d5144a9522bc80213f3eb6bb
tree043c8334f5cb06d4905a3ff84bf001763b378237
parent0ba4206bed6df3a081063891132dafbf2c5b3ccc
net/mlx5: Lag, add support to create/destroy/modify port selection

Add create function, build the steering tables, TTC and definers
according to the LAG hash type.

The destroy function, destroys all the steering components.

The modify functions is used when the bond mapping changes and it
iterates over all the rules in the definers and modifies them to steer
the packet to the relevant active ports.

Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/Makefile
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.h