From: David Marchand Subject: [PATCH] ethdev: move internal callback list definition Date: Mon, 22 Jan 2018 13:25:35 +0100 Message-ID: <1516623935-1219-1-git-send-email-david.marchand@6wind.com> Cc: ferruh.yigit@intel.com To: dev@dpdk.org Return-path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 8279D58CE for ; Mon, 22 Jan 2018 13:25:40 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id e41so8426387wre.9 for ; Mon, 22 Jan 2018 04:25:40 -0800 (PST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This structure is not exposed through public apis, we should just move it to the core header. Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit --- lib/librte_ether/rte_ethdev.h | 4 ---- lib/librte_ether/rte_ethdev_core.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index ccf4a15..1a5b4cd 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1120,10 +1120,6 @@ struct rte_eth_dev; #define RTE_ETH_ALL RTE_MAX_ETHPORTS -struct rte_eth_dev_callback; -/** @internal Structure to keep track of registered callbacks */ -TAILQ_HEAD(rte_eth_dev_cb_list, rte_eth_dev_callback); - /* Macros to check for valid port */ #define RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, retval) do { \ if (!rte_eth_dev_is_valid_port(port_id)) { \ diff --git a/lib/librte_ether/rte_ethdev_core.h b/lib/librte_ether/rte_ethdev_core.h index f44b40e..3073e78 100644 --- a/lib/librte_ether/rte_ethdev_core.h +++ b/lib/librte_ether/rte_ethdev_core.h @@ -17,6 +17,10 @@ * */ +struct rte_eth_dev_callback; +/** @internal Structure to keep track of registered callbacks */ +TAILQ_HEAD(rte_eth_dev_cb_list, rte_eth_dev_callback); + /* * Definitions of all functions exported by an Ethernet driver through the * the generic structure of type *eth_dev_ops* supplied in the *rte_eth_dev* -- 2.7.4