> -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Balazs Nemeth > Sent: Wednesday, April 7, 2021 5:55 PM > To: bnem...@redhat.com; dev@dpdk.org > Subject: [dpdk-dev] [PATCH v3] vhost: read last used index once > > Instead of calculating the address of a packed descriptor based on the > vq->desc_packed and vq->last_used_idx every time, store that base > address in desc_base. On arm, this saves 176 bytes in code size of > function in which vhost_flush_enqueue_batch_packed gets inlined. > > Signed-off-by: Balazs Nemeth <bnem...@redhat.com> > --- > lib/librte_vhost/virtio_net.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/lib/librte_vhost/virtio_net.c b/lib/librte_vhost/virtio_net.c > index 179c57b46..f091384a6 100644 > --- a/lib/librte_vhost/virtio_net.c > +++ b/lib/librte_vhost/virtio_net.c > -- > 2.30.2
Patch applied to next-virtio/main, thanks