svn commit: r305263 - head/sys/dev/cxgbe/cxgbei
Navdeep Parhar
np at FreeBSD.org
Fri Sep 2 00:21:26 UTC 2016
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);
}
More information about the svn-src-all
mailing list