net/mlx5: Set term table as an unmanaged flow table
authorAriel Levkovich <lariel@nvidia.com>
Wed, 31 Mar 2021 07:09:02 +0000 (10:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Jun 2021 07:00:37 +0000 (09:00 +0200)
commit5dc905501f71b03019e53c33f91ed25072c738c3
tree5abbe922e940294ea2110b3e9f674ecc17d6daa2
parent143154a151c98c144a5bce63cd69f0b21be8b010
net/mlx5: Set term table as an unmanaged flow table

commit 6ff51ab8aa8fcbcddeeefce8ca705b575805d12b upstream.

Termination tables are restricted to have the default miss action and
cannot be set to forward to another table in case of a miss.
If the fs prio of the termination table is not the last one in the
list, fs_core will attempt to attach it to another table.

Set the unmanaged ft flag when creating the termination table ft
and select the tc offload prio for it to prevent fs_core from selecting
the forwarding to next ft miss action and use the default one.

In addition, set the flow that forwards to the termination table to
ignore ft level restrictions since the ft level is not set by fs_core
for unamanged fts.

Fixes: 249ccc3c95bd ("net/mlx5e: Add support for offloading traffic from uplink to uplink")
Signed-off-by: Ariel Levkovich <lariel@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_termtbl.c