Re: [PATCH] net: usb: ipheth: stop data URBs on ndo_stop

From: Oliver Neukum

Date: Mon Aug 31 2026 - 09:12:27 EST




On 31.08.26 11:36, raoxu wrote:
The disconnect path already kills the URBs after unregister_netdev(), so
unplug testing eventually quiesces the data path. The gap is therefore
specific to an administrative close while the USB device remains
connected.

Kill the data URBs from ndo_stop as well. Do this after disabling
carrier_work: ipheth_sndbulk_callback() schedules the work on TX URB
errors, while disable_delayed_work_sync() prevents a completion caused by
usb_kill_urb() from re-arming it. usb_kill_urb() also waits for pending
completion handlers and prevents the RX completion from successfully
resubmitting its URB.

Hi,

this also kills the transmit data path. The packets in that URB
have already been reported back as successfully transmitted.
Is this really the correct approach?

Regards
Oliver