Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2017 05:55:16 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322487 - head/sys/dev/hyperv/netvsc
Message-ID:  <201708140555.v7E5tGad083732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Mon Aug 14 05:55:16 2017
New Revision: 322487
URL: https://svnweb.freebsd.org/changeset/base/322487

Log:
  hyperv/hn: Re-set datapath after synthetic parts reattached.
  
  Do this even for non-transparent mode VF. Better safe than sorry.
  
  MFC after:	3 days
  Sponsored by:	Microsoft
  Differential Revision:	https://reviews.freebsd.org/D11981

Modified:
  head/sys/dev/hyperv/netvsc/if_hn.c

Modified: head/sys/dev/hyperv/netvsc/if_hn.c
==============================================================================
--- head/sys/dev/hyperv/netvsc/if_hn.c	Mon Aug 14 05:46:50 2017	(r322486)
+++ head/sys/dev/hyperv/netvsc/if_hn.c	Mon Aug 14 05:55:16 2017	(r322487)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708140555.v7E5tGad083732>