Author: np
Date: Wed Jan 20 07:28:14 2010
New Revision: 202678
URL: http://svn.freebsd.org/changeset/base/202678

Log:
  Complain if freelist queue sizes are significantly less than desired.
  
  MFC after:    1 day

Modified:
  head/sys/dev/cxgb/cxgb_sge.c

Modified: head/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- head/sys/dev/cxgb/cxgb_sge.c        Wed Jan 20 07:27:56 2010        
(r202677)
+++ head/sys/dev/cxgb/cxgb_sge.c        Wed Jan 20 07:28:14 2010        
(r202678)
@@ -541,8 +541,12 @@ t3_sge_prep(adapter_t *adap, struct sge_
        jumbo_q_size = min(nmbjumbo4/(3*nqsets), JUMBO_Q_SIZE);
 #endif
        while (!powerof2(jumbo_q_size))
-               jumbo_q_size--;         
-       
+               jumbo_q_size--;
+
+       if (fl_q_size < (FL_Q_SIZE / 4) || jumbo_q_size < (JUMBO_Q_SIZE / 2))
+               device_printf(adap->dev,
+                   "Insufficient clusters and/or jumbo buffers.\n");
+
        /* XXX Does ETHER_ALIGN need to be accounted for here? */
        p->max_pkt_size = adap->sge.qs[0].fl[1].buf_size - sizeof(struct 
cpl_rx_data);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to