]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit258b67acb8790cf8c8b746dfe0f0f3064beb4831
tree967c7c7d18c50c042c7e7ef5bf7b194f683b9a52
parent63cbca3a73bc5e0a9c6e9476435af4dc90a8529f
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