On Tue, Dec 1, 2026 at 10:29 AM Evgeny Ostrovsky <evos…@amazon.com> wrote:
>
> On Tue, 24 Nov 2026 11:08:19 +0200 saeed bishara wrote:
> > On Tue, Nov 24, 2026 at 4:13AM Jakub Kicinski <ku…@kernel.org> wrote:
> > > On Sun, 22 Nov 2026 10:32:31 +0200 saeed bishara wrote:
> > > > IMHO, we better introduce a new parameter, that is agnostic to
> > > > push/pull mode, we can choose to deprecate the current one in the long
> > > > term.
> > >
> > > Agreed on new param, not sure about "agnostic to config mode".
> > > Or if we can deprecate the old one since its uAPI.
> > I mean the new param will be served whenever the driver inlines/copies
> > the packet header into the ring of descriptors, regardless to where
> > the ring is located (host or device)
>
> Thanks both. We will add a new parameter instead of reusing
> tx-push-buf-len. We will keep tx-push-buf-len, since it is uAPI.
>
> The new param is the number of header bytes the driver copies into
> the TX descriptor ring. It works the same whether the ring is in device
> memory (tx-push on) or in host memory (pull mode, tx-push off).
>
> > >
> > > The driver can store both values in one tho, effectively forcing
> > > them to be in sync.
>
> The driver will store the old and new values in one field, so they stay
> in sync.
>
> > >
> > > All the new one tx-hdr-depth ? max-hdr-len would be more logical
> > > but we use "max" to indicate the max value for a param.
> > yeah, max doesn't work well here as the driver inlines this fixed
> > number of bytes, even when the packet is shorter, the driver pads with
> > zeros.
> > I think the name should highlight the "inline" attribute is it's a key one.
>
> Agreed. We will add two attributes, the same way as the tx-push-buf-len
> and tx-push-buf-len-max pair:
>
> - tx-inline-header-len: settable. The number of header bytes the
> driver copies into the TX descriptor ring.
> - tx-inline-header-len-max: read-only. The largest value the driver
> supports.
>
> We plan to add both to the ethtool uAPI. Does that work for you?
Ack.
>
> Thanks