All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Cc: edumazet@google.com, netdev@vger.kernel.org, davem@davemloft.net,
	pabeni@redhat.com, horms@kernel.org, andrew+netdev@lunn.ch,
	Willem de Bruijn <willemb@google.com>
Subject: Re: [PATCH net-next v8 1/6] net: rtnetlink: add pacing_offload_horizon attribute to net_device
Date: Wed, 9 Sep 2026 11:13:12 -0700	[thread overview]
Message-ID: <20260909111312.2e5169de@kernel.org> (raw)
In-Reply-To: <willemdebruijn.kernel.123ac363ae937@gmail.com>

On Wed, 09 Sep 2026 11:47:13 -0400 Willem de Bruijn wrote:
> > No different than a loose bit in SETLINK?  
>
> At least then there is no expectation of netdev_features_t behavior.

I'm not sure what "netdev_features_t behavior" is, different "types"
of features behave differently.

> > What I was wondering is - we don't want to implement full handling for
> > high feature bits, agreed, it doesn't seem needed today. But is it
> > better to add such a bit in ethtool regardless, even tho it doesn't get
> > any infra for propagation to uppers etc. Or is it better to start adding
> > one-off bits in rt-link.
> > 
> > Think about it some more, since the max-horizon attr is already in
> > rt-link I guess putting this bit in rt-link does make more sense.  
> 
> Ok, I'll leave this in rt-link then.
> 
> Even then, running out of feature bits will come back to haunt us
> soon enough. A good idea to look into it some more now.
> 
> The main issue here is not wanting to grow netdev_features_t for
> hot cachelines, right? Which besides growing dev->features has a
> cascading effect on all the other fields of that type in net_device
> too.
> 
> Extending struct net_device itself is fine, as long as it happens in
> some cold cacheline at the end.
> 
> Perhaps something like what Paolo did for virtio features in the
> series of 3b17aa13015c ("virtio_net: add supports for extended
> offloads"). With non-contiguous bitmap fields. Everything beyond 64
> is mapped to a new field at the end of the struct. A thin API to
> avoid open-coding that check everywhere. And selective conversion
> only of code/drivers that need to access the extended features.

Trying to code this up may reveal the correct shape of the solution.
My mental model so far has been that features are still a mix of
high touch datapath bits and random config stuff like LOOPBACK or HW_TC
which could as well live in a cold cacheline. So my thinking was that
the first step would be to divorce the internal kernel formats from
uAPI. 

  reply	other threads:[~2026-09-09 18:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 18:17 [PATCH net-next v8 0/6] hardware pacing offload Willem de Bruijn
2026-09-02 18:17 ` [PATCH net-next v8 1/6] net: rtnetlink: add pacing_offload_horizon attribute to net_device Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko
2026-09-04 23:01   ` Jakub Kicinski
2026-09-06  2:22     ` Willem de Bruijn
2026-09-07 23:12       ` Jakub Kicinski
2026-09-08  0:50         ` Willem de Bruijn
2026-09-08 20:48           ` Willem de Bruijn
2026-09-08 21:48             ` Jakub Kicinski
2026-09-08 22:39               ` Willem de Bruijn
2026-09-08 23:34                 ` Jakub Kicinski
2026-09-09 15:47                   ` Willem de Bruijn
2026-09-09 18:13                     ` Jakub Kicinski [this message]
2026-09-02 18:17 ` [PATCH net-next v8 2/6] net_sched: sch_fq: clear past skb->tstamp if offloading pacing Willem de Bruijn
2026-09-02 18:17 ` [PATCH net-next v8 3/6] idpf: support pacing offload Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko
2026-09-04 15:22     ` Willem de Bruijn
2026-09-07  9:30   ` Loktionov, Aleksandr
2026-09-10 17:14     ` Willem de Bruijn
2026-09-02 18:17 ` [PATCH net-next v8 4/6] selftests: drv-net: refactor so_txtime errqueue handling Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko
2026-09-02 18:17 ` [PATCH net-next v8 5/6] selftests: drv-net: in so_txtime tell apart sw from hw pacing Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko
2026-09-02 18:17 ` [PATCH net-next v8 6/6] selftests: drv-net: extend so_txtime with hw offload Willem de Bruijn
2026-09-04  0:19   ` netdev-bot+sashiko

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=20260909111312.2e5169de@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=willemb@google.com \
    --cc=willemdebruijn.kernel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.