net/mlx5e: CT: Map 128 bits labels to 32 bit map ID
authorEli Britstein <elibr@mellanox.com>
Thu, 18 Jun 2020 15:38:31 +0000 (15:38 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jul 2020 23:37:00 +0000 (16:37 -0700)
commit54b154ecfb8c66dfeba6578a64e79c2104da4ced
tree73dea58ab9dd356e8d41e953973bb4b28fc46f0a
parent0bdc89b39d622b8929a687eee194e4e166fe84df
net/mlx5e: CT: Map 128 bits labels to 32 bit map ID

The 128 bits ct_label field is matched using a 32 bit hardware register.
As such, only the lower 32 bits of ct_label field are offloaded. Change
this logic to support setting and matching higher bits too.
Map the 128 bits data to a unique 32 bits ID. Matching is done as exact
match of the mapping ID of key & mask.

Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Maor Dickman <maord@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c