numam-dpdk/drivers/net/virtio
Marvin Liu 01996a034a net/virtio: fix crash when device reconnecting
When doing virtio device initialization, virtqueues will be reset in
server mode if ring type is packed. It will cause issue because queues
have been freed in the beginning of device initialization.

Fix this issue by checking whether device has been initialized before
reset. If device hasn't been initialized, there's no need to reset
queues.

Fixes: 6ebbf4109f ("net/virtio-user: fix packed ring server mode")
Cc: stable@dpdk.org

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2020-05-11 22:27:39 +02:00
..
virtio_user virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
Makefile net/virtio: add vectorized packed ring Rx 2020-05-05 15:54:26 +02:00
meson.build net/virtio: add vectorized packed ring Rx 2020-05-05 15:54:26 +02:00
rte_pmd_virtio_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
virtio_ethdev.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_ethdev.h net/virtio: add vectorized packed ring Tx 2020-05-05 15:54:26 +02:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c net/virtio: support packed ring notification data 2020-01-17 19:46:26 +01:00
virtio_pci.h net/virtio: add parameter to enable vectorized path 2020-05-05 15:54:26 +02:00
virtio_ring.h virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_packed_avx.c net/virtio: add vectorized packed ring Tx 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple_altivec.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple_neon.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple_sse.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx_simple.c replace cold attributes 2020-04-16 18:30:58 +02:00
virtio_rxtx_simple.h net/virtio: refactor virtqueue structure 2019-03-20 18:15:42 +01:00
virtio_rxtx.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtio_rxtx.h net/virtio: fix Rx stats with vectorized functions 2019-10-07 15:00:57 +02:00
virtio_user_ethdev.c net/virtio: fix crash when device reconnecting 2020-05-11 22:27:39 +02:00
virtqueue.c virtio: use one way barrier for split vring used index 2020-05-05 15:54:26 +02:00
virtqueue.h virtio: use one way barrier for split vring avail index 2020-05-05 15:54:26 +02:00