svn commit: r193546 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb
Kip Macy
kmacy at FreeBSD.org
Fri Jun 5 23:27:28 UTC 2009
Author: kmacy
Date: Fri Jun 5 23:27:27 2009
New Revision: 193546
URL: http://svn.freebsd.org/changeset/base/193546
Log:
only pass ci.count if we're doing a a batch transmit
Modified:
user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c
Modified: user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c Fri Jun 5 23:23:24 2009 (r193545)
+++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c Fri Jun 5 23:27:27 2009 (r193546)
@@ -1555,9 +1555,10 @@ cxgb_start_locked(struct sge_qset *qs)
check_pkt_coalesce(qs);
count = 1;
- if (sc->tunq_coalesce)
+ if (sc->tunq_coalesce) {
m_head = cxgb_dequeue_chain(qs, &ci);
- else
+ count = ci.count;
+ } else
m_head = TXQ_RING_DEQUEUE(qs);
if (m_head == NULL)
@@ -1566,7 +1567,7 @@ cxgb_start_locked(struct sge_qset *qs)
* Encapsulation can modify our pointer, and or make it
* NULL on failure. In that event, we can't requeue.
*/
- if (t3_encap(qs, &m_head, ci.count))
+ if (t3_encap(qs, &m_head, count))
break;
/* Send a copy of the frame to the BPF listener */
More information about the svn-src-user
mailing list