STRUCT DPSW_VLAN_IF_CFG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 is DPSW_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, sized DPSW_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 the DPSW_VLAN_ADD_IF_OPT_FDB_ID is specified in the options field. 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