svn commit: r195250 - stable/7/sys/dev/cxgb
Navdeep Parhar
np at FreeBSD.org
Wed Jul 1 17:51:00 UTC 2009
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;
More information about the svn-src-stable
mailing list