Netdev List
 help / color / mirror / Atom feed
From: Evgeny Ostrovsky <evostrov@amazon.com>
To: saeed bishara <saeed.bishara.os@gmail.com>,
	Jakub Kicinski <kuba@kernel.org>
Cc: <netdev@vger.kernel.org>, David Arinzon <darinzon@amazon.com>,
	"Shay Agroskin" <shayagr@amazon.com>,
	Arthur Kiyanovski <akiyano@amazon.com>,
	"Gal Pressman" <gal@nvidia.com>,
	Michal Kubiak <michal.kubiak@intel.com>,
	"Paolo Abeni" <pabeni@redhat.com>,
	Eric Dumazet <edumazet@google.com>,
	"Kuniyuki Iwashima" <kuniyu@amazon.com>,
	Shai Brandes <shaibran@amazon.com>, <linux-doc@vger.kernel.org>
Subject: Re: [RFC] net: ena: use tx-push-buf-len while tx-push is off
Date: Tue, 1 Dec 2026 08:28:46 +0000	[thread overview]
Message-ID: <20261201082848.4513-1-evostrov@amazon.com> (raw)
In-Reply-To: <CAHfVqdVkTOYR_1So9S4pQj+xvvpoJG+qFY0zW6eOFuUzxBiigQ@mail.gmail.com>

On Tue, 24 Nov 2026 11:08:19 +0200 saeed bishara wrote:
> On Tue, Nov 24, 2026 at 4:13AM Jakub Kicinski <kuba@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?

Thanks

      reply	other threads:[~2026-12-01  8:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  4:12 [RFC] net: ena: use tx-push-buf-len while tx-push is off evostrov
2026-11-22  8:32 ` saeed bishara
2026-11-24  2:13   ` Jakub Kicinski
2026-11-24  9:08     ` saeed bishara
2026-12-01  8:28       ` Evgeny Ostrovsky [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=20261201082848.4513-1-evostrov@amazon.com \
    --to=evostrov@amazon.com \
    --cc=akiyano@amazon.com \
    --cc=darinzon@amazon.com \
    --cc=edumazet@google.com \
    --cc=gal@nvidia.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@amazon.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=michal.kubiak@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=saeed.bishara.os@gmail.com \
    --cc=shaibran@amazon.com \
    --cc=shayagr@amazon.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