rte_eth_txmode(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

✨ 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 the tx_offload_capa field on the rte_eth_dev_info structure are allowed to be set. so if it's not listed in tx_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