> -----Original Message-----
> From: dev <[email protected]> On Behalf Of Balazs Nemeth
> Sent: Saturday, May 15, 2021 12:02 AM
> To: [email protected]; [email protected]; Ling, WeiX <[email protected]>
> 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 <[email protected]>
> ---
> 2.30.2

Applied to next-virtio/main, thanks

Reply via email to