net/mlx5: DR, Create multi-destination flow table with level less than 64
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 9 Dec 2020 14:40:38 +0000 (16:40 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Jun 2021 01:30:21 +0000 (18:30 -0700)
commit216214c64a8c1cb9078c2c0aec7bb4a2f8e75397
treea8c239f3b44e552807de67fc2878b7187dc9fc0e
parent5349cbba754ee54f6cca8b946aa9172f1ac60b8c
net/mlx5: DR, Create multi-destination flow table with level less than 64

Flow table that contains flow pointing to multiple flow tables or multiple
TIRs must have a level lower than 64. In our case it applies to muli-
destination flow table.
Fix the level of the created table to comply with HW Spec definitions, and
still make sure that its level lower than SW-owned tables, so that it
would be possible to point from the multi-destination FW table to SW
tables.

Fixes: 34583beea4b7 ("net/mlx5: DR, Create multi-destination table for SW-steering use")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_fw.c
include/linux/mlx5/mlx5_ifc.h