numam-dpdk/drivers/net/virtio
Zhiyong Yang f42deafa44 net/virtio-user: fix crash in server mode
For virtio-user server mode, one use case comes across segmentation fault.
step 1: Launch vhost side as client firstly.
step 2: launch virtio-user side as server.

The cause is: after registering virtio_interrupt_handler into
eal-intr-thread, two threads (main thread and eal-intr-thread) have
sync issues, so add rxvq pointer checking in function virtio_notify_peers
to decide if the code can continue.

Fixes: bd8f50a45d ("net/virtio-user: support server mode")
Cc: stable@dpdk.org

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2018-05-25 17:07:40 +02:00
..
virtio_user net/virtio-user: fix device init in legacy-mem mode 2018-05-17 12:29:05 +02:00
Makefile mk: add experimental tag check 2018-01-29 23:35:29 +01:00
meson.build net/virtio: add to meson build 2018-03-12 16:29:27 +01:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio-user: fix crash in server mode 2018-05-25 17:07:40 +02:00
virtio_ethdev.h net/virtio: move to new offloads API 2018-04-14 00:40:21 +02:00
virtio_logs.h net/virtio: implement dynamic logging 2018-01-16 18:47:49 +01:00
virtio_pci.c drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
virtio_pci.h ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
virtio_ring.h drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
virtio_rxtx_simple_neon.c ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
virtio_rxtx_simple_sse.c ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
virtio_rxtx_simple.c net/virtio: fix resuming port with Rx vector path 2018-02-13 18:57:59 +01:00
virtio_rxtx_simple.h net/virtio: fix resuming port with Rx vector path 2018-02-13 18:57:59 +01:00
virtio_rxtx.c ethdev: new Rx/Tx offloads API 2018-05-14 22:31:51 +01:00
virtio_rxtx.h net/virtio: fix resuming port with Rx vector path 2018-02-13 18:57:59 +01:00
virtio_user_ethdev.c net/virtio-user: fix multiple queues fail in server mode 2018-05-14 22:31:53 +01:00
virtqueue.c net/virtio: fix typo in function name 2018-01-29 10:04:28 +01:00
virtqueue.h net/virtio: fix typo in function name 2018-01-29 10:04:28 +01:00