Module Name: src Committed By: msaitoh Date: Fri Nov 13 05:53:36 UTC 2020
Modified Files: src/sys/dev/pci/ixgbe: ixgbe.c Log Message: Fix a bug that some advertise speeds can't be set with hw.ixgN.advertise_speed if both 2.5G and 5G are set. Fix the error message, too. To generate a diff of this commit: cvs rdiff -u -r1.258 -r1.259 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.258 src/sys/dev/pci/ixgbe/ixgbe.c:1.259 --- src/sys/dev/pci/ixgbe/ixgbe.c:1.258 Mon Sep 7 09:14:53 2020 +++ src/sys/dev/pci/ixgbe/ixgbe.c Fri Nov 13 05:53:36 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: ixgbe.c,v 1.258 2020/09/07 09:14:53 knakahara Exp $ */ +/* $NetBSD: ixgbe.c,v 1.259 2020/11/13 05:53:36 msaitoh Exp $ */ /****************************************************************************** @@ -5542,9 +5542,9 @@ ixgbe_set_advertise(struct adapter *adap return (EINVAL); } - if (advertise < 0x0 || advertise > 0x2f) { + if (advertise < 0x0 || advertise > 0x3f) { device_printf(dev, - "Invalid advertised speed; valid modes are 0x0 through 0x7\n"); + "Invalid advertised speed; valid modes are 0x0 through 0x3f\n"); return (EINVAL); }