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)
commit34ea969d164503b683d6b918b13b78a8e267c2cf
treebf908ac0b7777e19a103562799a99dec994fdde1
parent7690900052303e758b797db1ff8013fe425d1806
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