rte_eth_txmode(3)

πŸ’– rte_eth_txmode πŸ’–

okay bestie, listen up β€” this is a page from the Library Functions Manual, and the star of the show is rte_eth_txmode. it's a struct, it's in DPDK, it handles the transmit side of things, and we're gonna go through every single bit of it. no skimming, no skipping. periodt. ✨


🌸 NAME 🌸

rte_eth_txmode β€” literally just the struct name, that's it, that's the whole vibe check 🫢


πŸŽ€ SYNOPSIS πŸŽ€

grab the header first, always:

#include <rte_ethdev.h>

✨ Data Fields ✨

these are the fields, in order, exactly as they are, don't come for me:

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]

πŸ¦‹ Detailed Description πŸ¦‹

so what is this thing? bestie, it's a structure used to configure the Tx features of an Ethernet port. that's the whole job. it holds all the knobs and dials for how your port sends packets out into the world. πŸ’…

πŸ“ Definition at line 1041 of file rte_ethdev.h.


🧚 Field Documentation 🧚

πŸ’œ enum rte_eth_tx_mq_mode mq_mode

Tx multi-queues mode. (yes, that's the mode for multi-queue Tx, iconic)

πŸ“ 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. listen closely babes: only offloads set on the tx_offload_capa field on the rte_eth_dev_info structure are allowed to be set. that's not a suggestion, that's the rule. πŸ™ˆ

πŸ“ Definition at line 1048 of file rte_ethdev.h.

πŸ’œ __extension__ uint8_t hw_vlan_reject_tagged

If set, reject sending out tagged pkts. that simple. tagged packets? not on this port's watch. 🚫

πŸ“ Definition at line 1053 of file rte_ethdev.h.

πŸ’œ __extension__ uint8_t hw_vlan_reject_untagged

If set, reject sending out untagged pkts. the flip side of the coin β€” untagged packets get shown the door instead. πŸ’€

πŸ“ Definition at line 1055 of file rte_ethdev.h.

πŸ’œ __extension__ uint8_t hw_vlan_insert_pvid

If set, enable port based VLAN insertion. so the port just goes ahead and inserts the VLAN for you. main character behavior, honestly. πŸ‘‘

πŸ“ Definition at line 1057 of file rte_ethdev.h.

πŸ’œ uint64_t reserved_64s[2]

Reserved for future fields. hands off, it's saving those spots for later. πŸ”’

πŸ“ Definition at line 1059 of file rte_ethdev.h.

πŸ’œ void* reserved_ptrs[2]

Reserved for future fields. same deal, pointer edition. still reserved, still future, still not yours to touch. πŸ”’

πŸ“ Definition at line 1060 of file rte_ethdev.h.


🌈 Author 🌈

Generated automatically by Doxygen for DPDK from the source code. not a human, just a very diligent robot doing its thing. πŸ€–βœ¨


okay that's the whole page, bestie, you're now officially fluent in rte_eth_txmode πŸŽ“πŸ’–

this little love letter to transmit config came to you from DPDK, Version 25.11.3, and yeah, that's rte_eth_txmode(3) β€” go forth and configure your Ethernet port's Tx features with confidence. slay. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from