Re: [PATCH net] net: usb: cdc_ncm: don't flush the TX timer into a stopped queue
From: Paolo Abeni
Date: Thu Nov 26 2026 - 05:51:32 EST
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.
It's not clear to me if there are H/W constrains behind the
MAX_QUEUE_MEMORY value. Perhaps is time to revisit it?
/P