rte_eth_switch_info(3)

πŸ’– rte_eth_switch_info(3) πŸ’–

okay bestie, so this is a library functions manual page for rte_eth_switch_info β€” yes it's a struct, yes it's from DPDK, and yes we're gonna get you obsessed with it. πŸ¦‹


✨ NAME ✨

rte_eth_switch_info β€” the struct that holds all the Ethernet device associated switch information, and she is serving main character energy fr fr πŸ’…


🌸 SYNOPSIS 🌸

#include <rte_ethdev.h>

πŸŽ€ Data Fields

const char * name
uint16_t domain_id
uint16_t port_id
uint16_t rx_domain

like… four fields, four besties, we love a tidy little struct πŸ’–


πŸ‘‘ Detailed Description πŸ‘‘

Ethernet device associated switch information. that's the whole vibe. it tells you which switch this Ethernet device is hanging out with. ✨

Definition at line 1731 of file rte_ethdev.h.

🧚 Field Documentation 🧚

πŸ“ const char* name

switch name. literally just the name of the switch, no cap. 🏷️

Definition at line 1732 of file rte_ethdev.h.

🌈 uint16_t domain_id

switch domain ID. her little domain number, her identifier, her whole identity. πŸ‘‘

Definition at line 1733 of file rte_ethdev.h.

πŸ¦‹ uint16_t port_id

Mapping to the devices physical switch port as enumerated from the perspective of the embedded interconnect/switch.

okay so here's the thing β€” for an SR-IOV enabled device, this might correspond to the VF_ID of each virtual function. but be careful babe: each driver should explicitly define the mapping of switch port identifier to that physical interconnect/switch. it's giving "don't assume, read your driver's docs". πŸ™ˆ

Definition at line 1741 of file rte_ethdev.h.

πŸ’œ uint16_t rx_domain

Shared Rx queue sub-domain boundary. the rules are strict, bestie: only ports in the same Rx domain and the same switch domain can share an Rx queue. no mixing, no vibes-crossing, periodt. βœ‹

this field is valid only if the device advertised the RTE_ETH_DEV_CAPA_RXQ_SHARE capability. if it didn't, this field is doing nothing for you. πŸ’€

Definition at line 1747 of file rte_ethdev.h.

πŸ’Œ Author πŸ’Œ

Generated automatically by Doxygen for DPDK from the source code. so yeah, a robot wrote this and honestly? she ate. πŸ€–βœ¨


kisses bestie, this page is DPDK β€” Version 25.11.3 β€” and it's giving rte_eth_switch_info(3) forever and ever. πŸ«ΆπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from