From: Petr Machata <petrm@nvidia.com>
To: Jakub Kicinski <kuba@kernel.org>
Cc: <davem@davemloft.net>, <netdev@vger.kernel.org>,
<edumazet@google.com>, <pabeni@redhat.com>, <shuah@kernel.org>,
<willemb@google.com>, <petrm@nvidia.com>,
<linux-kselftest@vger.kernel.org>
Subject: Re: [PATCH net-next] selftests: drv-net: test drivers sleeping in ndo_get_stats64
Date: Mon, 6 Jan 2025 18:14:22 +0100 [thread overview]
Message-ID: <87plkzlv9h.fsf@nvidia.com> (raw)
In-Reply-To: <20250105011525.1718380-1-kuba@kernel.org>
Jakub Kicinski <kuba@kernel.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@kernel.org>
Reviewed-by: Petr Machata <petrm@nvidia.com>
prev parent reply other threads:[~2025-01-06 17:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-05 1:15 [PATCH net-next] selftests: drv-net: test drivers sleeping in ndo_get_stats64 Jakub Kicinski
2025-01-05 15:55 ` Willem de Bruijn
2025-01-06 15:41 ` Jakub Kicinski
2025-01-06 17:14 ` Petr Machata [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87plkzlv9h.fsf@nvidia.com \
--to=petrm@nvidia.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=willemb@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).