]> 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)
commita5b3c1ca5f2f8341a81f84eafd74df12b54c1920
tree043c8334f5cb06d4905a3ff84bf001763b378237
parent3044470c13124038ecca022d44f4e81dafb63031
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