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:
parent
c04dad64e2
commit
ec3eaa6fb0
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user