Module Name: src
Committed By: msaitoh
Date: Tue Dec 27 10:01:39 UTC 2016
Modified Files:
src/sys/dev/pci/ixgbe: ixgbe.c
Log Message:
Fix flow control setting sysctl. I don't know why disabling autonego when
the flow control parameter is changed. Now the ixgN.fc sysctl works as
expected.
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/dev/pci/ixgbe/ixgbe.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/pci/ixgbe/ixgbe.c
diff -u src/sys/dev/pci/ixgbe/ixgbe.c:1.55 src/sys/dev/pci/ixgbe/ixgbe.c:1.56
--- src/sys/dev/pci/ixgbe/ixgbe.c:1.55 Fri Dec 16 08:41:01 2016
+++ src/sys/dev/pci/ixgbe/ixgbe.c Tue Dec 27 10:01:39 2016
@@ -59,7 +59,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/*$FreeBSD: head/sys/dev/ixgbe/if_ix.c 302384 2016-07-07 03:39:18Z sbruno $*/
-/*$NetBSD: ixgbe.c,v 1.55 2016/12/16 08:41:01 msaitoh Exp $*/
+/*$NetBSD: ixgbe.c,v 1.56 2016/12/27 10:01:39 msaitoh Exp $*/
#include "opt_inet.h"
#include "opt_inet6.h"
@@ -4987,8 +4987,10 @@ ixgbe_set_flowcntl(struct adapter *adapt
return (EINVAL);
}
adapter->fc = fc;
+#if 0 /* XXX NetBSD */
/* Don't autoneg if forcing a value */
adapter->hw.fc.disable_fc_autoneg = TRUE;
+#endif
ixgbe_fc_enable(&adapter->hw);
return (0);
}