From: sashiko-bot@kernel.org
To: "William A. Kennington III" <william@wkennington.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH net v2] net: usb: cdc_ncm: send the NTB once another datagram would not fit
Date: Fri, 27 Nov 2026 11:10:51 +0000 [thread overview]
Message-ID: <sashiko-outbox-237226@kernel.org> (raw)
In-Reply-To: <20261127110521.1235409-1-william@wkennington.com>
> Observed on BMCs in real use communicating with a USB NCM gadget over an
> EHCI host controller, where bulk TCP traffic caused steady tx_dropped
> growth and retransmits. Tracing the link with kprobes and the kfree_skb
> tracepoint during iperf3 TCP runs confirmed that every drop came from
> cdc_ncm_txpath_bh() calling usbnet_start_xmit(NULL, ...) into a stopped
> TX queue.
>
> cdc_ncm_fill_tx_frame() only learns that an NTB is full when it is given
> a datagram that no longer fits. It then hands the NTB to usbnet and
> parks that datagram in tx_rem_skb for the next NTB. If the stack sends
> nothing more, only the TX timer is left to send it.
>
> With 16 KiB NTBs usbnet allows 5 TX URBs in flight at high speed. When
> the NTB that was just handed over is the fifth, usbnet stops the TX
> queue. The timer then builds an NTB for the parked datagram and calls
> [ ... ]
> 4 streams, bidir 62 -> 0 36.7/150.3 -> 78.0/130.2
> 4 streams, MSS 512 81 -> 0 129.2 -> 152.8
>
> Fixes: ad70411a978d ("usbnet: fix kernel crash after disconnect")
> Signed-off-by: William A. Kennington III <william@wkennington.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127110521.1235409-1-william@wkennington.com?part=1
next prev parent reply other threads:[~2026-11-27 11:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 11:05 [PATCH net v2] net: usb: cdc_ncm: send the NTB once another datagram would not fit William A. Kennington III
2026-11-27 11:10 ` sashiko-bot [this message]
2026-11-28 11:07 ` 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=sashiko-outbox-237226@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=william@wkennington.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.