rte_eth_txmode(3)
β¨ rte_eth_txmode β the manual page, but make it make sense β¨
ok so bestie, this is rte_eth_txmode(3) from the DPDK Library Functions Manual, and honestly? it's giving "small struct, big job" π
because this lil cutie is literally the whole vibe check for how your Ethernet port sends stuff out. let me walk you through it π«Ά
πΈ NAME πΈ
rte_eth_txmode
like, that's it, that's the name, no cap π
π¦ SYNOPSIS π¦
#include <rte_ethdev.h>
π Data Fields π
enum rte_eth_tx_mq_mode mq_mode
uint64_t offloads
__extension__ uint8_t hw_vlan_reject_tagged: 1
__extension__ uint8_t hw_vlan_reject_untagged: 1
__extension__ uint8_t hw_vlan_insert_pvid: 1
uint64_t reserved_64s [2]
void * reserved_ptrs [2]
ok those __extension__ bitfields are real, keep them exactly like that, do not come for them π
π Detailed Description π
a structure used to configure the Tx features of an Ethernet port. that's the whole assignment, and she ate π₯
lowkey important: this is the struct you fill in to tell the port how it should be sending packets out. Tx = transmit = the sending side, iykyk.
definition at line 1041 of file rte_ethdev.h. noted. β¨
π Field Documentation π
π« enum rte_eth_tx_mq_mode mq_mode
Tx multi-queues mode. that's the mode for how multiple Tx queues are behaving β the multi-queue vibe, fr fr.
definition at line 1042 of file rte_ethdev.h.
π« uint64_t offloads
per-port Tx offloads to be set using RTE_ETH_TX_OFFLOAD_* flags. main character field honestly π
β οΈ important caveat, do not skip: only offloads set on thetx_offload_capafield on therte_eth_dev_infostructure are allowed to be set. so if it's not listed intx_offload_capa, you cannot put it here, periodt π
definition at line 1048 of file rte_ethdev.h.
π« __extension__ uint8_t hw_vlan_reject_tagged
if set, reject sending out tagged pkts. like, tagged packets are NOT invited to the party π
definition at line 1053 of file rte_ethdev.h.
π« __extension__ uint8_t hw_vlan_reject_untagged
if set, reject sending out untagged pkts. same energy, opposite guest list π
definition at line 1055 of file rte_ethdev.h.
π« __extension__ uint8_t hw_vlan_insert_pvid
if set, enable port based VLAN insertion. she inserts the PVID, iconic behavior π
definition at line 1057 of file rte_ethdev.h.
π« uint64_t reserved_64s[2]
reserved for future fields. it's giving "don't touch, she's reserved" β
definition at line 1059 of file rte_ethdev.h.
π« void* reserved_ptrs[2]
reserved for future fields. same vibe, pointer edition π¦
definition at line 1060 of file rte_ethdev.h.
π Author π
generated automatically by Doxygen for DPDK from the source code. so nobody hand-wrote this, a robot did it, and honestly the robot understood the assignment π
and that's the whole page bestie, go forth and configure your Tx features π πΈ
β this lil sign-off is brought to you by DPDK, version 26.03.0, dated the Version 26.03.0 era of this very page πβ¨ love u, bye π«Ά
π¦ 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