hyperv/hn: Reorder the comment a little bit.

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D8048
This commit is contained in:
Sepherosa Ziehau 2016-09-28 05:01:53 +00:00
parent c04dad64e2
commit ec3eaa6fb0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306392

View File

@ -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);
nsubch = sc->hn_rx_ring_inuse - 1;
if (nsubch > 0)
subch = vmbus_subchan_get(sc->hn_prichan, nsubch);
/*
* Drain RX/TX bufrings and interrupts.
*/
nsubch = sc->hn_rx_ring_inuse - 1;
if (nsubch > 0)
subch = vmbus_subchan_get(sc->hn_prichan, nsubch);
if (subch != NULL) {
for (i = 0; i < nsubch; ++i)
hn_rx_drain(subch[i]);