numam-dpdk/drivers
Tiwei Bie bcf55c9302 net/virtio: fix vector Rx flushing
The vector Rx will be broken if backend has consumed all
the descs in the avail ring before the device is started.
Because in current implementation, vector Rx will return
immediately without refilling the avail ring if the used
ring is empty. So we have to refill the avail ring after
flushing the elements in the used ring for vector Rx.

Besides, vector Rx has a different ring layout assumption
and mbuf management. So we need to handle it differently.

Fixes: d8227497ec ("net/virtio: flush Rx queues on start")
Cc: stable@dpdk.org

Reported-by: Antonio Fischetti <antonio.fischetti@intel.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Antonio Fischetti <antonio.fischetti@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
2018-01-16 18:47:49 +01:00
..
bus net/dpaa2: optimize Tx path for best case 2018-01-16 18:47:49 +01:00
crypto bus/fslmc: support dynamic IOVA 2018-01-16 18:47:49 +01:00
event drivers: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
mempool mempool/octeontx: fix memory area registration 2018-01-12 18:32:05 +01:00
net net/virtio: fix vector Rx flushing 2018-01-16 18:47:49 +01:00
Makefile drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00