Message ID | 20220408102214.11994-1-xuan.ding@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 <dev@dpdk.org>; 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 <xuan.ding@intel.com> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
vhost: add unsafe API to get DMA inflight packets
|
|
Message
Ding, Xuan
April 8, 2022, 10:22 a.m. UTC
From: Xuan Ding <xuan.ding@intel.com>
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(-)
Comments
On 4/8/22 12:22, xuan.ding@intel.com wrote: > 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(-) Applied to dpdk-next-virtio/main. Thanks, Maxime