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 40A31A0555; Thu, 9 Jun 2022 11:45:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EAFA140689; Thu, 9 Jun 2022 11:45:47 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 9129340220 for ; Thu, 9 Jun 2022 11:45:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654767946; x=1686303946; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BBVXNAagiD2ri8iXdNX11CgD3LyxyUK214rWu2LQIRA=; b=Vfgjo0ZHK+xhLvrkErsI1z+h8+A0jSXooB+ghTeMb0/vVqYost4AWkjA THpcfKf76qxKM7UOBXAXsji6DBAL8QL0b38fjs7EpvgPyRUfVKLPDT5it ewqs/gD+VP7IHp6vmLHPqbHE/pzbqz+IliJQarcjr+pzBryjU+bTdqIm5 vugr/gk7wSBr+qH5+mOH5m+xRuGzNMxWjF30LmV995mRUhgF3e88o7c5n I2UbL9UQdsiPJLF0OZ6GPvMhec4XwP/rgwI7Hyo5r9Qy/eL157/KnqHv0 ctmHHwz3PTV3h0M4Heb65qWaxwBpPuTsaNA3yAlPBbGwFwqCQ8YXvakut w==; X-IronPort-AV: E=McAfee;i="6400,9594,10372"; a="278035764" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="278035764" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 02:45:38 -0700 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="637387437" Received: from unknown (HELO localhost.localdomain) ([10.239.251.55]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 02:45:36 -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 v5 0/2] support to clear in-flight packets for async Date: Fri, 10 Jun 2022 01:34:02 +0800 Message-Id: <20220609173404.1769210-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. v5: - Add dma_id check v4: - Rebase to latest DPDK v3: - Rebase to latest DPDK v2: - 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 | 4 ++ examples/vhost/main.c | 26 +++++-- lib/vhost/rte_vhost_async.h | 25 +++++++ lib/vhost/version.map | 1 + lib/vhost/virtio_net.c | 93 +++++++++++++++++++++++++- 6 files changed, 149 insertions(+), 8 deletions(-) -- 2.25.1