[dpdk-dev] [RFC v1 1/3] ethdev: add the Rx/Tx burst description field in queue information
Haiyue Wang
haiyue.wang at intel.com
Mon Aug 12 16:15:03 CEST 2019
Since each PMD has different Rx/Tx burst capabilities such as Vector,
Scattered, Bulk etc, adding the Rx/Tx burst description field in queue
information to provide apps current configuration of PMD Rx/Tx burst.
This is a self-description for each PMD in its own format.
Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
---
lib/librte_ethdev/rte_ethdev.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
index dc6596b..bc48c0c 100644
--- a/lib/librte_ethdev/rte_ethdev.h
+++ b/lib/librte_ethdev/rte_ethdev.h
@@ -1192,6 +1192,9 @@ struct rte_eth_dev_info {
struct rte_eth_switch_info switch_info;
};
+/** Maximum information length to describe the PMD RX/TX functions */
+#define RTE_PMD_BURST_INFO_SIZE 128
+
/**
* Ethernet device RX queue information structure.
* Used to retrieve information about configured queue.
@@ -1201,6 +1204,8 @@ struct rte_eth_rxq_info {
struct rte_eth_rxconf conf; /**< queue config parameters. */
uint8_t scattered_rx; /**< scattered packets RX supported. */
uint16_t nb_desc; /**< configured number of RXDs. */
+ char burst_info[RTE_PMD_BURST_INFO_SIZE];
+ /**< Description of PMD RX function, such as Vector, Scattered etc */
} __rte_cache_min_aligned;
/**
@@ -1210,6 +1215,8 @@ struct rte_eth_rxq_info {
struct rte_eth_txq_info {
struct rte_eth_txconf conf; /**< queue config parameters. */
uint16_t nb_desc; /**< configured number of TXDs. */
+ char burst_info[RTE_PMD_BURST_INFO_SIZE];
+ /**< Description of PMD TX function, such as Vector, Scattered etc */
} __rte_cache_min_aligned;
/** Maximum name length for extended statistics counters */
--
2.7.4
More information about the dev
mailing list