diff options
author | Ariel Levkovich <lariel@mellanox.com> | 2020-04-28 00:39:38 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2020-09-24 00:44:34 +0200 |
commit | 006f623e67ff281ce290276f0c937a6c57de2810 (patch) | |
tree | 23fefc3903b6b2b8f91332f7f02ecd83cf593f53 | |
parent | net/mlx5: Refactor multi chains and prios support (diff) | |
download | linux-006f623e67ff281ce290276f0c937a6c57de2810.tar.xz linux-006f623e67ff281ce290276f0c937a6c57de2810.zip |
net/mlx5: Allow ft level ignore for nic rx tables
Allow setting a flow table with a lower level
as a rule destination in nic rx tables.
This is required in order to support table chaining
of tc nic flows.
Signed-off-by: Ariel Levkovich <lariel@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c index 75fa44eee434..6141e9ec8190 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c @@ -1595,11 +1595,12 @@ static bool dest_is_valid(struct mlx5_flow_destination *dest, return true; if (ignore_level) { - if (ft->type != FS_FT_FDB) + if (ft->type != FS_FT_FDB && + ft->type != FS_FT_NIC_RX) return false; if (dest->type == MLX5_FLOW_DESTINATION_TYPE_FLOW_TABLE && - dest->ft->type != FS_FT_FDB) + ft->type != dest->ft->type) return false; } |