Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Mar 2015 16:05:21 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r279691 - head/sys/dev/cxgbe
Message-ID:  <201503061605.t26G5Lj4020143@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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