summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerhard <gerhard@openbsd.org>2020-11-24 13:54:58 +0000
committergerhard <gerhard@openbsd.org>2020-11-24 13:54:58 +0000
commit0e2efb92954da6bfe2c3ee0a27e3261f42d5f339 (patch)
tree1e1ece3b693b90d6452030a754b7fdc0d628f288
parentRemove commented-out code messing with uvmexp. (diff)
downloadwireguard-openbsd-0e2efb92954da6bfe2c3ee0a27e3261f42d5f339.tar.xz
wireguard-openbsd-0e2efb92954da6bfe2c3ee0a27e3261f42d5f339.zip
fter ixgbe_stop() there will be no more link-state-change
interrupts. Hence, update the link state manually. Tested and ok bluhm@
-rw-r--r--sys/dev/pci/if_ix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index 7980b9a86df..66325f83850 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.174 2020/11/09 15:09:09 bluhm Exp $ */
+/* $OpenBSD: if_ix.c,v 1.175 2020/11/24 13:54:58 gerhard Exp $ */
/******************************************************************************
@@ -1621,6 +1621,8 @@ ixgbe_stop(void *arg)
/* Should we really clear all structures on stop? */
ixgbe_free_transmit_structures(sc);
ixgbe_free_receive_structures(sc);
+
+ ixgbe_update_link_status(sc);
}