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 8AAAAA0C48; Tue, 6 Jul 2021 22:29:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E7C84133E; Tue, 6 Jul 2021 22:29:12 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 42B374067C for ; Tue, 6 Jul 2021 22:29:10 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10037"; a="196470313" X-IronPort-AV: E=Sophos;i="5.83,329,1616482800"; d="scan'208";a="196470313" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2021 13:29:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,329,1616482800"; d="scan'208";a="486522056" Received: from silpixa00399126.ir.intel.com ([10.237.223.29]) by FMSMGA003.fm.intel.com with ESMTP; 06 Jul 2021 13:29:04 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Chengwen Feng , Jerin Jacob , Jerin Jacob , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Bruce Richardson Date: Tue, 6 Jul 2021 21:28:33 +0100 Message-Id: <20210706202841.661302-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210706202841.661302-1-bruce.richardson@intel.com> References: <1625231891-2963-1-git-send-email-fengchengwen@huawei.com> <20210706202841.661302-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [RFC UPDATE PATCH 1/9] dmadev: add missing exports 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 Sender: "dev" Export the rte_dmadevices array and the allocate and release functions which are needed by PMDs. Signed-off-by: Bruce Richardson --- drivers/meson.build | 1 + lib/dmadev/rte_dmadev.c | 2 ++ lib/dmadev/version.map | 3 +++ 3 files changed, 6 insertions(+) diff --git a/drivers/meson.build b/drivers/meson.build index bc6f4f567..f09a9172c 100644 --- a/drivers/meson.build +++ b/drivers/meson.build @@ -9,6 +9,7 @@ subdirs = [ 'common/mlx5', # depends on bus. 'common/qat', # depends on bus. 'common/sfc_efx', # depends on bus. + 'dma', # depends on bus. 'mempool', # depends on common and bus. 'net', # depends on common, bus, mempool 'raw', # depends on common, bus and net. diff --git a/lib/dmadev/rte_dmadev.c b/lib/dmadev/rte_dmadev.c index a94e83984..855f4d272 100644 --- a/lib/dmadev/rte_dmadev.c +++ b/lib/dmadev/rte_dmadev.c @@ -372,6 +372,7 @@ rte_dmadev_find_free_device_index(void) return RTE_DMADEV_MAX_DEVS; } +__rte_experimental struct rte_dmadev * rte_dmadev_pmd_allocate(const char *name, size_t dev_priv_size, int socket_id) { @@ -414,6 +415,7 @@ rte_dmadev_pmd_allocate(const char *name, size_t dev_priv_size, int socket_id) return dev; } +__rte_experimental int rte_dmadev_pmd_release(struct rte_dmadev *dev) { diff --git a/lib/dmadev/version.map b/lib/dmadev/version.map index 383b3ca5f..a0a121f3a 100644 --- a/lib/dmadev/version.map +++ b/lib/dmadev/version.map @@ -1,6 +1,8 @@ EXPERIMENTAL { global: + rte_dmadevices; + rte_dmadev_pmd_allocate; rte_dmadev_count; rte_dmadev_get_dev_id; rte_dmadev_socket_id; @@ -19,6 +21,7 @@ EXPERIMENTAL { rte_dmadev_fill_sg; rte_dmadev_fence; rte_dmadev_perform; + rte_dmadev_pmd_release; rte_dmadev_completed; rte_dmadev_completed_fails; rte_dmadev_stats_get; -- 2.30.2