svn commit: r337550 - in head: share/man/man4 sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Thu Aug 9 21:07:33 UTC 2018
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) {
More information about the svn-src-head
mailing list