]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd807f06c24ec3d564f5d9450607eaab7167a9871
tree969b34d19bcfa2e6c0f1eb85d3fdcc59af49ef09
parentb1e2852810e2e12f69ea33adcfdfd3daad3d91e6
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]