svn commit: r279691 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Fri Mar 6 16:05:21 UTC 2015


Author: np
Date: Fri Mar  6 16:05:20 2015
New Revision: 279691
URL: https://svnweb.freebsd.org/changeset/base/279691

Log:
  cxgbe(4):  provide the correct size of freelists associated with netmap
  rx queues to the chip.  This will fix many problems with native netmap
  rx on ncxl/ncxgbe interfaces.
  
  MFC after:	1 week

Modified:
  head/sys/dev/cxgbe/t4_netmap.c

Modified: head/sys/dev/cxgbe/t4_netmap.c
==============================================================================
--- head/sys/dev/cxgbe/t4_netmap.c	Fri Mar  6 15:19:16 2015	(r279690)
+++ head/sys/dev/cxgbe/t4_netmap.c	Fri Mar  6 16:05:20 2015	(r279691)
@@ -279,7 +279,7 @@ alloc_nm_rxq_hwq(struct port_info *pi, s
 	c.fl0dcaen_to_fl0cidxfthresh =
 	    htobe16(V_FW_IQ_CMD_FL0FBMIN(X_FETCHBURSTMIN_64B) |
 		V_FW_IQ_CMD_FL0FBMAX(X_FETCHBURSTMAX_512B));
-	c.fl0size = htobe16(na->num_rx_desc + spg_len / EQ_ESIZE);
+	c.fl0size = htobe16(na->num_rx_desc / 8 + spg_len / EQ_ESIZE);
 	c.fl0addr = htobe64(nm_rxq->fl_ba);
 
 	rc = -t4_wr_mbox(sc, sc->mbox, &c, sizeof(c), &c);


More information about the svn-src-all mailing list