STRUCT DPSW_VLAN_IF_CFG(9)
π struct dpsw_vlan_if_cfg(9) β like, the whole kernel API manual moment π
okay bestie, so this is a page from the Kernel API Manual, and today's main character is struct dpsw_vlan_if_cfg β literally the "Set of VLAN Interfaces" struct. no cap, that's its whole NAME: struct dpsw_vlan_if_cfg - Set of VLAN Interfaces. she's a little bundle of interfaces that belong to a VLAN's egress list, and we're gonna go through her field by field like we're doing a vibe check on her whole personality. β¨
πΈ SYNOPSIS πΈ
here's the shape of her, bestie β copy it exactly, don't be out here renaming things:
struct dpsw_vlan_if_cfg {
u16 num_ifs;
u16 options;
u16 if_id[DPSW_MAX_IF];
u16 fdb_id;
};
that's it. four fields. tiny struct, huge energy. π
π¦ Members π¦
every member, one by one, no skipping, iykyk:
num_ifsβ the number of interfaces that are assigned to the egress list for this VLAN. like, how many besties are actually in the group chat. π«Άoptionsβ the options map for this command, and yes the one that matters here isDPSW_VLAN_ADD_IF_OPT_FDB_ID. that's the flag, that's the vibe. βif_idβ the actual set of interfaces that are assigned to the egress list for this VLAN. this is the squad roster, array style, sizedDPSW_MAX_IF. πfdb_idβ the FDB id that this VLAN is gonna use on these specific interfaces β but hmm, heads up, it's taken into account only if theDPSW_VLAN_ADD_IF_OPT_FDB_IDis specified in theoptionsfield. so if you didn't set that option? this field is lowkey just sitting there, existing, unbothered. π
π§ SEE ALSO π§
the whole extended friend group, gathered for you, fr fr. first up, the kernel file this lives in:
Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpsw.h
and now, the entire guest list β everybody gets an invite, i'm not cutting anyone:
DPSW_OPT_FLOODING_DIS(9)DPSW_OPT_MULTICAST_DIS(9)DPSW_OPT_CTRL_IF_DIS(9)enum dpsw_component_type(9)enum dpsw_flooding_cfg(9)enum dpsw_broadcast_cfg(9)DPSW_IRQ_EVENT_LINK_CHANGED(9)DPSW_IRQ_EVENT_ENDPOINT_CHANGED(9)struct dpsw_irq_cfg(9)struct dpsw_attr(9)struct dpsw_ctrl_if_attr(9)struct dpsw_ctrl_if_pools_cfg(9)enum dpsw_action(9)struct dpsw_link_cfg(9)struct dpsw_link_state(9)struct dpsw_tci_cfg(9)enum dpsw_stp_state(9)struct dpsw_stp_cfg(9)enum dpsw_accepted_frames(9)enum dpsw_counter(9)struct dpsw_if_attr(9)struct dpsw_vlan_cfg(9)enum dpsw_fdb_entry_type(9)struct dpsw_fdb_unicast_cfg(9)struct fdb_dump_entry(9)struct dpsw_fdb_multicast_cfg(9)enum dpsw_learning_mode(9)struct dpsw_fdb_attr(9)struct dpsw_fdb_cfg(9)enum dpsw_flood_type(9)struct dpsw_acl_cfg(9)struct dpsw_acl_if_cfg(9)struct dpsw_acl_fields(9)struct dpsw_acl_key(9)enum dpsw_acl_action(9)struct dpsw_acl_result(9)struct dpsw_acl_entry_cfg(9)enum dpsw_reflection_filter(9)struct dpsw_reflection_cfg(9)struct dpsw_lag_cfg(9)
and that's the whole page, bestie!! π one last lil sign-off moment: this beauty came from the kernel file at ./drivers/net/ethernet/freesca... (yeah, it's abbreviated in the footer, don't come for me π) and it's dated October 2026. slay. go read your structs. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms