numam-dpdk/drivers/net/virtio
Jianfeng Tan 62a785a68e virtio: fix overwritten driver flags
The "drv_flags" is set with device as the input, which means different
device (say, modern vs legacy) could end up with a different value. And
the fact that "drv_flags" is shared by all devices means that every time
we add a new device, it simply overwrites the value configured from the
last device.

Therefore, when two virtio devices have different flags, it may lead to
wrong result, such as virtio would set irq config when it's not supported.

Making the flag per device (using "dev->data->dev_flags") could let us
have different value for each device, which would avoid the above issue.

Fixes: da978dfdc4 ("virtio: use port IO to get PCI resource")

Reported-by: David Marchand <david.marchand@6wind.com>
Suggested-by: David Marchand <david.marchand@6wind.com>
Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-05-10 10:57:10 -07:00
..
Makefile virtio: restrict vector Rx/Tx to x86 SSSE3 2016-03-03 14:00:28 +01:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c virtio: fix overwritten driver flags 2016-05-10 10:57:10 -07:00
virtio_ethdev.h ethdev: use constants for link duplex 2016-04-01 21:38:34 +02:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c virtio: fix overwritten driver flags 2016-05-10 10:57:10 -07:00
virtio_pci.h virtio: fix overwritten driver flags 2016-05-10 10:57:10 -07:00
virtio_ring.h virtio: fix Coverity unsigned warnings 2015-10-21 16:14:02 +02:00
virtio_rxtx_simple.c mbuf: get DMA address 2016-03-04 16:01:15 +01:00
virtio_rxtx.c virtio: fix segfault on Tx desc flags setup 2016-05-10 10:53:28 -07:00
virtio_rxtx.h virtio: restrict vector Rx/Tx to x86 SSSE3 2016-03-03 14:00:28 +01:00
virtqueue.c virtio: check virtqueue parameter when detaching 2015-07-19 22:24:42 +02:00
virtqueue.h virtio: optimize avail ring update 2016-05-10 10:57:10 -07:00