From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id B51C991; Wed, 19 Dec 2018 11:00:36 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2018 02:00:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,372,1539673200"; d="scan'208";a="131217936" Received: from silpixa00391526.ir.intel.com (HELO silpixa00391526.ger.corp.intel.com) ([10.237.222.223]) by fmsmga001.fm.intel.com with ESMTP; 19 Dec 2018 02:00:31 -0800 From: Amr Mokhtar To: dev@dpdk.org Cc: stable@dpdk.org, tredaelli@redhat.com, akhil.goyal@nxp.com, david.marchand@redhat.com, nhorman@tuxdriver.com, Amr Mokhtar Date: Wed, 19 Dec 2018 10:00:27 +0000 Message-Id: <1545213627-128738-1-git-send-email-amr.mokhtar@intel.com> X-Mailer: git-send-email 2.4.11 Subject: [dpdk-stable] [PATCH v2] bbdev: add missing APIs to map file and tag all experimental X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2018 10:00:37 -0000 - add missing APIs to map file - add experimental tag to all bbdev APIs Signed-off-by: Amr Mokhtar --- lib/librte_bbdev/rte_bbdev.h | 8 ++++---- lib/librte_bbdev/rte_bbdev_op.h | 12 ++++++------ lib/librte_bbdev/rte_bbdev_version.map | 4 ++++ 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/lib/librte_bbdev/rte_bbdev.h b/lib/librte_bbdev/rte_bbdev.h index 25ef409..f76d04e 100644 --- a/lib/librte_bbdev/rte_bbdev.h +++ b/lib/librte_bbdev/rte_bbdev.h @@ -461,7 +461,7 @@ extern struct rte_bbdev rte_bbdev_devices[]; * The number of operations actually enqueued (this is the number of processed * entries in the @p ops array). */ -static inline uint16_t +static inline uint16_t __rte_experimental rte_bbdev_enqueue_enc_ops(uint16_t dev_id, uint16_t queue_id, struct rte_bbdev_enc_op **ops, uint16_t num_ops) { @@ -491,7 +491,7 @@ rte_bbdev_enqueue_enc_ops(uint16_t dev_id, uint16_t queue_id, * The number of operations actually enqueued (this is the number of processed * entries in the @p ops array). */ -static inline uint16_t +static inline uint16_t __rte_experimental rte_bbdev_enqueue_dec_ops(uint16_t dev_id, uint16_t queue_id, struct rte_bbdev_dec_op **ops, uint16_t num_ops) { @@ -521,7 +521,7 @@ rte_bbdev_enqueue_dec_ops(uint16_t dev_id, uint16_t queue_id, * The number of operations actually dequeued (this is the number of entries * copied into the @p ops array). */ -static inline uint16_t +static inline uint16_t __rte_experimental rte_bbdev_dequeue_enc_ops(uint16_t dev_id, uint16_t queue_id, struct rte_bbdev_enc_op **ops, uint16_t num_ops) { @@ -552,7 +552,7 @@ rte_bbdev_dequeue_enc_ops(uint16_t dev_id, uint16_t queue_id, * copied into the @p ops array). */ -static inline uint16_t +static inline uint16_t __rte_experimental rte_bbdev_dequeue_dec_ops(uint16_t dev_id, uint16_t queue_id, struct rte_bbdev_dec_op **ops, uint16_t num_ops) { diff --git a/lib/librte_bbdev/rte_bbdev_op.h b/lib/librte_bbdev/rte_bbdev_op.h index 83f62c2..167baec 100644 --- a/lib/librte_bbdev/rte_bbdev_op.h +++ b/lib/librte_bbdev/rte_bbdev_op.h @@ -459,7 +459,7 @@ struct rte_bbdev_op_pool_private { * Operation type as string or NULL if op_type is invalid * */ -const char* +const char* __rte_experimental rte_bbdev_op_type_str(enum rte_bbdev_op_type op_type); /** @@ -482,7 +482,7 @@ rte_bbdev_op_type_str(enum rte_bbdev_op_type op_type); * - Pointer to a mempool on success, * - NULL pointer on failure. */ -struct rte_mempool * +struct rte_mempool * __rte_experimental rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type, unsigned int num_elements, unsigned int cache_size, int socket_id); @@ -501,7 +501,7 @@ rte_bbdev_op_pool_create(const char *name, enum rte_bbdev_op_type type, * - 0 on success * - EINVAL if invalid mempool is provided */ -static inline int +static inline int __rte_experimental rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, struct rte_bbdev_enc_op **ops, uint16_t num_ops) { @@ -536,7 +536,7 @@ rte_bbdev_enc_op_alloc_bulk(struct rte_mempool *mempool, * - 0 on success * - EINVAL if invalid mempool is provided */ -static inline int +static inline int __rte_experimental rte_bbdev_dec_op_alloc_bulk(struct rte_mempool *mempool, struct rte_bbdev_dec_op **ops, uint16_t num_ops) { @@ -567,7 +567,7 @@ rte_bbdev_dec_op_alloc_bulk(struct rte_mempool *mempool, * @param num_ops * Number of structures */ -static inline void +static inline void __rte_experimental rte_bbdev_dec_op_free_bulk(struct rte_bbdev_dec_op **ops, unsigned int num_ops) { if (num_ops > 0) @@ -584,7 +584,7 @@ rte_bbdev_dec_op_free_bulk(struct rte_bbdev_dec_op **ops, unsigned int num_ops) * @param num_ops * Number of structures */ -static inline void +static inline void __rte_experimental rte_bbdev_enc_op_free_bulk(struct rte_bbdev_enc_op **ops, unsigned int num_ops) { if (num_ops > 0) diff --git a/lib/librte_bbdev/rte_bbdev_version.map b/lib/librte_bbdev/rte_bbdev_version.map index d3b81ea..3624eb1 100644 --- a/lib/librte_bbdev/rte_bbdev_version.map +++ b/lib/librte_bbdev/rte_bbdev_version.map @@ -6,9 +6,13 @@ EXPERIMENTAL { rte_bbdev_callback_unregister; rte_bbdev_close; rte_bbdev_count; + rte_bbdev_dec_op_alloc_bulk; + rte_bbdev_dec_op_free_bulk; rte_bbdev_dequeue_dec_ops; rte_bbdev_dequeue_enc_ops; rte_bbdev_devices; + rte_bbdev_enc_op_alloc_bulk; + rte_bbdev_enc_op_free_bulk; rte_bbdev_enqueue_dec_ops; rte_bbdev_enqueue_enc_ops; rte_bbdev_find_next; -- 2.4.11