vhost: optimize packed ring enqueue
authorMarvin Liu <yong.liu@intel.com>
Thu, 24 Oct 2019 16:08:29 +0000 (00:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:20:47 +0000 (19:20 +0200)
commit0294211bb6dcd9ea49932103ff7f934d0957f126
tree2a4a72a795362cd9c93c5bf9f8d16f7debf98522
parentc119edbc2d46c28eea28d2a691c78275e1e6acb6
vhost: optimize packed ring enqueue

Optimize vhost device packed ring enqueue function by splitting batch
and single functions. Packets can be filled into one desc will be
handled by batch and others will be handled by single as before.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c