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 09B5BA0501; Fri, 8 Apr 2022 12:22:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9F4C34067E; Fri, 8 Apr 2022 12:22:20 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 477214003F for ; Fri, 8 Apr 2022 12:22:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649413339; x=1680949339; h=from:to:cc:subject:date:message-id; bh=4ZmvA4kR4sFZRqA2fTAqca/YQY3rjKvEiy08jha0D8M=; b=T1zTOUGGulxP8p8SxJGBPSXGpjEaVyXHg7XBD5LBZu2sJCnPFbs11+5X W9lPa/9SGPlHuHFf4TnV31NJjlxSRE+dhscfvpR7V5eJuL5x0/c0xauT+ 3o5dJz9hUbG5jDiiiWKYfkX5yxakB+tKr6owAf2+Rln0X/vv1bIF6HMSe 8neKADlQyn5ALiNCFwzczE/lKtnVWob9DJkj7V9/xbHZ3NkdjsZ86JAAT K4QSoCOa4kutz6uMmYFWtCJJl5e0PyJ0chQEVksAWeqLqPpY88hmanq8e dF4puH/qybGoM+GirMpLn9fNMJQw8UkBDFOZaC0h0xZjbULWSfnfPFFyC g==; X-IronPort-AV: E=McAfee;i="6400,9594,10310"; a="261253234" X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="261253234" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2022 03:22:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,244,1643702400"; d="scan'208";a="525324756" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.110.228]) by orsmga006.jf.intel.com with ESMTP; 08 Apr 2022 03:22:16 -0700 From: xuan.ding@intel.com To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, cheng1.jiang@intel.com, sunil.pai.g@intel.com, Xuan Ding Subject: [PATCH v1 0/2] vhost: add unsafe API to get DMA inflight packets Date: Fri, 8 Apr 2022 10:22:12 +0000 Message-Id: <20220408102214.11994-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 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 From: Xuan Ding This patchset introduces an unsafe API to get the number of inflight packets in DMA engine. It should be only used within the vhost ops which already holds the lock. Like vring state changes or device is destroyed. Compared with rte_vhost_async_get_inflight(), this is a lock free version. RFC v1->v1: * refine the doc and commit log 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 | 6 ++++++ doc/guides/rel_notes/release_22_07.rst | 4 ++++ examples/vhost/main.c | 28 ++++++++++++++------------ examples/vhost/main.h | 1 - lib/vhost/rte_vhost_async.h | 17 ++++++++++++++++ lib/vhost/version.map | 4 ++++ lib/vhost/vhost.c | 26 ++++++++++++++++++++++++ 7 files changed, 72 insertions(+), 14 deletions(-) -- 2.17.1