ethdev: move queue state defines to private file
authorOri Kam <orika@mellanox.com>
Wed, 30 Oct 2019 23:53:10 +0000 (23:53 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Nov 2019 22:15:04 +0000 (23:15 +0100)
The queue state defines are internal to the DPDK.
This commit moves them to a private header file.

Signed-off-by: Ori Kam <orika@mellanox.com>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/nfb/nfb_tx.h
lib/librte_ethdev/rte_ethdev.h
lib/librte_ethdev/rte_ethdev_driver.h

index edf5ede..b6578cc 100644 (file)
@@ -10,6 +10,7 @@
 #include <nfb/nfb.h>
 #include <nfb/ndp.h>
 
+#include <rte_ethdev_driver.h>
 #include <rte_ethdev.h>
 #include <rte_malloc.h>
 
index c36c1b6..9e1f9ae 100644 (file)
@@ -1336,12 +1336,6 @@ struct rte_eth_dcb_info {
        struct rte_eth_dcb_tc_queue_mapping tc_queue;
 };
 
-/**
- * RX/TX queue states
- */
-#define RTE_ETH_QUEUE_STATE_STOPPED 0
-#define RTE_ETH_QUEUE_STATE_STARTED 1
-
 #define RTE_ETH_ALL RTE_MAX_ETHPORTS
 
 /* Macros to check for valid port */
index 936ff8c..c404f17 100644 (file)
 extern "C" {
 #endif
 
+/**
+ * RX/TX queue states
+ */
+#define RTE_ETH_QUEUE_STATE_STOPPED 0
+#define RTE_ETH_QUEUE_STATE_STARTED 1
+
 /**
  * @internal
  * Returns a ethdev slot specified by the unique identifier name.