numam-dpdk/examples/vhost
Yuan Wang 1907ce4bae examples/vhost: fix retry logic on Rx path
drain_eth_rx() uses rte_vhost_avail_entries() to calculate
the available entries to determine if a retry is required.
However, this function only works with split rings, and
calculating packed rings will return the wrong value and cause
unnecessary retries resulting in a significant performance penalty.

This patch fix that by using the difference between tx/rx burst
as the retry condition.

Fixes: be800696c2 ("examples/vhost: use burst enqueue and dequeue from lib")
Cc: stable@dpdk.org

Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Tested-by: Wei Ling <weix.ling@intel.com>
2022-07-01 15:49:49 +02:00
..
main.c examples/vhost: fix retry logic on Rx path 2022-07-01 15:49:49 +02:00
main.h examples/vhost: support async dequeue data path 2022-06-01 11:50:09 +02:00
Makefile vhost: integrate dmadev in asynchronous data-path 2022-02-10 15:59:17 +01:00
meson.build vhost: integrate dmadev in asynchronous data-path 2022-02-10 15:59:17 +01:00
virtio_net.c examples/vhost: support async dequeue data path 2022-06-01 11:50:09 +02:00