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)
commit1065e0015dd7d83b3d03a9396ca37d3cca9a5ce5
treee37999893f149118d7f1cef522ca43b98c616c26
parent3d677735d3b7f00f42cfd57a51d3d2109cf65f87
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]