[RFC,0/2] add unsafe API to get inflight packets
Message ID | 20220216070417.9597-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 12065A034C; Wed, 16 Feb 2022 08:05:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5493410FB; Wed, 16 Feb 2022 08:05:30 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 3792B4013F for <dev@dpdk.org>; Wed, 16 Feb 2022 08:05:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644995129; x=1676531129; h=from:to:cc:subject:date:message-id; bh=H07tJN6UE6bbOfaIRgo3eRKgpBfw/ZgAhdXYd/RkBWM=; b=asO6f9coyPDjfO21Fj5wSAGuCHdJy4+AwvsXIIg+KGNuFtgbe/ecLwZk lf3aKOoAIm/zgIseNzfM16huuylvldbKBbhPavzfhxK5VHgG5ZrqqQNLS Lafr+WOl/6jzZeHiUfzaLEUVY/FR5QEZmCFscwxU35moVpjL6jtEFLl9c qc5xueKAOsxFyMHkoltpCyFt/uq6XppVcamXSMXjGvBwP+vfczSyRD8vJ PezUwP51GINPqGPKK1oxaOB8xu0DFtFmwj8T/rpluu+WGeOWJc4gM6jC1 E6ywEH5tY58V1jhAmyOJJi6mGpArZJ3/0YeZWsRSzffc4qBhVYu5Tm6BE w==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="249370799" X-IronPort-AV: E=Sophos;i="5.88,373,1635231600"; d="scan'208";a="249370799" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 23:05:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,373,1635231600"; d="scan'208";a="681387963" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.110.228]) by fmsmga001.fm.intel.com with ESMTP; 15 Feb 2022 23:05:19 -0800 From: xuan.ding@intel.com To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, sunil.pai.g@intel.com, Xuan Ding <xuan.ding@intel.com> Subject: [RFC 0/2] add unsafe API to get inflight packets Date: Wed, 16 Feb 2022 07:04:15 +0000 Message-Id: <20220216070417.9597-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 |
Message
Ding, Xuan
Feb. 16, 2022, 7:04 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 in some situations. Like vring state changes or
device is destroyed. Compared with rte_vhost_async_get_inflight(),
this is a lock free version.
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_22_03.rst | 4 ++++
examples/vhost/main.c | 28 ++++++++++++++------------
examples/vhost/main.h | 1 -
lib/vhost/rte_vhost_async.h | 14 +++++++++++++
lib/vhost/version.map | 1 +
lib/vhost/vhost.c | 26 ++++++++++++++++++++++++
7 files changed, 65 insertions(+), 14 deletions(-)