From: Jacob Keller <jacob.e.keller@intel.com>
To: <bot+bpf-ci@kernel.org>, <meng.ding@siemens.com>,
<netdev@vger.kernel.org>, <willemdebruijn.kernel@gmail.com>,
<davem@davemloft.net>, <edumazet@kernel.org>, <kuba@kernel.org>,
<pabeni@redhat.com>, <corbet@lwn.net>, <andrew+netdev@lunn.ch>,
<anthony.l.nguyen@intel.com>, <przemyslaw.kitszel@intel.com>,
<rostedt@goodmis.org>, <mhiramat@kernel.org>,
<daniel@iogearbox.net>, <ast@kernel.org>, <andrii@kernel.org>,
<eddyz87@gmail.com>, <memxor@gmail.com>,
<richardcochran@gmail.com>
Cc: <florian.bezdeka@siemens.com>, <jan.kiszka@siemens.com>,
<wq.wang@siemens.com>, <p@1g4.org>,
<gerhard@engleder-embedded.com>, <kerneljasonxing@gmail.com>,
<horms@kernel.org>, <skhan@linuxfoundation.org>,
<rdunlap@infradead.org>, <mathieu.desnoyers@efficios.com>,
<martin.lau@linux.dev>, <song@kernel.org>,
<yonghong.song@linux.dev>, <jolsa@kernel.org>,
<emil@etsalapatis.com>, <ihor.solodrai@linux.dev>,
<john.fastabend@gmail.com>, <sdf@fomichev.me>,
<linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<intel-wired-lan@lists.osuosl.org>,
<linux-trace-kernel@vger.kernel.org>, <bpf@vger.kernel.org>,
<martin.lau@kernel.org>, <mason@kernel.org>
Subject: Re: [PATCH] net: mark skb NAPI IDs independently of busy polling
Date: Thu, 5 Nov 2026 10:36:27 -0800 [thread overview]
Message-ID: <b576c53c-7a8c-45ae-87cf-352ba2fbe52b@intel.com> (raw)
In-Reply-To: <4c0a0855167cac39dcf8b1c103d0f98a8898a14866daf9b97a127698bb1ea0b9@mail.kernel.org>
On 11/5/2026 12:04 AM, bot+bpf-ci@kernel.org wrote:
>> net: mark skb NAPI IDs independently of busy polling
>
> TL;DR: Commit message only: it blames e68b6e50fa35 for gating skb NAPI IDs on
> busy polling, but that gating predates it; 97dc7cd92ac6 introduced the
> dependency. Suggests rewording.
>
>> net: mark skb NAPI IDs independently of busy polling
>>
>> Commit 97dc7cd92ac6 ("ptp: Support late timestamp determination")
>> added support for deferring RX timestamp conversion to
>> ndo_get_tstamp(). When the timestamp is consumed, get_timestamp()
>> uses the skb's NAPI ID to find the device that owns the timestamp
>> cookie and invoke its callback.
>> Commit e68b6e50fa35 ("udp: enable busy polling for all sockets")
>> gated NAPI ID bookkeeping with CONFIG_NET_RX_BUSY_POLL. As a result,
>> when busy polling is disabled, the skb may not carry a usable NAPI ID.
>> The device lookup then fails, so the driver callback is not invoked.
>> get_timestamp() falls back to hwtstamp, which does not contain the
>> converted timestamp, resulting in an incorrect RX hardware timestamp.
>> Record skb NAPI IDs independently of busy-poll support to support
>> drivers that use deferred timestamp conversion and future driver
>> features that need to look up a device by its NAPI ID.
>> Signed-off-by: Ding Meng <meng.ding@siemens.com>
>> Reviewed-by: Florian Bezdeka <florian.bezdeka@siemens.com>
>
> This isn't a bug, but is e68b6e50fa35 the right commit to name here?
>
> Before that commit, __skb_mark_napi_id() / skb_mark_napi_id() was already
> inside '#ifdef CONFIG_NET_RX_BUSY_POLL' with an empty stub in the #else
> branch, and struct sk_buff already had napi_id under
> '#if defined(CONFIG_NET_RX_BUSY_POLL) || defined(CONFIG_XPS)'. That gating
> goes back to 8b80cda536ea ("net: rename ll methods to busy-poll").
>
> e68b6e50fa35 only moved the socket-side sk_mark_napi_id() out of the ifdef
> block and added sk_mark_napi_id_once(). Both act on sk->sk_napi_id, not on
> the skb.
>
> It is also about six years older than 97dc7cd92ac6, so the message reads as
> if a later change broke the deferred-timestamp lookup. In fact
> get_timestamp() has depended on a busy-poll-only skb field (skb_napi_id()
> returns 0 when CONFIG_NET_RX_BUSY_POLL=n) since 97dc7cd92ac6 added it.
>
> Could the message say that the skb NAPI ID was always busy-poll-only and
> that 97dc7cd92ac6 started depending on it?
>
I think the AI is reading a bit much into the commit message. Clearly
the bug is that 97dc7cd92ac6 depends on busy polling. The wording could
be slightly more precise to not imply that e68b6e50fa35 actually
introduced a problem, but I think that is a bit of a nitpick, and not
worth a reroll of this work unless something else needs to change.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
>
> ---
> AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
> See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
>
> CI run summary: https://github.com/kernel-patches/bpf/actions/runs/41989099174
next prev parent reply other threads:[~2026-11-05 18:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 7:16 Ding Meng
2026-11-05 8:04 ` bot+bpf-ci
2026-11-05 18:36 ` Jacob Keller [this message]
2026-11-05 22:29 ` Paul Moses
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=b576c53c-7a8c-45ae-87cf-352ba2fbe52b@intel.com \
--to=jacob.e.keller@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrii@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=ast@kernel.org \
--cc=bot+bpf-ci@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eddyz87@gmail.com \
--cc=edumazet@kernel.org \
--cc=emil@etsalapatis.com \
--cc=florian.bezdeka@siemens.com \
--cc=gerhard@engleder-embedded.com \
--cc=horms@kernel.org \
--cc=ihor.solodrai@linux.dev \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jan.kiszka@siemens.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kerneljasonxing@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=martin.lau@kernel.org \
--cc=martin.lau@linux.dev \
--cc=mason@kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=memxor@gmail.com \
--cc=meng.ding@siemens.com \
--cc=mhiramat@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=p@1g4.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
--cc=rdunlap@infradead.org \
--cc=richardcochran@gmail.com \
--cc=rostedt@goodmis.org \
--cc=sdf@fomichev.me \
--cc=skhan@linuxfoundation.org \
--cc=song@kernel.org \
--cc=willemdebruijn.kernel@gmail.com \
--cc=wq.wang@siemens.com \
--cc=yonghong.song@linux.dev \
/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
all inboxes | Powered by JetHome®