[RFC,v2,1/3] ethdev: add a field for rte_eth_rxq_info
diff mbox series

Message ID 1595399890-27300-2-git-send-email-tangchengchang@huawei.com
State Superseded
Delegated to: Ferruh Yigit
Headers show
Series
  • add rx buffer size for rte_eth_rxq_info
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch warning coding style issues

Commit Message

Chengchang Tang July 22, 2020, 6:38 a.m. UTC
Add a field named rx_buf_size in rte_eth_rxq_info to indicate the buffer
size used in recieving pkts for hw.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
---
v1->v2: modify the name and add more comments.
---
 lib/librte_ethdev/rte_ethdev.h | 2 ++
 1 file changed, 2 insertions(+)

--
2.7.4

Patch
diff mbox series

diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
index 57e4a6c..845c6ad 100644
--- a/lib/librte_ethdev/rte_ethdev.h
+++ b/lib/librte_ethdev/rte_ethdev.h
@@ -1421,6 +1421,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. */
+	/**< buffer size used for hw when receive packets. */
+	uint16_t rx_buf_size;
 } __rte_cache_min_aligned;

 /**