netdevsim: collect statistics at RX side
authorBreno Leitao <leitao@debian.org>
Wed, 18 Jun 2025 08:32:43 +0000 (01:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 23:15:34 +0000 (16:15 -0700)
commit788eb4de608bbebad237674e1057305340d653ba
tree2b3efef816f0326ce6ca4e7f2ff091118e5ea4dd
parentf9e2511d80c2eaeb940c5f8280d7eea9d7946ece
netdevsim: collect statistics at RX side

When the RX side of netdevsim was added, the RX statistics were missing,
making the driver unusable for GenerateTraffic() test framework.

This patch adds proper statistics tracking on RX side, complementing the
TX path.

Reviewed-by: Joe Damato <joe@dama.to>
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250618-netdevsim_stat-v4-2-19fe0d35e28e@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netdevsim/netdev.c