vhost: flush enqueue updates by cacheline
authorMarvin Liu <yong.liu@intel.com>
Thu, 24 Oct 2019 16:08:26 +0000 (00:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:20:47 +0000 (19:20 +0200)
commit33d4a554f9e7df9cb1d7da5df503e4c1c8717f8a
tree083fe95dee115ef6fc2aae59ea1c5d2395ccaac1
parent75ed5169782072ed7d467e0f688bc0fdfeb27da1
vhost: flush enqueue updates by cacheline

Buffer vhost packed ring enqueue updates, flush ring descs if buffered
content filled up one cacheline. Thus virtio can receive packets at a
faster frequency.

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