numam-dpdk/drivers/net/virtio
Changchun Ouyang 6d7740e2c1 virtio: fix deadloop after wrong config read
The old code adjusts the config bytes we want to read depending on
what kind of features we have, but we later cast the entire buf we
read with "struct virtio_net_config", which is obviously wrong.

The wrong config reading results to a dead loop at virtio_send_command()
while starting testpmd.

The right way to go is to read related config bytes when corresponding
feature is set, which is exactly what this patch does.

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

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Huawei Xie <huawei.xie@intel.com>
2015-10-26 21:23:53 +01:00
..
Makefile mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c virtio: fix deadloop after wrong config read 2015-10-26 21:23:53 +01:00
virtio_ethdev.h virtio: small cleanups 2015-07-22 10:55:26 +02:00
virtio_logs.h virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_pci.c virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_pci.h virtio: clarify feature bit handling 2015-06-12 14:43:40 +02:00
virtio_ring.h virtio: fix Coverity unsigned warnings 2015-10-21 16:14:02 +02:00
virtio_rxtx.c virtio: fix Coverity unsigned warnings 2015-10-21 16:14:02 +02:00
virtqueue.c virtio: check virtqueue parameter when detaching 2015-07-19 22:24:42 +02:00
virtqueue.h virtio: clarify feature bit handling 2015-06-12 14:43:40 +02:00