From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 911961B20A for ; Tue, 23 Apr 2019 07:51:42 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Apr 2019 22:51:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,384,1549958400"; d="scan'208";a="142801602" Received: from unknown (HELO broadwell-dev-4.localdomain) ([10.224.122.193]) by fmsmga008.fm.intel.com with ESMTP; 22 Apr 2019 22:51:40 -0700 From: Nikhil Rao To: thomas@monjalon.net Cc: dev@dpdk.org, Nikhil Rao , jerinj@marvell.com Date: Tue, 23 Apr 2019 11:20:14 +0530 Message-Id: <1555998614-35566-1-git-send-email-nikhil.rao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] eventdev: add experimental tag back X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2019 05:51:43 -0000 Add the experimental tag back to the Rx event adapter callback and the Rx event callback register functions. This patch also adds the experimental tag in the callback register function definition and adds the function to the EXPERIMENTAL section of the map file, these were missing previously. Fixes: 80bdf91dc8ee ("eventdev: promote adapter functions as stable") Cc: jerinj@marvell.com Signed-off-by: Nikhil Rao --- lib/librte_eventdev/rte_event_eth_rx_adapter.h | 8 +++++++- lib/librte_eventdev/rte_event_eth_rx_adapter.c | 9 +++++---- lib/librte_eventdev/rte_eventdev_version.map | 6 ++++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.h b/lib/librte_eventdev/rte_event_eth_rx_adapter.h index cf23cde..32b52a7 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.h +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.h @@ -201,6 +201,9 @@ struct rte_event_eth_rx_adapter_stats { }; /** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice + * * Callback function invoked by the SW adapter before it continues * to process packets. The callback is passed the size of the enqueue * buffer in the SW adapter and the occupancy of the buffer. The @@ -437,6 +440,9 @@ int rte_event_eth_rx_adapter_stats_get(uint8_t id, int rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id); /** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice + * * Register callback to process Rx packets, this is supported for * SW based packet transfers. * @see rte_event_eth_rx_cb_fn @@ -453,7 +459,7 @@ int rte_event_eth_rx_adapter_stats_get(uint8_t id, * - 0: Success * - <0: Error code on failure. */ -int +int __rte_experimental rte_event_eth_rx_adapter_cb_register(uint8_t id, uint16_t eth_dev_id, rte_event_eth_rx_adapter_cb_fn cb_fn, diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c index 8d178be..e6001e2 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -2383,10 +2383,11 @@ static int rxa_sw_add(struct rte_event_eth_rx_adapter *rx_adapter, return rx_adapter->service_inited ? 0 : -ESRCH; } -int rte_event_eth_rx_adapter_cb_register(uint8_t id, - uint16_t eth_dev_id, - rte_event_eth_rx_adapter_cb_fn cb_fn, - void *cb_arg) +int __rte_experimental +rte_event_eth_rx_adapter_cb_register(uint8_t id, + uint16_t eth_dev_id, + rte_event_eth_rx_adapter_cb_fn cb_fn, + void *cb_arg) { struct rte_event_eth_rx_adapter *rx_adapter; struct eth_device_info *dev_info; diff --git a/lib/librte_eventdev/rte_eventdev_version.map b/lib/librte_eventdev/rte_eventdev_version.map index 88c3ce5..9bfc666 100644 --- a/lib/librte_eventdev/rte_eventdev_version.map +++ b/lib/librte_eventdev/rte_eventdev_version.map @@ -124,3 +124,9 @@ DPDK_19.05 { rte_event_timer_arm_tmo_tick_burst; rte_event_timer_cancel_burst; } DPDK_18.05; + +EXPERIMENTAL { + global: + + rte_event_eth_rx_adapter_cb_register; +}; -- 1.8.3.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2D734A05D3 for ; Tue, 23 Apr 2019 07:51:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7693A1B4D6; Tue, 23 Apr 2019 07:51:43 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 911961B20A for ; Tue, 23 Apr 2019 07:51:42 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Apr 2019 22:51:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,384,1549958400"; d="scan'208";a="142801602" Received: from unknown (HELO broadwell-dev-4.localdomain) ([10.224.122.193]) by fmsmga008.fm.intel.com with ESMTP; 22 Apr 2019 22:51:40 -0700 From: Nikhil Rao To: thomas@monjalon.net Cc: dev@dpdk.org, Nikhil Rao , jerinj@marvell.com Date: Tue, 23 Apr 2019 11:20:14 +0530 Message-Id: <1555998614-35566-1-git-send-email-nikhil.rao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] eventdev: add experimental tag back X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190423055014.QcbUH0LIFFBoQxe0K2obH-_m_JwOT6eYxxN6offs4XI@z> Add the experimental tag back to the Rx event adapter callback and the Rx event callback register functions. This patch also adds the experimental tag in the callback register function definition and adds the function to the EXPERIMENTAL section of the map file, these were missing previously. Fixes: 80bdf91dc8ee ("eventdev: promote adapter functions as stable") Cc: jerinj@marvell.com Signed-off-by: Nikhil Rao --- lib/librte_eventdev/rte_event_eth_rx_adapter.h | 8 +++++++- lib/librte_eventdev/rte_event_eth_rx_adapter.c | 9 +++++---- lib/librte_eventdev/rte_eventdev_version.map | 6 ++++++ 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.h b/lib/librte_eventdev/rte_event_eth_rx_adapter.h index cf23cde..32b52a7 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.h +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.h @@ -201,6 +201,9 @@ struct rte_event_eth_rx_adapter_stats { }; /** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice + * * Callback function invoked by the SW adapter before it continues * to process packets. The callback is passed the size of the enqueue * buffer in the SW adapter and the occupancy of the buffer. The @@ -437,6 +440,9 @@ int rte_event_eth_rx_adapter_stats_get(uint8_t id, int rte_event_eth_rx_adapter_service_id_get(uint8_t id, uint32_t *service_id); /** + * @warning + * @b EXPERIMENTAL: this API may change without prior notice + * * Register callback to process Rx packets, this is supported for * SW based packet transfers. * @see rte_event_eth_rx_cb_fn @@ -453,7 +459,7 @@ int rte_event_eth_rx_adapter_stats_get(uint8_t id, * - 0: Success * - <0: Error code on failure. */ -int +int __rte_experimental rte_event_eth_rx_adapter_cb_register(uint8_t id, uint16_t eth_dev_id, rte_event_eth_rx_adapter_cb_fn cb_fn, diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c index 8d178be..e6001e2 100644 --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c @@ -2383,10 +2383,11 @@ static int rxa_sw_add(struct rte_event_eth_rx_adapter *rx_adapter, return rx_adapter->service_inited ? 0 : -ESRCH; } -int rte_event_eth_rx_adapter_cb_register(uint8_t id, - uint16_t eth_dev_id, - rte_event_eth_rx_adapter_cb_fn cb_fn, - void *cb_arg) +int __rte_experimental +rte_event_eth_rx_adapter_cb_register(uint8_t id, + uint16_t eth_dev_id, + rte_event_eth_rx_adapter_cb_fn cb_fn, + void *cb_arg) { struct rte_event_eth_rx_adapter *rx_adapter; struct eth_device_info *dev_info; diff --git a/lib/librte_eventdev/rte_eventdev_version.map b/lib/librte_eventdev/rte_eventdev_version.map index 88c3ce5..9bfc666 100644 --- a/lib/librte_eventdev/rte_eventdev_version.map +++ b/lib/librte_eventdev/rte_eventdev_version.map @@ -124,3 +124,9 @@ DPDK_19.05 { rte_event_timer_arm_tmo_tick_burst; rte_event_timer_cancel_burst; } DPDK_18.05; + +EXPERIMENTAL { + global: + + rte_event_eth_rx_adapter_cb_register; +}; -- 1.8.3.1