svn commit: r306392 - head/sys/dev/hyperv/netvsc

Sepherosa Ziehau sephe at FreeBSD.org
Wed Sep 28 05:01:54 UTC 2016


Author: sephe
Date: Wed Sep 28 05:01:53 2016
New Revision: 306392
URL: https://svnweb.freebsd.org/changeset/base/306392

Log:
  hyperv/hn: Reorder the comment a little bit.
  
  MFC after:	1 week
  Sponsored by:	Microsoft
  Differential Revision:	https://reviews.freebsd.org/D8048

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

Modified: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c	Wed Sep 28 04:45:00 2016	(r306391)
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c	Wed Sep 28 05:01:53 2016	(r306392)
@@ -3580,16 +3580,18 @@ hn_suspend(struct hn_softc *sc)
 	 */
 	hv_rf_on_close(sc);
 
-	/* Give RNDIS enough time to flush all pending data packets. */
+	/*
+	 * Give RNDIS enough time to flush all pending data packets.
+	 */
 	pause("waitrx", (200 * hz) / 1000);
 
+	/*
+	 * Drain RX/TX bufrings and interrupts.
+	 */
 	nsubch = sc->hn_rx_ring_inuse - 1;
 	if (nsubch > 0)
 		subch = vmbus_subchan_get(sc->hn_prichan, nsubch);
 
-	/*
-	 * Drain RX/TX bufrings and interrupts.
-	 */
 	if (subch != NULL) {
 		for (i = 0; i < nsubch; ++i)
 			hn_rx_drain(subch[i]);


More information about the svn-src-head mailing list