From owner-svn-src-all@freebsd.org Thu Aug 9 21:07:33 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87EE01073AF6; Thu, 9 Aug 2018 21:07:33 +0000 (UTC) (envelope-from np@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C4588855B; Thu, 9 Aug 2018 21:07:33 +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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1D71A1EB53; Thu, 9 Aug 2018 21:07:33 +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 w79L7WjR072920; Thu, 9 Aug 2018 21:07:32 GMT (envelope-from np@FreeBSD.org) Received: (from np@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w79L7Wtq072918; Thu, 9 Aug 2018 21:07:32 GMT (envelope-from np@FreeBSD.org) Message-Id: <201808092107.w79L7Wtq072918@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: np set sender to np@FreeBSD.org using -f From: Navdeep Parhar Date: Thu, 9 Aug 2018 21:07:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r337550 - in head: share/man/man4 sys/dev/cxgbe X-SVN-Group: head X-SVN-Commit-Author: np X-SVN-Commit-Paths: in head: share/man/man4 sys/dev/cxgbe X-SVN-Commit-Revision: 337550 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2018 21:07:33 -0000 Author: np Date: Thu Aug 9 21:07:32 2018 New Revision: 337550 URL: https://svnweb.freebsd.org/changeset/base/337550 Log: cxgbe(4): Set fl_pktshift to 0 by default. Sponsored by: Chelsio Communications Modified: head/share/man/man4/cxgbe.4 head/sys/dev/cxgbe/t4_sge.c Modified: head/share/man/man4/cxgbe.4 ============================================================================== --- head/share/man/man4/cxgbe.4 Thu Aug 9 20:29:44 2018 (r337549) +++ head/share/man/man4/cxgbe.4 Thu Aug 9 21:07:32 2018 (r337550) @@ -31,7 +31,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 16, 2017 +.Dd Aug 9, 2018 .Dt CXGBE 4 .Os .Sh NAME @@ -262,7 +262,8 @@ The default is 1. .It Va hw.cxgbe.fl_pktshift Number of padding bytes inserted before the beginning of an Ethernet frame in the receive buffer. -The default value of 2 ensures that the Ethernet payload (usually the IP header) +The default value is 0. +A value of of 2 would ensure that the Ethernet payload (usually the IP header) is at a 4 byte aligned address. 0-7 are all valid values. .It Va hw.cxgbe.fl_pad Modified: head/sys/dev/cxgbe/t4_sge.c ============================================================================== --- head/sys/dev/cxgbe/t4_sge.c Thu Aug 9 20:29:44 2018 (r337549) +++ head/sys/dev/cxgbe/t4_sge.c Thu Aug 9 21:07:32 2018 (r337550) @@ -86,7 +86,7 @@ __FBSDID("$FreeBSD$"); * Ethernet frames are DMA'd at this byte offset into the freelist buffer. * 0-7 are valid values. */ -static int fl_pktshift = 2; +static int fl_pktshift = 0; TUNABLE_INT("hw.cxgbe.fl_pktshift", &fl_pktshift); /* @@ -496,8 +496,8 @@ t4_sge_modload(void) if (fl_pktshift < 0 || fl_pktshift > 7) { printf("Invalid hw.cxgbe.fl_pktshift value (%d)," - " using 2 instead.\n", fl_pktshift); - fl_pktshift = 2; + " using 0 instead.\n", fl_pktshift); + fl_pktshift = 0; } if (spg_len != 64 && spg_len != 128) {