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 Set IFM_1000_BX10 correctly.



details:   https://anonhg.NetBSD.org/src/rev/e8a80aab2d59
branches:  trunk
changeset: 454075:e8a80aab2d59
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Sep 04 08:13:43 2019 +0000

description:
Set IFM_1000_BX10 correctly.

diffstat:

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

diffs (26 lines):

diff -r b8ca960b4e48 -r e8a80aab2d59 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Sep 04 07:29:34 2019 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Sep 04 08:13:43 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.207 2019/09/04 07:29:34 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.208 2019/09/04 08:13:43 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -1403,7 +1403,6 @@
 ixgbe_add_media_types(struct adapter *adapter)
 {
        struct ixgbe_hw *hw = &adapter->hw;
-       device_t        dev = adapter->dev;
        u64             layer;
 
        layer = adapter->phy_layer;
@@ -1469,7 +1468,7 @@
                ADD(IFM_5000_T | IFM_FDX, 0);
        }
        if (layer & IXGBE_PHYSICAL_LAYER_1000BASE_BX)
-               device_printf(dev, "Media supported: 1000baseBX\n");
+               ADD(IFM_1000_BX10 | IFM_FDX, 0);
        /* XXX no ifmedia_set? */
 
        ADD(IFM_AUTO, 0);



Home | Main Index | Thread Index | Old Index