Skip to content

Commit 4c2573e

Browse files
mikijoySaeed Mahameed
authored andcommitted
net/mlx5: Enable count action for rules with allow action
Enable the creation of rules with allow and count actions. This enables using counters on egress flow tables. Signed-off-by: Michael Guralnik <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 8a06a79 commit 4c2573e

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/fs_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,7 @@ static struct mlx5_flow_handle *add_rule_fg(struct mlx5_flow_group *fg,
15981598
static bool counter_is_valid(u32 action)
15991599
{
16001600
return (action & (MLX5_FLOW_CONTEXT_ACTION_DROP |
1601+
MLX5_FLOW_CONTEXT_ACTION_ALLOW |
16011602
MLX5_FLOW_CONTEXT_ACTION_FWD_DEST));
16021603
}
16031604

0 commit comments

Comments
 (0)