]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add generic macros to use metadata register mapping
authorJianbo Liu <jianbol@nvidia.com>
Mon, 1 Nov 2021 02:40:28 +0000 (02:40 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 2 Jul 2022 18:58:28 +0000 (11:58 -0700)
commit0eeb69c1241241f0b6d6a7dedb6413c004057900
tree58bff7277d642b02aadd3869d11dd1e51566f9cd
parente0fa482bebc47478ecc2b6045ad29a429a5be69a
net/mlx5e: Add generic macros to use metadata register mapping

There are many definitions to get bits and mask for different types of
metadata register mapping, add generic macros to unify them.

Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Ariel Levkovich <lariel@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_act.c
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
drivers/net/ethernet/mellanox/mlx5/core/en_tc.h