[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230724094319.57359-1-jedrzej.jagielski@intel.com>
Date: Mon, 24 Jul 2023 11:43:19 +0200
From: Jedrzej Jagielski <jedrzej.jagielski@...el.com>
To: intel-wired-lan@...ts.osuosl.org
Cc: netdev@...r.kernel.org,
anthony.l.nguyen@...el.com,
Grzegorz Szczurek <grzegorzx.szczurek@...el.com>,
Jedrzej Jagielski <jedrzej.jagielski@...el.com>
Subject: [PATCH iwl-next v1] i40e: Clear stats after deleting tc
From: Grzegorz Szczurek <grzegorzx.szczurek@...el.com>
There was an issue with ethtool stats that
have not been cleared after tc had been deleted.
Fix this by resetting stats after deleting tc
by calling i40e_vsi_reset_stats() function after
distroying qdisc.
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@...el.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@...el.com>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 29ad1797adce..6f604bfe7437 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -5885,6 +5885,11 @@ static int i40e_vsi_config_tc(struct i40e_vsi *vsi, u8 enabled_tc)
/* Update the netdev TC setup */
i40e_vsi_config_netdev_tc(vsi, enabled_tc);
+
+ /* After distroying qdisc reset all stats of the vsi */
+ if (!vsi->mqprio_qopt.qopt.hw)
+ i40e_vsi_reset_stats(vsi);
+
out:
return ret;
}
--
2.31.1
Powered by blists - more mailing lists