numam-dpdk/drivers/net/virtio
Yuanhan Liu 663c76798f net/virtio: fix multiple queue enabling
When queue number shrinks to 1 from X, the following code stops us
sending the multiple queue ctrl message:

        if (nb_queues > 1) {
                if (virtio_set_multiple_queues(dev, nb_queues) != 0)
                        return -EINVAL;
        }

This ends up with still X queues being enabled, which is obviously
wrong. Fix it by replacing the check with a multiple queue enabled
or not check.

Fixes: 823ad64795 ("virtio: support multiple queues")

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-11-07 15:41:45 +01:00
..
virtio_user net/virtio_user: fix wrong sequence of messages 2016-09-28 02:18:39 +02:00
Makefile net/virtio: add NEON based Rx handler 2016-09-28 02:18:39 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio: fix multiple queue enabling 2016-11-07 15:41:45 +01:00
virtio_ethdev.h net/virtio: move queue configure code to proper place 2016-11-07 15:40:13 +01:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c pci: create device list and fallback on its members 2016-10-03 16:34:03 +02:00
virtio_pci.h net/virtio: remove started field 2016-11-07 15:40:28 +01:00
virtio_ring.h net/virtio: fix used index retrieved only once 2016-06-22 09:47:12 +02:00
virtio_rxtx_simple_neon.c net/virtio: add NEON based Rx handler 2016-09-28 02:18:39 +02:00
virtio_rxtx_simple_sse.c net/virtio: move SSE based Rx code to separate file 2016-09-28 02:18:39 +02:00
virtio_rxtx_simple.c net/virtio: move SSE based Rx code to separate file 2016-09-28 02:18:39 +02:00
virtio_rxtx_simple.h net/virtio: move SSE based Rx code to separate file 2016-09-28 02:18:39 +02:00
virtio_rxtx.c net/virtio: move queue configure code to proper place 2016-11-07 15:40:13 +01:00
virtio_rxtx.h net/virtio: cleanup conditional compilation 2016-09-28 02:18:39 +02:00
virtio_user_ethdev.c net: register aliases for renamed vdev drivers 2016-10-25 18:49:18 +02:00
virtqueue.c virtio: check virtqueue parameter when detaching 2015-07-19 22:24:42 +02:00
virtqueue.h net/virtio: allocate queue at init stage 2016-11-07 15:40:03 +01:00