ethdev: move queue state defines to private file

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>
This commit is contained in:
Ori Kam 2019-10-30 23:53:10 +00:00 committed by Ferruh Yigit
parent 602009ee2d
commit f9adec46d4
3 changed files with 7 additions and 6 deletions

View File

@ -10,6 +10,7 @@
#include <nfb/nfb.h> #include <nfb/nfb.h>
#include <nfb/ndp.h> #include <nfb/ndp.h>
#include <rte_ethdev_driver.h>
#include <rte_ethdev.h> #include <rte_ethdev.h>
#include <rte_malloc.h> #include <rte_malloc.h>

View File

@ -1336,12 +1336,6 @@ struct rte_eth_dcb_info {
struct rte_eth_dcb_tc_queue_mapping tc_queue; 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 #define RTE_ETH_ALL RTE_MAX_ETHPORTS
/* Macros to check for valid port */ /* Macros to check for valid port */

View File

@ -21,6 +21,12 @@
extern "C" { extern "C" {
#endif #endif
/**
* RX/TX queue states
*/
#define RTE_ETH_QUEUE_STATE_STOPPED 0
#define RTE_ETH_QUEUE_STATE_STARTED 1
/** /**
* @internal * @internal
* Returns a ethdev slot specified by the unique identifier name. * Returns a ethdev slot specified by the unique identifier name.