numam-dpdk/drivers/net/virtio
Ami Sabo 727d83ca23 net/virtio-user: fix multi-process attach
Secondary process doesn't properly attach to the rte_eth_device
initialized by the primary process.

Accessing device from secondary process (e.g. via rte_eth_rx_burst),
causes process to crash. because rte_eth_dev_data is not properly set.

The issue was flood by
'commit 7f95f78a8a ("ethdev: clear data when allocating device")'
which now clears rte_eth_dev_data entry.
For pci devices the struct is initialized by rte_eth_dev_pci_probe
->eth_dev_attach_secondary().
However, for virtio-user virtio_user_pmd_probe() is called instead of
rte_eth_dev_pci_probe().

The fix is to call rte_eth_dev_attach_secondary(), for secondary
process, from virtio_user_pmd_probe.

Fixes: 7f95f78a8a ("ethdev: clear data when allocating device")
Cc: stable@dpdk.org

Signed-off-by: Ami Sabo <amis@radware.com>
2017-04-14 15:22:49 +02:00
..
virtio_user net/virtio-user: support to report net status 2017-04-01 10:36:17 +02:00
Makefile mk: optimize directory dependencies 2017-03-27 23:28:43 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c eal: clean up interrupt handle 2017-04-06 21:15:55 +02:00
virtio_ethdev.h eal: clean up interrupt handle 2017-04-06 21:15:55 +02:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c net/virtio: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
virtio_pci.h net/virtio: support MTU feature 2017-04-01 10:36:17 +02: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 mbuf: make segment prefree function public 2017-04-05 11:30:29 +02:00
virtio_rxtx.c drivers/net: do not touch mbuf next or nb segs on Rx 2017-04-05 11:30:29 +02:00
virtio_rxtx.h net/virtio: cleanup conditional compilation 2016-09-28 02:18:39 +02:00
virtio_user_ethdev.c net/virtio-user: fix multi-process attach 2017-04-14 15:22:49 +02:00
virtqueue.c net/virtio: add Rx interrupt enable/disable functions 2017-01-17 09:26:52 +01:00
virtqueue.h net/virtio: add Rx interrupt enable/disable functions 2017-01-17 09:26:52 +01:00