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 C580DA0542; Tue, 6 Sep 2022 07:22:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7AA8A40143; Tue, 6 Sep 2022 07:22:06 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 38400400D6 for ; Tue, 6 Sep 2022 07:22:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662441725; x=1693977725; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=EVVegZOP260ooFs2DKaHr9GZVCxJ+q/khEUVelpDCjg=; b=ieE4ZB31/tLWEYlYltlBZ+cqHicrv0MGOU1V6SHJ+jdiunaEOZ4KP2MI txZozX73cO3ThqYqobHZgk0s994hyc6Rr8PhgksgWzQaoJMqOjHbvyFKC pMLFYhPB56RBCxsC2U+c8HFN5RVAkuuedUjp0Efd0x+9UccplVsnQJ3Xm VARICro5w20XEBFSXOYL00UpMXj33bCiqtmqaE5tW7MXUYyN9Mxn8LBMD 516hA3/UMDllCs/O5xUfNYWS/800AE8tlR5/8dbX6WT/CMINCyJeqiH/6 MhGbpPt9nmGK0g0PEe1YkSqdqgXK/xJcIaziRlIVFTuZiKyfcQ9twqbhX g==; X-IronPort-AV: E=McAfee;i="6500,9779,10461"; a="297817969" X-IronPort-AV: E=Sophos;i="5.93,293,1654585200"; d="scan'208";a="297817969" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 22:22:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,293,1654585200"; d="scan'208";a="682267040" Received: from npg-dpdk-xuan-cbdma.sh.intel.com ([10.67.111.163]) by fmsmga004.fm.intel.com with ESMTP; 05 Sep 2022 22:22:01 -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 Subject: [PATCH v2 0/2] vhost: introduce DMA vchannel unconfiguration Date: Tue, 6 Sep 2022 05:21:47 +0000 Message-Id: <20220906052149.21033-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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Xuan Ding This patchset introduces a new API rte_vhost_async_dma_unconfigure() to help user to manually free the DMA vchannel finished to use. Note: this API should be called after async channel unregister. 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 | 2 + examples/vhost/main.c | 7 +++ lib/vhost/rte_vhost_async.h | 17 +++++++ lib/vhost/version.map | 3 ++ lib/vhost/vhost.c | 69 ++++++++++++++++++++++++-- 6 files changed, 98 insertions(+), 5 deletions(-) -- 2.17.1