[dpdk-dev] [PATCH] vhost: fix invalid use of stored last used index

Xia, Chenbo chenbo.xia at intel.com
Tue May 18 10:03:06 CEST 2021


> -----Original Message-----
> From: dev <dev-bounces at dpdk.org> On Behalf Of Balazs Nemeth
> Sent: Saturday, May 15, 2021 12:02 AM
> To: bnemeth at redhat.com; dev at dpdk.org; Ling, WeiX <weix.ling at 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 <bnemeth at redhat.com>
> ---
> 2.30.2

Applied to next-virtio/main, thanks


More information about the dev mailing list