ionic: fix gathering of debug stats
Subsystems (3)
PATCH 1/1 ionic: fix gathering of debug stats
Don't print stats for which we haven't reserved space as it can cause nasty memory bashing and related bad behaviors.
Fixes aa620993b1e5 ("ionic: pull per-q stats work out of queue loops")
Signed-off-by Shannon Nelson <[email protected]>
--- drivers/net/ethernet/pensando/ionic/ionic_stats.c | 9 --------- 1 file changed, 9 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_stats.c +0 -9
@@ -380,15 +380,6 @@ static void ionic_sw_stats_get_txq_values(struct ionic_lif *lif, u64 **buf, &ionic_dbg_intr_stats_desc[i]); (*buf)++; } -for (i =0 ; i <IONIC_NUM_DBG_NAPI_STATS ; i++) { - **buf =IONIC_READ_STAT64 (&txqcq->napi_stats, - &ionic_dbg_napi_stats_desc[i]); - (*buf)++; - } -for (i =0 ; i <IONIC_MAX_NUM_NAPI_CNTR ; i++) { - **buf = txqcq->napi_stats.work_done_cntr[i]; - (*buf)++; - }for (i =0 ; i <IONIC_MAX_NUM_SG_CNTR ; i++) { **buf = txstats->sg_cntr[i]; (*buf)++;
Signature · 1 line
2.17.1
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 8 lines · On Mon, 27 Sep 2021 14:07:18 -0700 you wrote:
Don't print stats for which we haven't reserved space as it can cause nasty memory bashing and related bad behaviors.
Fixes aa620993b1e5 ("ionic: pull per-q stats work out of queue loops")Signed-off-by Shannon Nelson <[email protected]>--- drivers/net/ethernet/pensando/ionic/ionic_stats.c | 9 --------- 1 file changed, 9 deletions(-)
Here is the summary with links:
- [net] ionic: fix gathering of debug stats
https://git.kernel.org/netdev/net/c/c23bb54f28d6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html