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 X550EM supports QSFP, so check ixgbe_media...



details:   https://anonhg.NetBSD.org/src/rev/9bd614f4bb59
branches:  trunk
changeset: 453840:9bd614f4bb59
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Aug 28 08:23:35 2019 +0000

description:
X550EM supports QSFP, so check ixgbe_media_type_fiber_qsfp too.

diffstat:

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

diffs (30 lines):

diff -r 4e4a88537a8d -r 9bd614f4bb59 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Aug 28 07:11:19 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Aug 28 08:23:35 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.202 2019/08/21 10:01:53 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.203 2019/08/28 08:23:35 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -1489,6 +1489,8 @@
                        return (TRUE);
                return (FALSE);
        case ixgbe_mac_82599EB:
+       case ixgbe_mac_X550EM_x:
+       case ixgbe_mac_X550EM_a:
                switch (hw->mac.ops.get_media_type(hw)) {
                case ixgbe_media_type_fiber:
                case ixgbe_media_type_fiber_qsfp:
@@ -1496,11 +1498,6 @@
                default:
                        return (FALSE);
                }
-       case ixgbe_mac_X550EM_x:
-       case ixgbe_mac_X550EM_a:
-               if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber)
-                       return (TRUE);
-               return (FALSE);
        default:
                return (FALSE);
        }



Home | Main Index | Thread Index | Old Index