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 3DBA0A0C46; Tue, 28 Sep 2021 08:32:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AC19740E3C; Tue, 28 Sep 2021 08:32:36 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id B8C6640DF6 for ; Tue, 28 Sep 2021 08:32:34 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10120"; a="222736099" X-IronPort-AV: E=Sophos;i="5.85,328,1624345200"; d="scan'208";a="222736099" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2021 23:32:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,328,1624345200"; d="scan'208";a="561832478" Received: from dpdk-xuanding-dev2.sh.intel.com ([10.67.119.250]) by fmsmga002.fm.intel.com with ESMTP; 27 Sep 2021 23:32:27 -0700 From: Xuan Ding To: dev@dpdk.org, maxime.coquelin@redhat.com, chenbo.xia@intel.com, ktraynor@redhat.com Cc: jiayu.hu@intel.com, cheng1.jiang@intel.com, bruce.richardson@intel.com, sunil.pai.g@intel.com, yinan.wang@intel.com, YvonneX.Yang@intel.com, Xuan Ding Date: Tue, 28 Sep 2021 06:24:44 +0000 Message-Id: <20210928062446.101264-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210909055758.106588-1-xuan.ding@intel.com> References: <20210909055758.106588-1-xuan.ding@intel.com> Subject: [dpdk-dev] [PATCH v5 0/2] add unsafe API to get inflight packets 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 Sender: "dev" This patchset introduces an unsafe API to get the number of inflight packets in DMA engine in some situations. Like vring state changes or device is destroyed. Compared with rte_vhost_async_get_inflight(), this is a lock free version. v5: * Rebased to the lastest branch. v4: * Added use case for API in vhost example. v3: * Fixed one typo. * Revised the doc to be more accuracy. v2: * Fixed some format issues. Xuan Ding (2): vhost: add unsafe API to check inflight packets examples/vhost: use API to check inflight packets doc/guides/prog_guide/vhost_lib.rst | 5 +++++ doc/guides/rel_notes/release_21_11.rst | 5 +++++ examples/vhost/main.c | 25 +++++++++++-------------- examples/vhost/main.h | 1 - lib/vhost/rte_vhost_async.h | 14 ++++++++++++++ lib/vhost/version.map | 3 +++ lib/vhost/vhost.c | 26 ++++++++++++++++++++++++++ 7 files changed, 64 insertions(+), 15 deletions(-) -- 2.17.1