Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151851695
D27469.id80283.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
972 B
Referenced Files
None
Subscribers
None
D27469.id80283.diff
View Options
Index: sys/dev/cxgbe/tom/t4_cpl_io.c
===================================================================
--- sys/dev/cxgbe/tom/t4_cpl_io.c
+++ sys/dev/cxgbe/tom/t4_cpl_io.c
@@ -721,6 +721,8 @@
for (m = sndptr; m != NULL; m = m->m_next) {
int n;
+ if ((m->m_flags & M_NOTAVAIL) != 0)
+ break;
if (m->m_flags & M_EXTPG) {
#ifdef KERN_TLS
if (m->m_epg_tls != NULL) {
@@ -803,8 +805,9 @@
/* nothing to send */
if (plen == 0) {
- KASSERT(m == NULL,
- ("%s: nothing to send, but m != NULL", __func__));
+ KASSERT(m == NULL || (m->m_flags & M_NOTAVAIL) != 0,
+ ("%s: nothing to send, but m != NULL is ready",
+ __func__));
break;
}
@@ -892,7 +895,7 @@
toep->txsd_avail--;
t4_l2t_send(sc, wr, toep->l2te);
- } while (m != NULL);
+ } while (m != NULL && (m->m_flags & M_NOTAVAIL) == 0);
/* Send a FIN if requested, but only if there's no more data to send */
if (m == NULL && toep->flags & TPF_SEND_FIN)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 2:39 AM (17 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31324190
Default Alt Text
D27469.id80283.diff (972 B)
Attached To
Mode
D27469: Don't transmit mbufs that aren't yet ready.
Attached
Detach File
Event Timeline
Log In to Comment