diff options
author | Michael Guralnik <michaelgur@mellanox.com> | 2020-07-14 21:28:35 -0700 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-07-15 22:21:29 -0700 |
commit | 4c2573e1f6c79525df9094f6ba085fcc35c18c45 (patch) | |
tree | dc5eca00b142920e271346573ff35b6fa3791ee3 | |
parent | 8a06a79b0aa811eee6d56b3cfc738c5d08b0dc74 (diff) | |
download | linux-4c2573e1f6c79525df9094f6ba085fcc35c18c45.tar.bz2 |
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 <michaelgur@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c index e47a66983935..644fe4c2f0fa 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c @@ -1598,6 +1598,7 @@ static struct mlx5_flow_handle *add_rule_fg(struct mlx5_flow_group *fg, static bool counter_is_valid(u32 action) { return (action & (MLX5_FLOW_CONTEXT_ACTION_DROP | + MLX5_FLOW_CONTEXT_ACTION_ALLOW | MLX5_FLOW_CONTEXT_ACTION_FWD_DEST)); } |