From: David Marchand Date: Mon, 22 Jan 2018 12:25:35 +0000 (+0100) Subject: ethdev: move internal callback list definition X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7be5c826bd283dcf8fbc96f9e45aee6f414c5d20;p=dpdk.git ethdev: move internal callback list definition This structure is not exposed through public apis, we should just move it to the core header. Fixes: 331c447ad913 ("ethdev: separate internal structures into own header") Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit --- diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 96ba227940..e936afb6fd 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1121,10 +1121,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 f44b40e1ec..3073e78ec8 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*