Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Sep 2016 00:21:25 +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: r305263 - head/sys/dev/cxgbe/cxgbei
Message-ID:  <201609020021.u820LPQX031915@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Fri Sep  2 00:21:24 2016
New Revision: 305263
URL: https://svnweb.freebsd.org/changeset/base/305263

Log:
  cxgbe/cxgbei: Provide a knob to set the DDP threshold for iSCSI
  transfers.
  
  The Initiator and Target both perform zero copy receive for transfers
  greater than or equal to this threshold.
  
  Sponsored by:	Chelsio Communications

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

Modified: head/sys/dev/cxgbe/cxgbei/cxgbei.c
==============================================================================
--- head/sys/dev/cxgbe/cxgbei/cxgbei.c	Fri Sep  2 00:16:19 2016	(r305262)
+++ head/sys/dev/cxgbe/cxgbei/cxgbei.c	Fri Sep  2 00:21:24 2016	(r305263)
@@ -192,9 +192,7 @@ cxgbei_init(struct adapter *sc, struct c
 
 	read_pdu_limits(sc, &ci->max_tx_pdu_len, &ci->max_rx_pdu_len);
 
-	ci->ddp_threshold = 2048;
 	pr = &ci->pr;
-
 	r = t4_read_reg(sc, A_ULP_RX_ISCSI_PSZ);
 	rc = t4_init_ppod_region(pr, &sc->vres.iscsi, r, "iSCSI page pods");
 	if (rc != 0) {
@@ -249,6 +247,10 @@ cxgbei_init(struct adapter *sc, struct c
 	    CTLFLAG_RD, &ci->fl_pdus,
 	    "# of PDUs with data delivered in freelist");
 
+	ci->ddp_threshold = 2048;
+	SYSCTL_ADD_UINT(&ci->ctx, children, OID_AUTO, "ddp_threshold",
+	    CTLFLAG_RW, &ci->ddp_threshold, 0, "Rx zero copy threshold");
+
 	return (0);
 }
 



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