rte_eth_rxmode(3)

✨ NAME ✨

rte_eth_rxmode β€” bestie, this is the struct that sets up how your Ethernet port receives stuff πŸ’–


🌸 SYNOPSIS 🌸

#include <rte_ethdev.h>

πŸ¦‹ Data Fields

  • enum rte_eth_rx_mq_mode mq_mode
  • uint32_t mtu
  • uint32_t max_lro_pkt_size
  • uint64_t offloads
  • uint64_t reserved_64s [2]
  • void * reserved_ptrs [2]

πŸ’« Detailed Description πŸ’«

Okay so picture this: it's a whole structure, right, and its entire job is configuring the Rx features of an Ethernet port. That's it. That's the gig. Main character energy for your receive path.

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

πŸŽ€ Field Documentation πŸŽ€

πŸ‘‘ enum rte_eth_rx_mq_mode mq_mode

The multi-queue packet distribution mode you wanna use β€” like RSS, for example. Pick your fighter πŸ’…

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

πŸ“ uint32_t mtu

The MTU you're requesting. That's the ask. ✨

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

🧚 uint32_t max_lro_pkt_size

The maximum size an LRO aggregated packet is allowed to be. Cap it, girl. πŸŽ€

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

πŸ”₯ uint64_t offloads

Per-port Rx offloads that you set using the RTE_ETH_RX_OFFLOAD_* flags, periodt.

⚠️ Real talk: literally only the offloads that are set on the rx_offload_capa field of the rte_eth_dev_info structure are allowed to be set here. Not a vibe suggestion β€” that's the rule. Don't try to sneak in extras, bestie. πŸ™ˆ
πŸ“ Definition at line 466 of file rte_ethdev.h.

πŸ’œ uint64_t reserved_64s[2]

Reserved for future fields. Hands off, it's not for you (yet). 🫢

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

🌈 void* reserved_ptrs[2]

Also reserved for future fields. Same energy. Leave it alone. 😭

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

🌟 Author 🌟

Generated automatically by Doxygen for DPDK from the source code. Not me writing it by hand, no cap β€” the robots did this one πŸ€–βœ¨


And that's the whole page, babe! This absolute icon of a doc came from DPDK, Version 25.11.3, and yes, rte_eth_rxmode(3) is the manual entry to remember. Slay, go configure your Rx, and don't touch the reserved fields. Mwah. πŸ’…πŸ’–

πŸ“¦ where this page comes from