]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: DR, Add helper to get backing dr table from a mlx5 flow table
authorPaul Blakey <paulb@nvidia.com>
Tue, 13 Jul 2021 08:19:24 +0000 (11:19 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 11 Mar 2022 07:38:23 +0000 (23:38 -0800)
commitb9fb9281e56489f62396ab33f0f4b6b43966660f
treebf908ac0b7777e19a103562799a99dec994fdde1
parentcc05fad14e374333d5cadcdd5d03e826dd1ec4e5
net/mlx5: DR, Add helper to get backing dr table from a mlx5 flow table

If sw steering was used to create the table, dr steeering fs creates
a backing dr table for the mlx5 flow table.

Add helper to return this table so it can be used to create matchers and
add rules on it directly instead of passing via eswitch_offloads/fs_core
insertion.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_table.c
drivers/net/ethernet/mellanox/mlx5/core/steering/mlx5dr.h