net/mlx5: DR, Refactor ste_ctx handling for STE v0/1
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 23 Feb 2022 16:17:39 +0000 (18:17 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Mar 2022 21:33:04 +0000 (13:33 -0800)
commit638a07f1090ea79fa6720b4d0265c6f8206f0c1b
tree5ccce2c04dba337e7c1b477ca1964a1329dac390
parent75a3926ca6a434651d4086a8a9152c1da7d7852e
net/mlx5: DR, Refactor ste_ctx handling for STE v0/1

As preparation for supporting ConnectX-7, this patches changes handling
of ste_ctx handling for existing STE v0 and V1:
 - each context is now a static struct, and it has a corresponding getter
 - v0 and v1 were extended to contain the fields that are required for
   integrating STEv2.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.h
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v0.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h