Netdev List
 help / color / mirror / Atom feed
From: William A Kennington III <william@wkennington.com>
To: Paolo Abeni <pabeni@redhat.com>,
	Oliver Neukum <oliver@neukum.org>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>
Cc: "Jan Klötzke" <Jan.Kloetzke@preh.de>,
	linux-usb@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: usb: cdc_ncm: don't flush the TX timer into a stopped queue
Date: Thu, 26 Nov 2026 15:13:16 -0800	[thread overview]
Message-ID: <eaefe02d-02ea-4865-b000-7d5b74da9f27@wkennington.com> (raw)
In-Reply-To: <7a0566c6-7a5a-460c-a113-d9463be3607f@redhat.com>

On 11/26/26 2:51 AM, Paolo Abeni wrote:

> On 11/18/26 04:41, William A. Kennington III wrote:
>> cdc_ncm_txpath_bh() calls usbnet_start_xmit() directly without checking
>> whether usbnet has stopped the netdev TX queue. Since commit
>> ad70411a978d ("usbnet: fix kernel crash after disconnect"),
>> usbnet_start_xmit() frees any NTB submitted while the queue is stopped
>> and increments tx_dropped.
>>
>> This triggers routinely under bulk load. With the default 16 KiB NTBs,
>> usbnet only allows MAX_QUEUE_MEMORY / tx_max = 5 TX URBs in flight, so a
>> bulk TCP stream stops the queue constantly.
>
> The sashiko comments look relevant. Also it feels like this is papering
> over the real issue: bulk transfers should not cause TX queue stop.
Yes, this was my original thought too. I have a v2 that just pokes the 
TX queue after doing other operations but that feels like it just papers 
over the underlying problem.
>
> It's not clear to me if there are H/W constrains behind the
> MAX_QUEUE_MEMORY value. Perhaps is time to revisit it?
I don't think it's the MAX_QUEUE_MEMORY value. I think it was a decision 
years ago about how the queue is stopped around link down that is 
leaking into the congestion flow. I'm going to port my platform onto 
master and do some testing.

FWIW neon seems to think the BQL changes for usbnet might have fixed 
this as a side-effect. Let me test it and see. I'm not sure how that 
will help me on 5.15 in the interim though. I may just carry a 
downstream patch to force kicking the queues.
>
> /P

      reply	other threads:[~2026-11-26 23:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  3:41 [PATCH net] net: usb: cdc_ncm: don't flush the TX timer into a stopped queue William A. Kennington III
2026-11-21 23:02 ` netdev-bot+sashiko
2026-11-26 10:51 ` Paolo Abeni
2026-11-26 23:13   ` William A Kennington III [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=eaefe02d-02ea-4865-b000-7d5b74da9f27@wkennington.com \
    --to=william@wkennington.com \
    --cc=Jan.Kloetzke@preh.de \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oliver@neukum.org \
    --cc=pabeni@redhat.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