svn commit: r340023 - head/sys/dev/cxgbe
John Baldwin
jhb at FreeBSD.org
Thu Nov 1 21:49:50 UTC 2018
Author: jhb
Date: Thu Nov 1 21:49:49 2018
New Revision: 340023
URL: https://svnweb.freebsd.org/changeset/base/340023
Log:
Check cannot_use_txpkts() rather than needs_tso() in add_to_txpkts().
Currently this is a no-op, but will matter in the future when
cannot_use_txpkts() starts checking other conditions than just
needs_tso().
Sponsored by: Chelsio Communications
Modified:
head/sys/dev/cxgbe/t4_sge.c
Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c Thu Nov 1 21:46:37 2018 (r340022)
+++ head/sys/dev/cxgbe/t4_sge.c Thu Nov 1 21:49:49 2018 (r340023)
@@ -4725,8 +4725,11 @@ add_to_txpkts(struct mbuf *m, struct txpkts *txp, u_in
MPASS(txp->wr_type == 0 || txp->wr_type == 1);
+ if (cannot_use_txpkts(m))
+ return (1);
+
nsegs = mbuf_nsegs(m);
- if (needs_tso(m) || (txp->wr_type == 1 && nsegs != 1))
+ if (txp->wr_type == 1 && nsegs != 1)
return (1);
plen = txp->plen + m->m_pkthdr.len;
More information about the svn-src-head
mailing list