linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] netdevsim: implement RX statistics using NETDEV_PCPU_STAT_DSTATS
@ 2025-06-11 15:06 Breno Leitao
  2025-06-11 15:06 ` [PATCH net-next 1/2] netdevsim: migrate to dstats stats collection Breno Leitao
  2025-06-11 15:06 ` [PATCH net-next 2/2] netdevsim: collect statistics at RX side Breno Leitao
  0 siblings, 2 replies; 7+ messages in thread
From: Breno Leitao @ 2025-06-11 15:06 UTC (permalink / raw)
  To: Jakub Kicinski, Andrew Lunn, David S. Miller, Eric Dumazet,
	Paolo Abeni
  Cc: netdev, linux-kernel, Breno Leitao, kernel-team, Breno Leitao

The netdevsim driver previously lacked RX statistics support, which
prevented its use with the GenerateTraffic() test framework, as this
framework verifies traffic flow by checking RX byte counts.

This patch migrates netdevsim from its custom statistics collection to
the NETDEV_PCPU_STAT_DSTATS framework, as suggested by Jakub. This
change not only standardizes the statistics handling but also adds the
necessary RX statistics support required by the test framework.

Signed-off-by: Breno Leitao <leitao@debian.org>
---
Breno Leitao (2):
      netdevsim: migrate to dstats stats collection
      netdevsim: collect statistics at RX side

 drivers/net/netdevsim/netdev.c    | 37 ++++++++++---------------------------
 drivers/net/netdevsim/netdevsim.h |  5 -----
 2 files changed, 10 insertions(+), 32 deletions(-)
---
base-commit: 0097c4195b1d0ca57d15979626c769c74747b5a0
change-id: 20250610-netdevsim_stat-95995921e03e

Best regards,
-- 
Breno Leitao <leitao@debian.org>


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

end of thread, other threads:[~2025-06-12 18:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11 15:06 [PATCH net-next 0/2] netdevsim: implement RX statistics using NETDEV_PCPU_STAT_DSTATS Breno Leitao
2025-06-11 15:06 ` [PATCH net-next 1/2] netdevsim: migrate to dstats stats collection Breno Leitao
2025-06-12 14:12   ` Joe Damato
2025-06-11 15:06 ` [PATCH net-next 2/2] netdevsim: collect statistics at RX side Breno Leitao
2025-06-12 14:25   ` Joe Damato
2025-06-12 14:45     ` Jakub Kicinski
2025-06-12 18:04       ` Breno Leitao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).