net/mlx5e: CT: Expand tunnel register mappings
authorPaul Blakey <paulb@mellanox.com>
Tue, 5 May 2020 13:41:02 +0000 (16:41 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Jul 2020 02:51:16 +0000 (19:51 -0700)
commitd12f4521d3eff83206a0bb4a9135252ffbf1c3b5
treeacb05c2451d169c93e7c380dc7c30244018b3173
parent8f5b3c3ec10cb896c4949b5c26060bd610025dd8
net/mlx5e: CT: Expand tunnel register mappings

Reg_c1 is 32 bits wide. Originally, 24 bit were allocated for the tuple_id,
6 bits for tunnel mapping and 2 bits for tunnel options mappings.

Restoring the ct state from zone lookup instead of tuple id requires
reg_c1 to store 8 bits mapping the ct zone, leaving 24 bits for tunnel
mappings.

Expand tunnel and tunnel options register mappings to 12 bit each.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h