net/mlx5: DR, Add infrastructure for supporting several steering formats
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Thu, 19 Nov 2020 02:53:53 +0000 (04:53 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Jan 2021 23:00:43 +0000 (15:00 -0800)
commit4bdba39b703acbe5d0094675a71f736d386fbe96
tree969b34d19bcfa2e6c0f1eb85d3fdcc59af49ef09
parentf6e7a024bfe5e11d91ccff46bb576e3fb5a516ea
net/mlx5: DR, Add infrastructure for supporting several steering formats

Add a struct of device specific callbacks for STE layer below dr_ste.
Each device will implement its HW-specific function, and a comon logic
from the DR code will access these functions through the new ste_ctx API.

More callbacks will follow in the subsequent patches.

Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@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 [new file with mode: 0644]