mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rao, Nikhil" <nikhirao@amd.com>
To: netdev-bot+sashiko@kernel.org
Cc: brett.creeley@amd.com, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, leitao@debian.org,
	eric.joyner@amd.com, abhijit.gangurde@amd.com,
	stable@vger.kernel.org, nikhil.rao@amd.com
Subject: Re: [PATCH net v2 2/2] ionic: limit TSO segments to the minimum Tx ring size
Date: Mon, 30 Nov 2026 14:36:17 -0800	[thread overview]
Message-ID: <c04e0e7a-7ba9-41d5-bb5d-9b75b47f13e4@amd.com> (raw)
In-Reply-To: <179528952688.3135.14288832479047375578@kernel.org>


On 11/21/2026 11:32 AM, netdev-bot+sashiko@kernel.org wrote:
[...]
> Is this limit enforced on every path that reaches ionic_start_xmit()?

No, and it is not ionic specific. I reproduced both paths on net/main
with ionic:

    - AF_PACKET with PACKET_QDISC_BYPASS and PACKET_VNET_HDR, sending a
      60 KB TCP frame with a 39 byte gso_size
    - a tcx egress program that IPIP-encapsulates the same frame with
      bpf_skb_adjust_room()

In both cases the skb reaches the driver with gso_segs still 0, gets
past the gso_max_segs check, and causes a Tx timeout and queue reset.

Counting the segments of such skbs in gso_within_dev_limits() fixes
both in my test.

Jakub, do you want this fixed in the core? The first path needs
CAP_NET_RAW, the second a BPF program, and nobody has reported it, so
I'd send it to net-next unless you prefer otherwise.


> Would it make sense to ring the doorbell before returning
> NETDEV_TX_BUSY?

Yes. I reproduced it with a 128-entry ring by forcing xmit_more on a
small frame ahead of a 127-segment TSO skb: the queue stops until the
watchdog resets it. Ringing the doorbell before returning
NETDEV_TX_BUSY fixes it. It needs a near-minimum ring and the
doorbell to be deferred at that moment, so I'll send the fix to
net-next.

Thanks,
Nikhil

  reply	other threads:[~2026-11-30 22:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 19:18 [PATCH net v2 0/2] ionic: fix Tx stalls on TSO skbs larger than the Tx ring Nikhil P. Rao
2026-11-17 19:18 ` [PATCH net v2 1/2] ionic: reject Tx ring sizes below the minimum Nikhil P. Rao
2026-11-17 19:18 ` [PATCH net v2 2/2] ionic: limit TSO segments to the minimum Tx ring size Nikhil P. Rao
2026-11-20 19:58   ` Rao, Nikhil
2026-11-21 19:32   ` netdev-bot+sashiko
2026-11-30 22:36     ` Rao, Nikhil [this message]
2026-11-24  2:20 ` [PATCH net v2 0/2] ionic: fix Tx stalls on TSO skbs larger than the Tx ring patchwork-bot+netdevbpf

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=c04e0e7a-7ba9-41d5-bb5d-9b75b47f13e4@amd.com \
    --to=nikhirao@amd.com \
    --cc=abhijit.gangurde@amd.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=brett.creeley@amd.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=eric.joyner@amd.com \
    --cc=kuba@kernel.org \
    --cc=leitao@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nikhil.rao@amd.com \
    --cc=pabeni@redhat.com \
    --cc=stable@vger.kernel.org \
    /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®