From f35330d5be0c6286499197c13e7c401cfaa002b8 Mon Sep 17 00:00:00 2001 From: Nikita Kalyazin Date: Fri, 2 Oct 2015 16:01:14 +0300 Subject: [PATCH] linux/virtio: configure real number of rx queues Signed-off-by: Nikita Kalyazin --- LINUX/virtio_netmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LINUX/virtio_netmap.h b/LINUX/virtio_netmap.h index 3fb1572dc..6c9afa192 100644 --- a/LINUX/virtio_netmap.h +++ b/LINUX/virtio_netmap.h @@ -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);