From: Paolo Abeni <pabeni@redhat.com>
To: Curtis McBurney <cmcburney@telcobridges.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
horms@kernel.org, andrew+netdev@lunn.ch, willemb@google.com,
toke@redhat.com, daniel@iogearbox.net, almasrymina@google.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v2 2/2] net: net_test: add tests for netif_tx_stop_queue() trans_start
Date: Thu, 26 Nov 2026 16:08:24 +0100 [thread overview]
Message-ID: <9ec9f5db-b550-4e34-a299-7c45bf00ba48@redhat.com> (raw)
In-Reply-To: <20261119141633.3118789-3-cmcburney@telcobridges.com>
On 11/19/26 15:16, Curtis McBurney wrote:
> Add KUnit tests for the txq->trans_start handling of
> netif_tx_stop_queue(), which dev_watchdog() uses to detect a stuck
> queue:
>
> - a stop on a running queue writes trans_start
> - a stop on a queue already stopped by the driver keeps trans_start
> - a stop after netif_tx_start_queue() writes trans_start again
> - a stop on a queue stopped only by BQL (__QUEUE_STATE_STACK_XOFF)
> writes trans_start
>
> txq_stop_keeps_stamp_stopped_queue fails without the previous patch.
>
> The tests run on a single thread and do not cover a wake that races
> with a stop. The previous patch removes that race by construction: a
> stop that finds the bit set writes neither trans_start nor the bit.
>
> Tested on UML with CONFIG_KUNIT, CONFIG_NET and CONFIG_NET_TEST:
>
> tools/testing/kunit/kunit.py run --kunitconfig=<cfg> 'net_core.txq_*'
>
> Claude Code (Anthropic) wrote these tests and this changelog.
>
> Signed-off-by: Curtis McBurney <cmcburney@telcobridges.com>
Does not apply cleanly. Please rebase and repost.
/P
prev parent reply other threads:[~2026-11-26 15:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 14:16 [PATCH net v2 0/2] net: keep txq->trans_start on repeated netif_tx_stop_queue() Curtis McBurney
2026-11-19 14:16 ` [PATCH net v2 1/2] " Curtis McBurney
2026-11-19 14:16 ` [PATCH net v2 2/2] net: net_test: add tests for netif_tx_stop_queue() trans_start Curtis McBurney
2026-11-26 15:08 ` Paolo Abeni [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=9ec9f5db-b550-4e34-a299-7c45bf00ba48@redhat.com \
--to=pabeni@redhat.com \
--cc=almasrymina@google.com \
--cc=andrew+netdev@lunn.ch \
--cc=cmcburney@telcobridges.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=toke@redhat.com \
--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