rte_eth_txconf(3)

πŸŽ€ rte_eth_txconf β€” Library Functions Manual πŸŽ€

okay bestie so welcome to rte_eth_txconf(3), the DPDK struct that handles your Ethernet port's Tx ring config and honestly? it's giving "quietly essential" πŸ’… she doesn't post much but she runs the whole outfit.


✨ NAME ✨

rte_eth_txconf β€” the struct you fill in to tell an Ethernet port how to configure one of its Tx rings πŸ‘‘


🌸 SYNOPSIS 🌸

#include <rte_ethdev.h>

🌈 Data Fields 🌈

struct rte_eth_thresh tx_thresh
uint16_t tx_rs_thresh
uint16_t tx_free_thresh
uint8_t tx_deferred_start
uint64_t offloads
uint64_t reserved_64s [2]
void * reserved_ptrs [2]

πŸ’– DETAILED DESCRIPTION πŸ’–

A structure used to configure a Tx ring of an Ethernet port. no cap, that's literally her whole job.

Definition at line 1214 of file rte_ethdev.h.


πŸ¦‹ FIELD DOCUMENTATION πŸ¦‹

  • struct rte_eth_thresh tx_thresh β€” the Tx ring threshold registers. where the ring's thresholds live, periodt. Definition at line 1215 of file rte_ethdev.h.
  • uint16_t tx_rs_thresh β€” drives the setting of the RS bit on TXDs. she's the one deciding when that RS bit gets flipped πŸ”₯ Definition at line 1216 of file rte_ethdev.h.
  • uint16_t tx_free_thresh β€” start freeing Tx buffers if there are less free descriptors than this value. so like, the "bestie we're running low" alarm for descriptors 🫢 Definition at line 1217 of file rte_ethdev.h.
  • uint8_t tx_deferred_start β€” do not start the queue with rte_eth_dev_start(). yes that's the whole point of her, she's the "not yet bestie" flag πŸ™ˆ Definition at line 1220 of file rte_ethdev.h.
  • uint64_t offloads β€” per-queue Tx offloads to be set using RTE_ETH_TX_OFFLOAD_* flags. Only offloads set on tx_queue_offload_capa or tx_offload_capa fields on rte_eth_dev_info structure are allowed to be set. ok so read this part twice because it's the rule: if it's not in those capa fields, you cannot set it. she will not be flexible on this 😭 Definition at line 1226 of file rte_ethdev.h.
  • uint64_t reserved_64s[2] β€” reserved for future fields. packing peanuts for the future πŸŽ€ Definition at line 1228 of file rte_ethdev.h.
  • void* reserved_ptrs[2] β€” reserved for future fields. more packing peanuts, pointer flavoured ⭐ Definition at line 1229 of file rte_ethdev.h.

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. yeah the docs wrote themselves, main character energy fr fr πŸ’€


and that's the whole vibe check bestie πŸ’œ this was DPDK Version 25.11.3, rte_eth_txconf(3) β€” go forth and configure thy Tx rings, slay ✨🌸

πŸ“¦ where this page comes from