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 get_link_status to true in ixv_init_lo...



details:   https://anonhg.NetBSD.org/src/rev/caebeceb07cf
branches:  trunk
changeset: 356259:caebeceb07cf
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Sep 13 04:48:40 2017 +0000

description:
Set get_link_status to true in ixv_init_locked() to get the first link status
correctly.

diffstat:

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

diffs (17 lines):

diff -r 76b5588d6339 -r caebeceb07cf sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c   Wed Sep 13 00:34:48 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c   Wed Sep 13 04:48:40 2017 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.61 2017/09/12 05:28:31 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.62 2017/09/13 04:48:40 msaitoh Exp $*/
 
 /******************************************************************************
 
@@ -750,6 +750,7 @@
        ixv_init_stats(adapter);
 
        /* Config/Enable Link */
+       hw->mac.get_link_status = TRUE;
        hw->mac.ops.check_link(hw, &adapter->link_speed, &adapter->link_up,
            FALSE);
 



Home | Main Index | Thread Index | Old Index