Index: pci_virtio_net.c =================================================================== --- pci_virtio_net.c (revision 249918) +++ pci_virtio_net.c (working copy) @@ -140,7 +140,6 @@ int vsc_isr; int vsc_tapfd; int vsc_rx_ready; - int vsc_rxpend; int tx_in_progress; int resetting; @@ -323,14 +322,6 @@ if (ndescs == 0) { /* - * Need to wait for host notification to read - */ - if (sc->vsc_rxpend == 0) { - WPRINTF(("vtnet: no rx descriptors !\n")); - sc->vsc_rxpend = 1; - } - - /* * Drop the packet and try later */ (void) read(sc->vsc_tapfd, dummybuf, sizeof(dummybuf)); @@ -414,20 +405,7 @@ /* * A qnotify means that the rx process can now begin */ - if (sc->vsc_rx_ready == 0) { - sc->vsc_rx_ready = 1; - } - - /* - * If the rx queue was empty, attempt to receive a - * packet that was previously blocked due to no rx bufs - * available - */ - if (sc->vsc_rxpend) { - WPRINTF(("vtnet: rx resumed\n\r")); - sc->vsc_rxpend = 0; - pci_vtnet_tap_rx(sc); - } + sc->vsc_rx_ready = 1; } static void