Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177829484
D61830.1795379962.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
634 B
Referenced Files
None
Subscribers
None
D61830.1795379962.diff
View Options
diff --git a/sys/dev/dwc/dwc4_dma.c b/sys/dev/dwc/dwc4_dma.c
--- a/sys/dev/dwc/dwc4_dma.c
+++ b/sys/dev/dwc/dwc4_dma.c
@@ -470,6 +470,16 @@
if (m == NULL)
break;
if (dma4_setup_txbuf(sc, sc->tx_map_head, &m) != 0) {
+ /*
+ * Without any packet in flight no transmit interrupt
+ * will clear IFF_DRV_OACTIVE and restart the queue,
+ * drop the packet instead of stalling the interface.
+ */
+ if (sc->tx_mapcount == 0) {
+ m_freem(m);
+ if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1);
+ continue;
+ }
if_sendq_prepend(sc->ifp, m);
if_setdrvflagbits(sc->ifp, IFF_DRV_OACTIVE, 0);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 22, 8:39 PM (41 m, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41893565
Default Alt Text
D61830.1795379962.diff (634 B)
Attached To
Mode
D61830: dwc: Do not stall the transmit of the QoS core when a mapping fails
Attached
Detach File
Event Timeline