From owner-svn-src-head@freebsd.org Fri Sep 2 00:21:26 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 261E2BCCD97; Fri, 2 Sep 2016 00:21:26 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB08C2E44; Fri, 2 Sep 2016 00:21:25 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u820LPNk031916; Fri, 2 Sep 2016 00:21:25 GMT (envelope-from np@FreeBSD.org) Received: (from np@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u820LPQX031915; Fri, 2 Sep 2016 00:21:25 GMT (envelope-from np@FreeBSD.org) Message-Id: <201609020021.u820LPQX031915@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: np set sender to np@FreeBSD.org using -f From: Navdeep Parhar Date: Fri, 2 Sep 2016 00:21:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r305263 - head/sys/dev/cxgbe/cxgbei X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 00:21:26 -0000 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); }