net/virtio: pack virtqueue structure
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 16 Mar 2021 09:38:25 +0000 (10:38 +0100)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 05:31:50 +0000 (07:31 +0200)
commit97bd53721bf69b0046db2928d29c6cbe978e53e1
tree0081f5fd421fbe859fd9d5caf6965d1ff03654bb
parentb59d4d5502dcb1b57be81eb21b5e8bcb80de49e7
net/virtio: pack virtqueue structure

This patch optimizes packing of the virtqueue
struct by moving fields around to fill holes.

Offset field is not used and so can be removed.

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>
drivers/net/virtio/virtqueue.h