Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2009 17:50:59 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r195250 - stable/7/sys/dev/cxgb
Message-ID:  <200907011750.n61HoxPr019738@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Jul  1 17:50:59 2009
New Revision: 195250
URL: http://svn.freebsd.org/changeset/base/195250

Log:
  Fix cxgb's version checks in stable.  This makes it select the
  correct buffer size for freelist1.
  
  Approved by:	gnn (mentor)

Modified:
  stable/7/sys/dev/cxgb/cxgb_sge.c

Modified: stable/7/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- stable/7/sys/dev/cxgb/cxgb_sge.c	Wed Jul  1 17:20:07 2009	(r195249)
+++ stable/7/sys/dev/cxgb/cxgb_sge.c	Wed Jul  1 17:50:59 2009	(r195250)
@@ -375,7 +375,7 @@ t3_sge_prep(adapter_t *adap, struct sge_
 
 	while (!powerof2(fl_q_size))
 		fl_q_size--;
-#if __FreeBSD_version > 700000
+#if __FreeBSD_version >= 700111
 	if (cxgb_use_16k_clusters) 
 		jumbo_q_size = min(nmbjumbo16/(3*nqsets), JUMBO_Q_SIZE);
 	else
@@ -2377,7 +2377,7 @@ t3_sge_alloc_qset(adapter_t *sc, u_int i
 	q->fl[0].buf_size = (MCLBYTES - header_size);
 	q->fl[0].zone = zone_clust;
 	q->fl[0].type = EXT_CLUSTER;
-#if __FreeBSD_version > 800000
+#if __FreeBSD_version >= 700111
 	if (cxgb_use_16k_clusters) {		
 		q->fl[1].buf_size = MJUM16BYTES - header_size;
 		q->fl[1].zone = zone_jumbo16;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907011750.n61HoxPr019738>