Skip to content

Commit

Permalink
Disable notification for the tx queue
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
  • Loading branch information
xl0 committed Apr 22, 2011
1 parent 456a0e0 commit 2a48f93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtio_net/virtio_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,6 @@ vioif_intr(caddr_t arg)
if (!isr_status)
return DDI_INTR_UNCLAIMED;


vioif_reclaim_used_tx(sc);
i = vioif_process_rx(sc);
// if (i) {
Expand Down Expand Up @@ -1465,13 +1464,15 @@ virtio_net_attach(dev_info_t *devinfo, ddi_attach_cmd_t cmd)
goto exit_alloc1;
}


sc->sc_nvqs = 1;
// sc->sc_virtio_vq[0].vq_done = vioif_rx_vq_done;
ret = virtio_alloc_vq(&sc->sc_virtio, &sc->sc_vq[1], 1, VIOIF_TX_QLEN, "tx");
if (ret) {
goto exit_alloc2;
}

virtio_stop_vq_intr(&sc->sc_vq[1]);
sc->sc_nvqs = 2;
// sc->sc_virtio_vq[1].vq_done = vioif_tx_vq_done;
// virtio_start_vq_intr(&sc->sc_vq[0]);
Expand Down

0 comments on commit 2a48f93

Please sign in to comment.