> -----Original Message----- > From: dev <dev-boun...@dpdk.org> On Behalf Of Balazs Nemeth > Sent: Saturday, May 15, 2021 12:02 AM > To: bnem...@redhat.com; dev@dpdk.org; Ling, WeiX <weix.l...@intel.com> > Subject: [dpdk-dev] [PATCH] vhost: fix invalid use of stored last used index > > The optimization introduced by commit d18db8049c7c ("vhost: read last > used index once") didn't account for the fact that > vhost_flush_enqueue_shadow_packed increments the last_used_idx. For this > reason, store last_used_idx after the potential call to > vhost_flush_enqueue_shadow_packed. > > Fixes: d18db8049c7c ("vhost: read last used index once") > Signed-off-by: Balazs Nemeth <bnem...@redhat.com> > --- > 2.30.2
Applied to next-virtio/main, thanks