SERVICING_WEIGHT(3)
π NAME
rte_event_eth_rx_adapter_queue_conf β bestie, this is the Rx queue configuration structure, and it's kind of the whole personality of this manpage β¨
(Oh and hey, this page lives in section 3 of the library functions manual, iykyk π«Ά)
πΈ SYNOPSIS
#include <rte_event_eth_rx_adapter.h>
π Data Fields
uint32_t rx_queue_flags
uint16_t servicing_weight
struct rte_event ev
uint16_t vector_sz
uint64_t vector_timeout_ns
struct rte_mempool * vector_mp
uint16_t event_buf_size
β¨ Detailed Description
It's giving "Rx queue configuration structure" π That's the whole vibe. Literally what it is.
The definition lives at line 158 of the file rte_event_eth_rx_adapter.h. No cap.
π₯ Field Documentation
π uint32_t rx_queue_flags
These are the flags for handling received packets π«Ά
See also: RTE_EVENT_ETH_RX_ADAPTER_QUEUE_FLOW_ID_VALID
Defined at line 159 of rte_event_eth_rx_adapter.h.
β uint16_t servicing_weight
Okay so this one is the relative polling frequency of the ethernet receive queue β but only when the adapter is using a service core function for ethernet-to-event-device transfers. Like, that's the context, periodt.
And here's the plot twist π«£ if you set it to zero, the Rx queue becomes interrupt driven β unless, of course, Rx queue interrupts are not enabled for the ethernet device. Yikes, read the fine print babe.
Defined at line 163 of rte_event_eth_rx_adapter.h.
π struct rte_event ev
The values from the following event fields get used when queuing mbuf events β main character fields only, let's go:
event_queue_id: the targeted event queue ID for received packets. π¬event_priority: the event priority of packets from this Rx queue, in the event queue, relative to other events. πsched_type: the scheduling type for packets from this Rx queue. ποΈflow_id: if theRTE_ETH_RX_EVENT_ADAPTER_QUEUE_FLOW_ID_VALIDbit is set inrx_queue_flags, then thisflow_idgets used for all packets received from this queue. Otherwise the flow ID is set to the RSS hash of thesrcanddstIPv4/6 addresses. π§¬
And a lil detail that matters: the event adapter sets ev.event_type to RTE_EVENT_TYPE_ETHDEV in the enqueued event. Slay. β¨
Defined at line 170 of rte_event_eth_rx_adapter.h.
π¦ uint16_t vector_sz
This one indicates the maximum number of mbufs to combine and form a vector. Should be withinβ¦
β¦and the original text just ends there π "Should be within" β that's it, that's the sentence, we're all just living with it.
See also:
rte_event_eth_rx_adapter_vector_limits::min_vector_szrte_event_eth_rx_adapter_vector_limits::max_vector_szβ valid when theRTE_EVENT_ETH_RX_ADAPTER_QUEUE_EVENT_VECTORflag is set inrte_event_eth_rx_adapter_queue_conf::rx_queue_flags
Defined at line 187 of rte_event_eth_rx_adapter.h.
π§ uint64_t vector_timeout_ns
Indicates the maximum number of nanoseconds to wait for receiving mbufs β³ Should be within the vectorization limits of the adapter.
See also:
rte_event_eth_rx_adapter_vector_limits::min_vector_nsrte_event_eth_rx_adapter_vector_limits::max_vector_nsβ valid when theRTE_EVENT_ETH_RX_ADAPTER_QUEUE_EVENT_VECTORflag is set inrte_event_eth_rx_adapter_queue_conf::rx_queue_flags
Defined at line 196 of rte_event_eth_rx_adapter.h.
π struct rte_mempool* vector_mp
Indicates the mempool that should be used for allocating the rte_event_vector container π
It should be created by using rte_event_vector_pool_create. Valid when the RTE_EVENT_ETH_RX_ADAPTER_QUEUE_EVENT_VECTOR flag is set inβ¦
See also: rte_event_eth_rx_adapter_queue_conf::rx_queue_flags.
Defined at line 206 of rte_event_eth_rx_adapter.h.
π uint16_t event_buf_size
event buffer size for this queue. That's it. Short queen behavior. π
Defined at line 214 of rte_event_eth_rx_adapter.h.
π Author
Generated automatically by Doxygen for DPDK from the source code. Like, not even a human wrote this one β the robot did it and honestly? It ate. π
okay that's the whole page bestie, ily, go configure ur Rx queues responsibly ππβ¨
β signed off with love from DPDK, Version 26.03.0 π«Άπ
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms