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 E254CA00C3; Fri, 13 May 2022 10:44:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D50BB40E64; Fri, 13 May 2022 10:44:45 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 4D61840DDE for ; Fri, 13 May 2022 10:44:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652431484; x=1683967484; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rR+zErEZHZ3NQgoVvxdJAMDleYg/S1AaWdUejrs0Un0=; b=O4M+EQCR0WThUJIMkQQW/AZGkXEACX/kvNW5CF93xbvn6kp/S+iaFcqZ AWcgiu0SDz17ie/h2YdXwUORhIWR0cl1zhEtQuU1Ye/JpbhOC6X1pMljP gzHuyFQbPsgjwC4jxpoEzPwCVuKKbD4hMFFEZD5tkG4sbZgyTcFAcFii1 DraSqvzDFiBwCGCF1IrFBsi7+HUp9AZDIR7ktwCjZgcHXuc46qSgb1/EL Ty9wukZYsNEb4IJKuA5ADgjuuFY7kIh+/eqA5G+/s4kaPBxq1Xm6VPFtA UsFC6mr/mnvTtDg/5bzxFP1cfHD6Z3nN2hpzJNN+UEV6B2Z+Ntp9gdYhK Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10345"; a="333288925" X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="333288925" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 01:44:43 -0700 X-IronPort-AV: E=Sophos;i="5.91,221,1647327600"; d="scan'208";a="595121415" Received: from unknown (HELO localhost.localdomain) ([10.239.251.55]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 01:44:40 -0700 From: Yuan Wang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, xuan.ding@intel.com, sunil.pai.g@intel.com, yuanx.wang@intel.com Subject: [PATCH v2 0/2] support to clear in-flight packets for async Date: Sat, 14 May 2022 00:35:22 +0800 Message-Id: <20220513163524.1205551-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. note: The patches depend on the following patches (http://patches.dpdk.org/project/dpdk/patch/20220513025058.12898-5-xuan.ding@intel.com/) (http://patches.dpdk.org/project/dpdk/patch/20220513025058.12898-6-xuan.ding@intel.com/) v1->v2: * Rebase to latest DPDK * Use the thread-safe version in destroy_device() RFC->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 | 80 +++++++++++++++++++++++++- 6 files changed, 137 insertions(+), 8 deletions(-) -- 2.25.1