Page MenuHomeFreeBSD

D61830.1795379962.diff
No OneTemporary

Authored By
Unknown
Size
634 B
Referenced Files
None
Subscribers
None

D61830.1795379962.diff

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

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)

Event Timeline