[PATCH net-next 0/2] netdevsim: implement RX statistics using NETDEV_PCPU_STAT_DSTATS
From: Breno Leitao
Date: Wed Jun 11 2025 - 11:12:06 EST
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@xxxxxxxxxx>
---
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@xxxxxxxxxx>