Skip to content

Commit

Permalink
Fix checking counter in mlx5e_stats_flower
Browse files Browse the repository at this point in the history
Signed-off-by: Roi Dayan <roid@mellanox.com>
  • Loading branch information
roidayan committed Nov 12, 2018
1 parent 80dd216 commit 0f41c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3768,7 +3768,7 @@ int mlx5e_stats_flower(struct mlx5e_priv *priv,
if (!flow || !same_flow_direction(flow, flags))
return -EINVAL;

if (flow->flags & MLX5E_TC_FLOW_SIMPLE)
if (flow->flags & MLX5E_TC_FLOW_OFFLOADED)
counter = mlx5_flow_rule_counter(flow->rule[0]);
else
counter = flow->dummy_counter;
Expand Down

0 comments on commit 0f41c00

Please sign in to comment.