net/mlx5: Support partial TTC rules
authorMaor Gottlieb <maorg@nvidia.com>
Sun, 4 Jul 2021 12:16:21 +0000 (15:16 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 19 Oct 2021 03:18:07 +0000 (20:18 -0700)
commit4c71ce50d2fe7f1b142113ffa412c9ed6677d52c
tree967c7c7d18c50c042c7e7ef5bf7b194f683b9a52
parent939a6567f976efb8b3e6d601ce35eb56b17babd0
net/mlx5: Support partial TTC rules

Add bitmasks to ttc_params to indicate if rule is valid or not.
It will allow to create TTC table with support only in part of the
traffic types.
In later patches which introduce the steering based LAG port selection,
TTC will be created with only part of the rules according to the hash
type.

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/lib/fs_ttc.c
drivers/net/ethernet/mellanox/mlx5/core/lib/fs_ttc.h