Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Fix a bug that some advertise speeds can't...



details:   https://anonhg.NetBSD.org/src/rev/6adebf463905
branches:  trunk
changeset: 945995:6adebf463905
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Nov 13 05:53:36 2020 +0000

description:
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.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r f0228d3665fe -r 6adebf463905 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Fri Nov 13 04:12:38 2020 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Fri Nov 13 05:53:36 2020 +0000
@@ -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 @@
                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);
        }
 



Home | Main Index | Thread Index | Old Index