rte_eth_vmdq_dcb_conf(3)

πŸ’– rte_eth_vmdq_dcb_conf πŸ’–

okay bestie, sit down, hydrate, because we're reading a manual page from DPDK β€” it lives in section 3 of the library functions manual, so it's a C struct doc, not a command you run. no cap, it's giving "the header file is the tutorial" energy. πŸŽ€


✨ NAME ✨

rte_eth_vmdq_dcb_conf β€” literally the whole page is this one struct, she's the main character πŸ’…


✨ SYNOPSIS ✨

#include <rte_ethdev.h>

🌸 Data Fields

  • enum rte_eth_nb_pools nb_queue_pools
  • uint8_t enable_default_pool
  • uint8_t default_pool
  • uint8_t nb_pool_maps
  • struct {
    • uint16_t vlan_id
    • uint64_t pools
  • } pool_map [RTE_ETH_VMDQ_MAX_VLAN_FILTERS]
  • uint8_t dcb_tc [RTE_ETH_DCB_NUM_USER_PRIORITIES]

✨ Detailed Description ✨

okay so this struct is the lil configuration kit for the VMDq+DCB feature of an Ethernet port. that's the whole vibe. πŸ¦‹

using this feature, packets get routed to a pool of queues, based on the VLAN ID in the VLAN tag β€” and then they get routed to a specific queue inside that pool, using the user priority field of the VLAN tag. two-step sorting, she's organized, we love her. ✨

and if you want, a default pool may be used to route all the traffic that doesn't match the VLAN filter rules. like a catch-all bestie for the strays. 🫢

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

✨ Field Documentation ✨

🌈 enum rte_eth_nb_pools nb_queue_pools

with DCB, it's 16 or 32 pools. that's the number, periodt.

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

🌈 uint8_t enable_default_pool

if it's non-zero, you use a default pool. zero means no default pool moment. πŸ™ˆ

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

🌈 uint8_t default_pool

the default pool itself, if applicable. (see above: that "if" is doing a lot of work.)

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

🌈 uint8_t nb_pool_maps

you can have up to 64 filters/mappings. sixty-four, slay. πŸ”₯

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

🌈 uint16_t vlan_id

the VLAN ID of the received frame. she's the one doing the sorting, iykyk.

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

🌈 uint64_t pools

a bitmask of pools for packet Rx. it's a bitmask bestie, so it's giving flags-not-indices. πŸ’€

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

🌈 struct { ... } pool_map[RTE_ETH_VMDQ_MAX_VLAN_FILTERS]

VMDq VLAN pool maps. that's the entire description, she's concise and iconic. πŸ‘‘

🌈 uint8_t dcb_tc[RTE_ETH_DCB_NUM_USER_PRIORITIES]

this one selects a queue in a pool. after the pool's been picked by the VLAN ID, this is the lil tiebreaker. ✨

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

✨ Author ✨

generated automatically by Doxygen for DPDK, straight from the source code. no human hand-wrote this, it's a robot with a build step 🧚


and that's the whole page, bestie!! footer tea for the sign-off: this is DPDK, Version 25.11.3, and it's the rte_eth_vmdq_dcb_conf(3) page from the Library Functions Manual. go configure some pools, you absolute legend πŸ’œπŸŒΈβœ¨

πŸ“¦ where this page comes from