]> 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)
commit9cde98b26ca986b0f39b3fcc303821f0aa7fb881
treebf908ac0b7777e19a103562799a99dec994fdde1
parent9769b58e2f31566b58624e28de661940740a874e
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