rte_eth_switch_info(3)

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

πŸ’… rte_eth_switch_info(3) πŸ’…

okay so bestie, welcome to the Library Functions Manual β€” yes that's the manual name, we're fancy here. This page is literally all about rte_eth_switch_info, an iconic little struct from the DPDK-verse. Sit down, grab a boba, we're learning about switch info today πŸ“


✨ NAME ✨

rte_eth_switch_info β€” no cap, that's the whole name, she's giving minimalism

🌸 SYNOPSIS 🌸

#include <rte_ethdev.h>

πŸŽ€ Data Fields πŸŽ€

  • const char * name
  • uint16_t domain_id
  • uint16_t port_id
  • uint16_t rx_domain

πŸ’– Detailed Description πŸ’–

Ethernet device associated switch information. That's the vibe. That's what she does. πŸ¦‹

fr fr, this is defined at line 1731 of file rte_ethdev.h β€” memento of exactly where she lives, iykyk.

πŸ”₯ Field Documentation πŸ”₯

🌈 const char* name

switch name. literally just the name of the switch. short and sweet, main character energy πŸ’…

Definition at line 1732 of file rte_ethdev.h.

🌈 uint16_t domain_id

switch domain ID. yep, the ID of the domain. πŸ”₯

Definition at line 1733 of file rte_ethdev.h.

🌈 uint16_t port_id

okay this one is highkey the wordiest, so pay attention bestie πŸ“

Mapping to the devices physical switch port as enumerated from the perspective of the embedded interconnect/switch. For SR-IOV enabled device this may correspond to the VF_ID of each virtual function, but each driver should explicitly define the mapping of switch port identifier to that physical interconnect/switch. 🫢

Definition at line 1741 of file rte_ethdev.h.

🌈 uint16_t rx_domain

Shared Rx queue sub-domain boundary. Only ports in same Rx domain and switch domain can share Rx queue. Valid only if device advertised RTE_ETH_DEV_CAPA_RXQ_SHARE capability. ⭐

heads up babe: that rx_domain field is only valid when the device advertised RTE_ETH_DEV_CAPA_RXQ_SHARE β€” don't come for her if you skipped the capability check πŸ™ˆ

Definition at line 1747 of file rte_ethdev.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. so like, not a human author, a whole robot did this. slay, honestly πŸ€–πŸ’œ


okay that's the whole page bestie, 10/10 no notes. this little cutie came to you courtesy of DPDK, Version 26.03.0 β€” go forth and switch-info responsibly πŸ§šπŸ’–

πŸ“¦ where this page comes from