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
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms