svn commit: r184988 - user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb
Kip Macy
kmacy at FreeBSD.org
Sat Nov 15 00:51:33 PST 2008
Author: kmacy
Date: Sat Nov 15 08:51:32 2008
New Revision: 184988
URL: http://svn.freebsd.org/changeset/base/184988
Log:
need to set txsd->mi even for small packets if count > 1
Modified:
user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_sge.c
Modified: user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_sge.c Sat Nov 15 08:50:34 2008 (r184987)
+++ user/kmacy/HEAD_fast_multi_xmit/sys/dev/cxgb/cxgb_sge.c Sat Nov 15 08:51:32 2008 (r184988)
@@ -1282,7 +1282,7 @@ t3_encap(struct sge_qset *qs, struct mbu
}
KASSERT(m0->m_pkthdr.len, ("empty packet nsegs=%d count=%d", nsegs, count));
- if (!(m0->m_pkthdr.len <= PIO_LEN)) {
+ if ((m0->m_pkthdr.len > PIO_LEN) || (count > 1)) {
mi_collapse_mbuf(&txsd->mi, m0);
mi = &txsd->mi;
}
More information about the svn-src-user
mailing list