Skip to content

Commit

Permalink
net/mlx5: Allow ft level ignore for nic rx tables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ariel Levkovich authored and Saeed Mahameed committed Sep 23, 2020
1 parent ae43033 commit 006f623
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 006f623

Please sign in to comment.