1907ce4bae
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:
|
||
---|---|---|
.. | ||
main.c | ||
main.h | ||
Makefile | ||
meson.build | ||
virtio_net.c |