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/7c3df0e831a7
branches:  trunk
changeset: 826560:7c3df0e831a7
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 a517c67f6301 -r 7c3df0e831a7 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