Skip to content

Commit 2414c9b

Browse files
ozshlomoSaeed Mahameed
authored andcommitted
net/mlx5e: TC, ignore match level for post meter rules
The post meter table only matches on reg_c5. As such, the inner/outer match levels are irrelevant for the match critieria. The cited patch only sets the outer criteria to none, thus setting the inner match level for encapsulated packets. This caused rules with police action on tunnel devices to not find an existing flow group for the match criteria, thus failing to offload the rule. Set both the inner and outer match levels to none for post_meter rules. Fixes: 0d8c38d ("net/mlx5e: TC, init post meter rules with branching attributes") Signed-off-by: Oz Shlomo <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent b5e2393 commit 2414c9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/tc/post_meter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ mlx5e_post_meter_add_rule(struct mlx5e_priv *priv,
127127
attr->counter = act_counter;
128128

129129
attr->flags |= MLX5_ATTR_FLAG_NO_IN_PORT;
130+
attr->inner_match_level = MLX5_MATCH_NONE;
130131
attr->outer_match_level = MLX5_MATCH_NONE;
131132
attr->chain = 0;
132133
attr->prio = 0;

0 commit comments

Comments
 (0)