aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
diff options
context:
space:
mode:
authorSepherosa Ziehau <sephe@FreeBSD.org>2017-08-14 05:55:16 +0000
committerSepherosa Ziehau <sephe@FreeBSD.org>2017-08-14 05:55:16 +0000
commitd0cd8231e0def85ef6105b885265b223a463dd7e (patch)
treeb503d4384a789e95eeb159535681468cf7889e51 /sys/dev/hyperv
parentc2d50b263fa79296b8a9b7a2ce9a00adecd06c3b (diff)
Notes
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/netvsc/if_hn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c
index 34e1200fbadd..2d7a7c8cfda3 100644
--- a/sys/dev/hyperv/netvsc/if_hn.c
+++ b/sys/dev/hyperv/netvsc/if_hn.c
@@ -3403,7 +3403,8 @@ hn_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
*/
hn_resume(sc);
- if (sc->hn_xvf_flags & HN_XVFFLAG_ENABLED) {
+ if ((sc->hn_flags & HN_FLAG_RXVF) ||
+ (sc->hn_xvf_flags & HN_XVFFLAG_ENABLED)) {
/*
* Since we have reattached the NVS part,
* change the datapath to VF again; in case