vhost: optimize virtqueue structure
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 23 Mar 2021 09:02:19 +0000 (10:02 +0100)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 05:48:32 +0000 (07:48 +0200)
commitaf4844503e5daec4a4f14e703a57754793b9c3a3
treeca98ff98578c8574f0dd67935922578951776014
parent1818a63147fb034f185ce75554957a2eb9fb47d4
vhost: optimize virtqueue structure

This patch moves vhost_virtqueue struct fields in order
to both optimize packing and move hot fields on the first
cachelines.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Tested-by: Balazs Nemeth <bnemeth@redhat.com>
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h
lib/librte_vhost/vhost_user.c
lib/librte_vhost/virtio_net.c