]> 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)
commitb260a48c1fb43a7bd1183e79186f25d52989d994
tree969b34d19bcfa2e6c0f1eb85d3fdcc59af49ef09
parent10728f9f3ba35006261c47bb2174ea628a1de56b
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]