Skip to contentSkip to conversation

ethdev: move internal callback list definition

PATCH Applied David Marchand 2 participants 2 messages Jan 22, 2018 – Jan 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethdev: move internal callback list definition

This structure is not exposed through public apis, we should just move it to the core header.

---
 lib/librte_ether/rte_ethdev.h      | 4 ----
 lib/librte_ether/rte_ethdev_core.h | 4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)
lib/librte_ether/rte_ethdev.h +0 -4
index ccf4a15..1a5b4cd 100644
@@ -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)) { \
lib/librte_ether/rte_ethdev_core.h +4 -0
index f44b40e..3073e78 100644
@@ -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*
Signature · 1 line
2.7.4