rte_eth_rxq_info(3)

πŸ’– rte_eth_rxq_info πŸ’–

okay bestie, gather round, because today we're getting to know rte_eth_rxq_info β€” a lil' struct from the DPDK library gang (it lives in the Library Functions Manual, iykyk) whose entire job is telling you what's up with an Ethernet device's Rx queue. No cap. πŸŽ€


✨ NAME ✨

rte_eth_rxq_info β€” the Rx queue info structure, and yes she's the main character πŸ’…


🌸 SYNOPSIS 🌸

#include <rte_ethdev.h>

πŸ¦‹ Data Fields πŸ¦‹

  • struct rte_mempool * mp
  • struct rte_eth_rxconf conf
  • uint8_t scattered_rx
  • uint8_t queue_state
  • uint16_t nb_desc
  • uint16_t rx_buf_size
  • uint8_t avail_thresh

πŸ’œ Detailed Description πŸ’œ

It's giving… Ethernet device Rx queue information structure. That's literally her whole thing. You use her to retrieve info about a queue that's already been configured. She's not here to set anything up, she's here to report, and honestly? Respect. πŸ‘‘

Definition at line 1894 of file rte_ethdev.h.


πŸŽ€ Field Documentation πŸŽ€

🌈 struct rte_mempool* mp

the mempool that this queue is using, fr fr.

Definition at line 1895 of file rte_ethdev.h.

🌈 struct rte_eth_rxconf conf

the queue's config parameters. all the settings, all the vibes. ✨

Definition at line 1896 of file rte_ethdev.h.

🌈 uint8_t scattered_rx

whether scattered packet Rx is supported. if packets are out here living their fragmented truth, this is the field that tells you. 🧚

Definition at line 1897 of file rte_ethdev.h.

🌈 uint8_t queue_state

one of the RTE_ETH_QUEUE_STATE_* values. that's it, that's the whole description, she's mysterious like that πŸ’€

Definition at line 1898 of file rte_ethdev.h.

🌈 uint16_t nb_desc

the configured number of RXDs. RXD count, locked in. πŸ”₯

Definition at line 1899 of file rte_ethdev.h.

🌈 uint16_t rx_buf_size

the hardware receive buffer size. hardware-level, no middleman. πŸ’ͺ

Definition at line 1900 of file rte_ethdev.h.

🌈 uint8_t avail_thresh

okay this one has LORE bestie, listen up 🫢

Available Rx descriptors threshold, defined as a percentage of the Rx queue size. If the number of available descriptors drops lower than that, the event RTE_ETH_EVENT_RX_AVAIL_THESH gets generated β€” so it's basically a lil' bat signal for "hey, we're running low on descriptors over here."

and a value of 0 means the threshold monitoring is disabled. zero, off, nothing, nada. don't come crying when no event fires, because you turned it off yourself. 😭

Definition at line 1907 of file rte_ethdev.h.


🫢 Author 🫢

This whole thing was generated automatically by Doxygen for DPDK, straight from the source code. no human hands touched it, she was born from the machine 🌸✨


and that's the whole page bestie, you ate that reading session, periodt πŸ’…

this lil' manual page came to you courtesy of DPDK, Version 25.11.3 β€” stay hydrated, read your headers, and stream rte_ethdev.h responsibly πŸ¦‹πŸ’–

πŸ“¦ where this page comes from