[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87plkzlv9h.fsf@nvidia.com>
Date: Mon, 6 Jan 2025 18:14:22 +0100
From: Petr Machata <petrm@...dia.com>
To: Jakub Kicinski <kuba@...nel.org>
CC: <davem@...emloft.net>, <netdev@...r.kernel.org>, <edumazet@...gle.com>,
<pabeni@...hat.com>, <shuah@...nel.org>, <willemb@...gle.com>,
<petrm@...dia.com>, <linux-kselftest@...r.kernel.org>
Subject: Re: [PATCH net-next] selftests: drv-net: test drivers sleeping in
ndo_get_stats64
Jakub Kicinski <kuba@...nel.org> writes:
> Most of our tests use rtnetlink to read device stats, so they
> don't expose the drivers much to paths in which device stats
> are read under RCU. Add tests which hammer profcs reads to
> make sure drivers:
> - don't sleep while reporting stats,
> - can handle parallel reads,
> - can handle device going down while reading.
>
> Set ifname on the env class in NetDrvEnv, we already do that
> in NetDrvEpEnv.
>
> KTAP version 1
> 1..7
> ok 1 stats.check_pause
> ok 2 stats.check_fec
> ok 3 stats.pkt_byte_sum
> ok 4 stats.qstat_by_ifindex
> ok 5 stats.check_down
> ok 6 stats.procfs_hammer
> # completed up/down cycles: 6
> ok 7 stats.procfs_downup_hammer
> # Totals: pass:7 fail:0 xfail:0 xpass:0 skip:0 error:0
>
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Petr Machata <petrm@...dia.com>
Powered by blists - more mailing lists