🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by Jakub Kicinski Tue, 10 Nov 2026 21:45
Re: [PATCH] net: mark skb NAPI IDs independently of busy polling
#14218
Author: Jakub Kicinski
Date: Tue, 10 Nov 2026 21:45
15 lines
9605 bytes
On Thu,  5 Nov 2026 15:16:08 +0800 Ding Meng wrote:
> +  interface index will be returned only if CONFIG_SKB_MARK_NAPI_ID is
> +  enabled and the driver is using NAPI. This hidden configuration is
> +  selected automatically by busy-poll support and by drivers that need
> +  skb NAPI IDs to resolve deferred hardware timestamps. Drivers that
> +  use deferred timestamp conversion must select it so the networking
> +  stack can find the device and call its timestamp callback even when
> +  busy polling is disabled. The struct contains also two other fields,
> +  but they are reserved and undefined.

Just take napi_id from under CONFIG_NET_RX_BUSY_POLL instead of
complicating everyone's lives.
-- 
pw-bot: cr
Re: [PATCH] net: mark skb NAPI IDs independently of busy polling
#15975
Author: Gerhard Engleder
Date: Fri, 13 Nov 2026 20:59
30 lines
11644 bytes
On 13.11.26 09:29, Paul Moses wrote:
> 
>>
>> Then, drivers that use deferred timestamp conversion (e.g. igc, engleder) must
>> specify a busy poll dependency if they want to obtain the original net
>> device upon consuming the skb. However, this dependency is far from
>> obvious, and annotating it for future features of this kind will be very
>> hard to discover.
> 
> The "deferred timestamp conversion" was incomplete is what I'm saying.
> 
> This started with 97dc7cd92ac6, 0abb62b68252 and 069b142f5819 were built upon
> it, so maybe Gerhard should decide the path forward?

The deferred timestamp conversion is a niche feature for TSN to solve
the working clock / global time problem in TSN networks. IMO there is
no need to make it working as soon as igc or tsnep drivers are enabled.
It would be ok to fall back to normal vclock behavior like all other
drivers if CONFIG_NET_RX_BUSY_POLL=n. For me it is ok that NETCONSOLE
is not possible for PREEMPT_RT in combination with this feature.

There are already so many things to consider to get TSN working. To
not enable NETCONSOLE on PREEMPT_RT for deferred timestamp conversion
would be just one of many.

@Ding Meng: Do you actually need the NETCONSOLE in this combination?
On productive systems likely not these days due to CRA.

Gerhard
Re: [PATCH] net: mark skb NAPI IDs independently of busy polling
#16050
Author: Jakub Kicinski
Date: Fri, 13 Nov 2026 23:28
31 lines
10479 bytes
On Thu, 12 Nov 2026 12:33:57 +0800 Ding Meng wrote:
> On Tue, Nov 10, 2026 at 01:45:39PM -0800, Jakub Kicinski wrote:
> > On Thu,  5 Nov 2026 15:16:08 +0800 Ding Meng wrote:  
> > > +  interface index will be returned only if CONFIG_SKB_MARK_NAPI_ID is
> > > +  enabled and the driver is using NAPI. This hidden configuration is
> > > +  selected automatically by busy-poll support and by drivers that need
> > > +  skb NAPI IDs to resolve deferred hardware timestamps. Drivers that
> > > +  use deferred timestamp conversion must select it so the networking
> > > +  stack can find the device and call its timestamp callback even when
> > > +  busy polling is disabled. The struct contains also two other fields,
> > > +  but they are reserved and undefined.  
> > 
> > Just take napi_id from under CONFIG_NET_RX_BUSY_POLL instead of
> > complicating everyone's lives.
> > -- 
> > pw-bot: cr  
> 
> When BUSY_POLL is n under PREEMPT_RT && NETCONSOLE, igc fails to get RX
> hardware timestamps.
> 
> Then, drivers that use deferred timestamp conversion (e.g. igc, engleder) must
> specify a busy poll dependency if they want to obtain the original net
> device upon consuming the skb. However, this dependency is far from
> obvious, and annotating it for future features of this kind will be very
> hard to discover.
> 
> Configuring the skb napi ID separately
> from busy poll seems cleaner and more reasonable.

"take from under" == make it always compiled in
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads