]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Lag, set LAG traffic type mapping
authorMaor Gottlieb <maorg@nvidia.com>
Tue, 13 Jul 2021 12:20:10 +0000 (15:20 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 19 Oct 2021 03:18:08 +0000 (20:18 -0700)
commit4f4092d7df8f19d69e203666e2de6ea38707fac9
treee37999893f149118d7f1cef522ca43b98c616c26
parent4d2a216b76927a1e386184936560da5aa0521677
net/mlx5: Lag, set LAG traffic type mapping

Generate a traffic type bitmap that will define which
steering objects we need to create for the steering
based LAG.

Bits in this bitmap are set according to the LAG hash type.
In addition, have a field that indicate if the lag is in encap
mode or not.

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/lag/lag.h
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/lag/port_sel.h [new file with mode: 0644]