numam-dpdk/drivers/net/virtio
Yuanhan Liu d4be35a913 net/virtio: fix wrong Rx/Tx method for secondary process
If the primary enables the vector Rx/Tx path, the current code would
let the secondary always choose the non vector Rx/Tx path. This results
to a Rx/Tx method mismatch between primary and secondary process. Werid
errors then may happen, something like:

    PMD: virtio_xmit_pkts() tx: virtqueue_enqueue error: -14

Fix it by choosing the correct Rx/Tx callbacks for the secondary process.
That is, use vector path if it's given.

Fixes: 8d8393fb18 ("virtio: pick simple Rx/Tx")
Cc: stable@dpdk.org

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2017-01-17 09:20:18 +01:00
..
virtio_user net/virtio_user: fix wrong sequence of messages 2016-09-28 02:18:39 +02:00
Makefile net/virtio: add NEON based Rx handler 2016-09-28 02:18:39 +02:00
rte_pmd_virtio_version.map virtio: move to drivers/net/ 2015-05-22 16:06:23 +02:00
virtio_ethdev.c net/virtio: fix wrong Rx/Tx method for secondary process 2017-01-17 09:20:18 +01:00
virtio_ethdev.h net/virtio: move queue configure code to proper place 2016-11-07 15:40:13 +01:00
virtio_logs.h virtio: fix newline under debug mode 2016-05-10 10:52:01 -07:00
virtio_pci.c pci: create device list and fallback on its members 2016-10-03 16:34:03 +02:00
virtio_pci.h net/virtio: add helper to get interrrupt handle 2016-12-25 23:11:22 +01: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 net/virtio: move SSE based Rx code to separate file 2016-09-28 02:18:39 +02:00
virtio_rxtx.c net/virtio: use any layout for version 1.0 2017-01-17 09:20:17 +01:00
virtio_rxtx.h net/virtio: cleanup conditional compilation 2016-09-28 02:18:39 +02:00
virtio_user_ethdev.c ethdev: decouple from PCI device 2016-12-25 23:30:19 +01:00
virtqueue.c virtio: check virtqueue parameter when detaching 2015-07-19 22:24:42 +02:00
virtqueue.h net/virtio: allocate queue at init stage 2016-11-07 15:40:03 +01:00