Skip to content

Commit

Permalink
linux/virtio: configure real number of rx queues
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Kalyazin <[email protected]>
  • Loading branch information
Nikita Kalyazin committed Oct 6, 2015
1 parent c104b27 commit f35330d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LINUX/virtio_netmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ virtio_netmap_config(struct netmap_adapter *na, u_int *txr, u_int *txd,

*txr = ifp->real_num_tx_queues;
*txd = virtqueue_get_vring_size(GET_TX_VQ(vi, 0));
*rxr = 1;
*rxr = ifp->real_num_rx_queues;
*rxd = virtqueue_get_vring_size(GET_RX_VQ(vi, 0));
D("virtio config txq=%d, txd=%d rxq=%d, rxd=%d",
*txr, *txd, *rxr, *rxd);
Expand Down

0 comments on commit f35330d

Please sign in to comment.