Message ID | 20221020091103.43422-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 351A0A09D3; Thu, 20 Oct 2022 11:14:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA1A542C7C; Thu, 20 Oct 2022 11:14:13 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id E66F0427F5 for <dev@dpdk.org>; Thu, 20 Oct 2022 11:14:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666257252; x=1697793252; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=AYnJYNDXitIhBiKeTnGFxlhoz9iCKxyvG15hYaz7uT4=; b=WgIPqiuTK62z6lqtTKSvhYBTuHgiCFcny9xeB5v/rC1qvdqF7oBESSBx QLltibAu+C3rmYmm8/zr5AEw8geOuFJumQfT1LacG6RgdfYH7phJeIzIO Vq7ph4VrhjPpwOenK25MaJRx6EqgkHVF3x2APydZoBJNAYsKgOGgbnAdw ZVINS+RW/vCQNk1+ADzOX8Xe4cpQmyl3KqIU98EvKEvki4h9Rsq7rnS48 ybWb/W6wKVYq3hmAbfzwJNQdox9+xBpkcsjLmrO1JteOeboLSR4/QVrLE bjIANYnCFNkZ51eljw713zWozy7uGSrApHkYiN9giPvAI3/QW0oWYwkpw A==; X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="289967862" X-IronPort-AV: E=Sophos;i="5.95,198,1661842800"; d="scan'208";a="289967862" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2022 02:14:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10505"; a="804759785" X-IronPort-AV: E=Sophos;i="5.95,198,1661842800"; d="scan'208";a="804759785" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.102]) by orsmga005.jf.intel.com with ESMTP; 20 Oct 2022 02:14:08 -0700 From: xuan.ding@intel.com To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, xingguang.he@intel.com, yvonnex.yang@intel.com, cheng1.jiang@intel.com, yuanx.wang@intel.com, wenwux.ma@intel.com, Xuan Ding <xuan.ding@intel.com> Subject: [PATCH v7 0/2] vhost: introduce DMA vchannel unconfiguration Date: Thu, 20 Oct 2022 09:11:01 +0000 Message-Id: <20221020091103.43422-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220814140442.82525-1-xuan.ding@intel.com> References: <20220814140442.82525-1-xuan.ding@intel.com> 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: introduce DMA vchannel unconfiguration
|
|
Message
Ding, Xuan
Oct. 20, 2022, 9:11 a.m. UTC
From: Xuan Ding <xuan.ding@intel.com>
This patchset introduces a new API rte_vhost_async_dma_unconfigure()
to help user to manually free DMA vchannels finished to use.
v7:
* Add inflight packets processing.
* Fix CI error.
v6:
* Move DMA unconfiguration to the end due to DMA devices maybe reused
after destroy_device().
* Refine the doc to claim the DMA device should not be used in vhost
after unconfiguration.
v5:
* Use mutex instead of spinlock.
* Improve code readability.
v4:
* Rebase to 22.11 rc1.
* Fix the usage of 'dma_ref_count' to make sure the specified DMA device
is not used by any vhost ports before unconfiguration.
v3:
* Rebase to latest DPDK.
* Refine some descriptions in the doc.
* Fix one bug in the vhost example.
v2:
* Add spinlock protection.
* Fix a memory leak issue.
* Refine the doc.
Xuan Ding (2):
vhost: introduce DMA vchannel unconfiguration
examples/vhost: unconfigure DMA vchannel
doc/guides/prog_guide/vhost_lib.rst | 5 ++
doc/guides/rel_notes/release_22_11.rst | 5 ++
examples/vhost/main.c | 8 +++
lib/vhost/rte_vhost_async.h | 20 +++++++
lib/vhost/version.map | 3 ++
lib/vhost/vhost.c | 75 ++++++++++++++++++++++++--
6 files changed, 111 insertions(+), 5 deletions(-)