summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2016-08-05 11:37:57 +0000
committermikeb <mikeb@openbsd.org>2016-08-05 11:37:57 +0000
commit31a9021dadb714209fd7413339b8291cfc301030 (patch)
treef74c81e9310a1b5c5b325e1e19918d0073eeeab8
parentFixup the condition that prevented heartbeat & co. from attaching (diff)
downloadwireguard-openbsd-31a9021dadb714209fd7413339b8291cfc301030.tar.xz
wireguard-openbsd-31a9021dadb714209fd7413339b8291cfc301030.zip
Trigger link state update only on media status updates
-rw-r--r--sys/dev/pv/if_hvn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pv/if_hvn.c b/sys/dev/pv/if_hvn.c
index 9bcc1ffae2a..9ba9cdd0a42 100644
--- a/sys/dev/pv/if_hvn.c
+++ b/sys/dev/pv/if_hvn.c
@@ -1,7 +1,7 @@
/*-
* Copyright (c) 2009-2012 Microsoft Corp.
* Copyright (c) 2010-2012 Citrix Inc.
- * Copyright (c) 2012 NetApp Inc.
+ * Copyright (c) 2012 NetApp Inc.
* Copyright (c) 2016 Mike Belopuhov <mike@esdenera.com>
* All rights reserved.
*
@@ -1277,7 +1277,7 @@ hvn_rndis_status(struct hvn_softc *sc, caddr_t buf, uint32_t len)
break;
/* Ignore these */
case RNDIS_STATUS_OFFLOAD_CURRENT_CONFIG:
- break;
+ return;
default:
DPRINTF("%s: unhandled status %#x\n", sc->sc_dev.dv_xname, sta);
return;