Module Name:    src
Committed By:   msaitoh
Date:           Tue Feb  7 04:26:07 UTC 2017

Modified Files:
        src/sys/dev/pci/ixgbe: ixv.c

Log Message:
Fix link status stuff:
 - Set get_link_status in ixv_init_locked() to get link status correctly.
 - Don't discard checked speed in ixv_config_link()...


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/dev/pci/ixgbe/ixv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.36 src/sys/dev/pci/ixgbe/ixv.c:1.37
--- src/sys/dev/pci/ixgbe/ixv.c:1.36	Tue Feb  7 04:20:59 2017
+++ src/sys/dev/pci/ixgbe/ixv.c	Tue Feb  7 04:26:07 2017
@@ -31,7 +31,7 @@
 
 ******************************************************************************/
 /*$FreeBSD: head/sys/dev/ixgbe/if_ixv.c 302384 2016-07-07 03:39:18Z sbruno $*/
-/*$NetBSD: ixv.c,v 1.36 2017/02/07 04:20:59 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.37 2017/02/07 04:26:07 msaitoh Exp $*/
 
 #include "opt_inet.h"
 #include "opt_inet6.h"
@@ -783,6 +783,7 @@ ixv_init_locked(struct adapter *adapter)
 
 	/* Config/Enable Link */
 	ixv_config_link(adapter);
+	hw->mac.get_link_status = TRUE;
 
 	/* Start watchdog */
 	callout_reset(&adapter->timer, hz, ixv_local_timer, adapter);
@@ -1690,10 +1691,9 @@ static void
 ixv_config_link(struct adapter *adapter)
 {
 	struct ixgbe_hw *hw = &adapter->hw;
-	u32	autoneg;
 
 	if (hw->mac.ops.check_link)
-		hw->mac.ops.check_link(hw, &autoneg,
+		hw->mac.ops.check_link(hw, &adapter->link_speed,
 		    &adapter->link_up, FALSE);
 }
 

Reply via email to