From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A6DA841D44 for ; Thu, 23 Feb 2023 04:25:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2480431F4; Thu, 23 Feb 2023 04:25:01 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 6E33E40DF6; Thu, 23 Feb 2023 04:24:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677122698; x=1708658698; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oxDQe17+gIwCgAEFEqKDS1BJLN6wf37zwwEpTcHYKhs=; b=NJ71XIWAiG/vwKorHg1RPvGlKpNwAkG5w8b3uzPIXHkE/7HmmWTzPmX2 ZxvRhwfTkfuMM7hk4Q3UXcryddeof6U4+TS0YckxH3xWlaD4VDX75Os+J 5N/4hZa0EtkpV+OH1VMXHaFzDa1BmpQyph3nIJuHChgrOzGz889KDYPWP IZHM1uEqpal6WTonH/EWkUoTiEGf9bmH1zirstSUJMtY76CZEbLmo+tLN OvjXxp1FO08DJByrypjHiUOunZbhYb2RRT97aISOCaLbV0PEc5RthvR72 gHenl5+N5L/KpZJL6VvqkkeD+Y9/vn+44OCKvzZLjr3GnIG/wxQ9mO9pV w==; X-IronPort-AV: E=McAfee;i="6500,9779,10629"; a="316832538" X-IronPort-AV: E=Sophos;i="5.97,320,1669104000"; d="scan'208";a="316832538" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2023 19:24:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10629"; a="781715163" X-IronPort-AV: E=Sophos;i="5.97,320,1669104000"; d="scan'208";a="781715163" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.118.237]) by fmsmga002.fm.intel.com with ESMTP; 22 Feb 2023 19:24:53 -0800 From: Cheng Jiang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, wangzhihong.wzh@bytedance.com, jiayu.hu@intel.com, xuan.ding@intel.com, wenwux.ma@intel.com, yuanx.wang@intel.com, xingguang.he@intel.com, Cheng Jiang , stable@dpdk.org Subject: [PATCH] vhost: fix slot index in async split virtqueue Tx Date: Thu, 23 Feb 2023 02:30:32 +0000 Message-Id: <20230223023032.681-1-cheng1.jiang@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The slot_idx in the asynchronous Vhost split virtqueue dequeue data path is supposed to be decreased by 1 when desc_to_mbuf() fails. Fixes: 84d5204310d7 ("vhost: support async dequeue for split ring") Cc: stable@dpdk.org Signed-off-by: Cheng Jiang --- lib/vhost/virtio_net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vhost/virtio_net.c b/lib/vhost/virtio_net.c index 8caf05319e..374007a61a 100644 --- a/lib/vhost/virtio_net.c +++ b/lib/vhost/virtio_net.c @@ -3720,6 +3720,7 @@ virtio_dev_tx_async_split(struct virtio_net *dev, struct vhost_virtqueue *vq, allocerr_warned = true; } dropped = true; + slot_idx--; break; } -- 2.35.1