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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to