mbox

[v2,0/2] Enhance Async Enqueue for Small Packets

Message ID 1608630365-131192-1-git-send-email-jiayu.hu@intel.com (mailing list archive)
Headers

Message

Hu, Jiayu Dec. 22, 2020, 9:46 a.m. UTC
  Async enqueue offloads large copies to DMA devices, and small copies
are still performed by the CPU. However, it requires users to get
enqueue completed packets by rte_vhost_poll_enqueue_completed(), even
if they are completed by the CPU when rte_vhost_submit_enqueue_burst()
returns. This design incurs extra overheads of tracking completed
pktmbufs and function calls, thus degrading performance on small packets.

The first patch cleans up async enqueue code, and the second patch
enables rte_vhost_submit_enqueue_burst() to return completed packets.

Change log
==========
v2:
- fix typo
- rename API variables
- update programmer guide

Jiayu Hu (2):
  vhost: cleanup async enqueue
  vhost: enhance async enqueue for small packets

 doc/guides/prog_guide/vhost_lib.rst |   7 +-
 lib/librte_vhost/rte_vhost_async.h  |  24 ++--
 lib/librte_vhost/vhost.c            |  14 +-
 lib/librte_vhost/vhost.h            |   7 +-
 lib/librte_vhost/vhost_user.c       |   7 +-
 lib/librte_vhost/virtio_net.c       | 256 ++++++++++++++++++++----------------
 6 files changed, 175 insertions(+), 140 deletions(-)