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 Fix link status stuff:
details: https://anonhg.NetBSD.org/src/rev/47e80235283f
branches: trunk
changeset: 351212:47e80235283f
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Feb 07 04:26:07 2017 +0000
description:
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()...
diffstat:
sys/dev/pci/ixgbe/ixv.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 401dc8bb4ae9 -r 47e80235283f sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c Tue Feb 07 04:20:59 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c Tue Feb 07 04:26:07 2017 +0000
@@ -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 @@
/* 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 @@
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);
}
Home |
Main Index |
Thread Index |
Old Index