Skip to content

Commit 0a2a6f4

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5e: Fix stats update for matchall classifier
It's bytes, packets, lastused. Fixes: fcb64c0 ("net/mlx5: E-Switch, add ingress rate support") Signed-off-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 8fc3e29 commit 0a2a6f4

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4614,7 +4614,7 @@ void mlx5e_tc_stats_matchall(struct mlx5e_priv *priv,
46144614
dpkts = cur_stats.rx_packets - rpriv->prev_vf_vport_stats.rx_packets;
46154615
dbytes = cur_stats.rx_bytes - rpriv->prev_vf_vport_stats.rx_bytes;
46164616
rpriv->prev_vf_vport_stats = cur_stats;
4617-
flow_stats_update(&ma->stats, dpkts, dbytes, jiffies,
4617+
flow_stats_update(&ma->stats, dbytes, dpkts, jiffies,
46184618
FLOW_ACTION_HW_STATS_DELAYED);
46194619
}
46204620

0 commit comments

Comments
 (0)