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 6FFBFA0542; Mon, 6 Jun 2022 11:57:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9B31E40A7F; Mon, 6 Jun 2022 11:57:14 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id EDEBD40150 for ; Mon, 6 Jun 2022 11:57:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654509433; x=1686045433; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KmEjE9coKj/I5DvLKAY5/5ihCT3LRTkccZZep48KjR4=; b=J73k0uTTdhDiEJeWD1DWUWdFwt/QSUuMZ7dME9OfXyKbHfBgi/mYw5GY gi/lGv56DaQRe5SZYPQJSOMYoXuR9Sv+rRy2053ZqmRkXi6K2Yjios8lw kJ22iu0Q+yK3WSeDmdp4Qt7OwD0vi5v71T67KEHDisMDqMTA9xJNjWtyN MekzzsXU6R8U5T+cW+CIh64S51m3zOdSS9Fx0J1OPYo22PtbokTykc+cK g54kznM27VhRYii2dU1aPT1oQHazznsRSlxr/zKuooCaBEPnto3QN/qRm CXOC/7Iqq6nG7PrgXEclxsHjL5BJVtJVhTMyR1wRglPhT8OHNgg4jxe87 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276584983" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276584983" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 02:57:01 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="635520576" Received: from unknown (HELO localhost.localdomain) ([10.239.251.55]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2022 02:56:57 -0700 From: Yuan Wang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com, dev@dpdk.org Cc: jiayu.hu@intel.com, xuan.ding@intel.com, sunil.pai.g@intel.com, Yuan Wang Subject: [PATCH v4 0/2] support to clear in-flight packets for async Date: Tue, 7 Jun 2022 01:45:05 +0800 Message-Id: <20220606174507.1272360-1-yuanx.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220413182742.860659-1-yuanx.wang@intel.com> References: <20220413182742.860659-1-yuanx.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org These patches support to clear in-flight packets for async dequeue and introduce thread-safe version of this function. v4: - Rebase to latest DPDK v3: - Rebase to latest DPDK v2: - Rebase to latest DPDK - Use the thread-safe version in destroy_device v1: - Protect vq access with splitlock Yuan Wang (2): vhost: support clear in-flight packets for async dequeue example/vhost: support to clear in-flight packets for async dequeue doc/guides/prog_guide/vhost_lib.rst | 8 ++- doc/guides/rel_notes/release_22_07.rst | 5 ++ examples/vhost/main.c | 26 ++++++-- lib/vhost/rte_vhost_async.h | 25 ++++++++ lib/vhost/version.map | 1 + lib/vhost/virtio_net.c | 82 +++++++++++++++++++++++++- 6 files changed, 139 insertions(+), 8 deletions(-) -- 2.25.1