Page MenuHomeFreeBSD

D8048.id20761.diff
No OneTemporary

D8048.id20761.diff

Index: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -3580,16 +3580,18 @@
*/
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]);

File Metadata

Mime Type
text/plain
Expires
Thu, Aug 27, 6:22 PM (8 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37408660
Default Alt Text
D8048.id20761.diff (769 B)

Event Timeline