]> 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)
commitdce13c6a8812c75485ec1500078f47b2706545b1
treee37999893f149118d7f1cef522ca43b98c616c26
parentc9a8bc849cdb55c1b9291887ab3bb24a21c49782
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]