netdevsim: report stats by default, like a real device
authorJakub Kicinski <kuba@kernel.org>
Fri, 5 Apr 2024 02:45:24 +0000 (19:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Apr 2024 10:40:41 +0000 (11:40 +0100)
commitf216306bfb602b449cb2c49cf03870fb8761d146
tree2ceb70585c0d510b2afe19e94ba9b8923fed6436
parent796c8c7fd257abe5c1e1ee22d4344123cd614f9f
netdevsim: report stats by default, like a real device

Real devices should implement qstats. Devices which support
pause or FEC configuration should also report the relevant stats.

nsim was missing FEC stats completely, some of the qstats
and pause stats required toggling a debugfs knob.

Note that the tests which used pause always initialize the setting
so they shouldn't be affected by the different starting value.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/ethtool.c
drivers/net/netdevsim/netdev.c