The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: ntb_netdev: Fix RX statistics accounting
@ 2026-08-19 17:25 Koichiro Den
  2026-08-19 17:25 ` [PATCH net 1/2] net: ntb_netdev: Avoid double-accounting netif_rx() drops Koichiro Den
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Koichiro Den @ 2026-08-19 17:25 UTC (permalink / raw)
  To: Jakub Kicinski, Jon Mason, Dave Jiang, Allen Hubbe, Andrew Lunn,
	David S. Miller, Eric Dumazet, Paolo Abeni, Greg Kroah-Hartman,
	Nicholas Bellinger
  Cc: ntb, netdev, linux-kernel

Hi,

This series addresses Jakub's comment on ntb_netdev RX statistics
accounting:
https://lore.kernel.org/r/20260818092938.4121c220@kernel.org/

It fixes the double counting and also the related packet/byte accounting
on RX refill failure.

Notes:
- No ordering dependency on the TX completion/error handling series,
  which is currently awaiting review. Either series can go first.
  https://patchwork.kernel.org/project/netdevbpf/cover/20260817053519.4135287-1-den@valinux.co.jp/
- Once both series land, I plan to post one follow-up patch to net for
  the multi-queue stats race introduced by commit 24d9e73c7e00 ("net:
  ntb_netdev: Support ethtool channels for multi-queue"). My plan is to
  move packet/byte/drop counters to core-managed per-CPU stats and use
  DEV_STATS_INC() for the remaining slow-path counters. IMO this is
  lower severity and better done after the TX/RX changes settle.

Best regards,
Koichiro


Koichiro Den (2):
  net: ntb_netdev: Avoid double-accounting netif_rx() drops
  net: ntb_netdev: Count packets dropped on RX refill failure

 drivers/net/ntb_netdev.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

base-commit: 564973a259ec76f2dad0853420e7034cc43994c4
-- 
2.51.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-22 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19 17:25 [PATCH net 0/2] net: ntb_netdev: Fix RX statistics accounting Koichiro Den
2026-08-19 17:25 ` [PATCH net 1/2] net: ntb_netdev: Avoid double-accounting netif_rx() drops Koichiro Den
2026-08-19 17:25 ` [PATCH net 2/2] net: ntb_netdev: Count packets dropped on RX refill failure Koichiro Den
2026-08-22 20:20 ` [PATCH net 0/2] net: ntb_netdev: Fix RX statistics accounting patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox