svn commit: r193781 - user/kmacy/releng_7_2_fcs/sys/dev/cxgb

Kip Macy kmacy at FreeBSD.org
Mon Jun 8 23:36:53 UTC 2009


Author: kmacy
Date: Mon Jun  8 23:36:52 2009
New Revision: 193781
URL: http://svn.freebsd.org/changeset/base/193781

Log:
  make coalescing more aggressive

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	Mon Jun  8 23:36:35 2009	(r193780)
+++ user/kmacy/releng_7_2_fcs/sys/dev/cxgb/cxgb_sge.c	Mon Jun  8 23:36:52 2009	(r193781)
@@ -234,14 +234,14 @@ check_pkt_coalesce(struct sge_qset *qs) 
 	fill = &sc->tunq_fill[qs->idx];
 
 	/*
-	 * if the hardware transmit queue is more than 1/2 full
+	 * if the hardware transmit queue is more than 1/4 full
 	 * we mark it as coalescing - we drop back from coalescing
-	 * when we go below 1/8 full, this provides us with some
+	 * when we go below 1/16 full, this provides us with some
 	 * degree of hysteresis
 	 */
-        if (*fill != 0 && (txq->in_use < (txq->size>>3)))  
+        if (*fill != 0 && (txq->in_use < (txq->size>>4)))  
                 *fill = 0; 
-        else if (*fill == 0 && (txq->in_use >= (txq->size - (txq->size>>1))))  
+        else if (*fill == 0 && (txq->in_use >= (txq->size>>2)))
                 *fill = 1; 
 
 	return (sc->tunq_coalesce);


More information about the svn-src-user mailing list