|
|
d8f823 |
From d8752233d9a5fd952b8da8022adf494d835e81b0 Mon Sep 17 00:00:00 2001
|
|
|
d8f823 |
From: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Date: Mon, 1 Jun 2020 15:40:56 -0400
|
|
|
d8f823 |
Subject: [PATCH 301/312] [netdrv] net/mlx5e: Fix stats update for matchall
|
|
|
d8f823 |
classifier
|
|
|
d8f823 |
|
|
|
d8f823 |
Message-id: <20200601154102.25980-34-ahleihel@redhat.com>
|
|
|
d8f823 |
Patchwork-id: 315738
|
|
|
d8f823 |
Patchwork-instance: patchwork
|
|
|
d8f823 |
O-Subject: [RHEL8.3 BZ 1842258 33/39] net/mlx5e: Fix stats update for matchall classifier
|
|
|
d8f823 |
Bugzilla: 1842258
|
|
|
d8f823 |
RH-Acked-by: Honggang Li <honli@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Kamal Heib <kheib@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Marcelo Leitner <mleitner@redhat.com>
|
|
|
d8f823 |
RH-Acked-by: Jarod Wilson <jarod@redhat.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Bugzilla: http://bugzilla.redhat.com/1842258
|
|
|
d8f823 |
Upstream: v5.7
|
|
|
d8f823 |
|
|
|
d8f823 |
commit 0a2a6f498fa060cc0d592d56148da856e9d77bd8
|
|
|
d8f823 |
Author: Roi Dayan <roid@mellanox.com>
|
|
|
d8f823 |
Date: Wed May 27 21:46:09 2020 +0300
|
|
|
d8f823 |
|
|
|
d8f823 |
net/mlx5e: Fix stats update for matchall classifier
|
|
|
d8f823 |
|
|
|
d8f823 |
It's bytes, packets, lastused.
|
|
|
d8f823 |
|
|
|
d8f823 |
Fixes: fcb64c0f5640 ("net/mlx5: E-Switch, add ingress rate support")
|
|
|
d8f823 |
Signed-off-by: Roi Dayan <roid@mellanox.com>
|
|
|
d8f823 |
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
|
|
|
d8f823 |
|
|
|
d8f823 |
Signed-off-by: Alaa Hleihel <ahleihel@redhat.com>
|
|
|
d8f823 |
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
|
|
|
d8f823 |
---
|
|
|
d8f823 |
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 2 +-
|
|
|
d8f823 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d8f823 |
|
|
|
d8f823 |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
|
d8f823 |
index d4f2697d84d0..22b67563412d 100644
|
|
|
d8f823 |
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
|
d8f823 |
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
|
|
|
d8f823 |
@@ -4588,7 +4588,7 @@ void mlx5e_tc_stats_matchall(struct mlx5e_priv *priv,
|
|
|
d8f823 |
dpkts = cur_stats.rx_packets - rpriv->prev_vf_vport_stats.rx_packets;
|
|
|
d8f823 |
dbytes = cur_stats.rx_bytes - rpriv->prev_vf_vport_stats.rx_bytes;
|
|
|
d8f823 |
rpriv->prev_vf_vport_stats = cur_stats;
|
|
|
d8f823 |
- flow_stats_update(&ma->stats, dpkts, dbytes, jiffies);
|
|
|
d8f823 |
+ flow_stats_update(&ma->stats, dbytes, dpkts, jiffies);
|
|
|
d8f823 |
}
|
|
|
d8f823 |
|
|
|
d8f823 |
static void mlx5e_tc_hairpin_update_dead_peer(struct mlx5e_priv *priv,
|
|
|
d8f823 |
--
|
|
|
d8f823 |
2.13.6
|
|
|
d8f823 |
|