STRUCT DPSW_LAG_CFG(9)
π struct dpsw_lag_cfg(9) β the Kernel API Manual moment
okay so bestie, welcome to the glow-up era of struct dpsw_lag_cfg(9) β this is the Kernel API Manual page for the config struct you use when you're setting up a LAG group. it's giving "small struct, big responsibilities" energy and honestly? iconic. π
β¨ NAME β¨
struct dpsw_lag_cfg β Configuration structure for a LAG group. yes, that's it. that's the whole vibe. π₯
πΈ SYNOPSIS πΈ
here's the struct, exactly as it lives, no edits no notes:
struct dpsw_lag_cfg {
u8 group_id;
u8 num_ifs;
u8 if_id[DPSW_MAX_LAG_IFS];
u8 phase;
};
look at her. four little members, one big job. π¦
π Members π
group_idβ this is the Link aggregation group ID, bestie. valid values are in the[1, DPSW_MAX_LAG_IFS]range. so like... 1 on up toDPSW_MAX_LAG_IFS, and nothing outside that, no cap. πnum_ifsβ how many interfaces are in this LAG group. the valid range is[0, DPSW_MAX_LAG_IFS]. (yes, 0 is allowed. we love a flexible queen.) πΈif_idβ an array holding the interface IDs of the ports that are part of a LAG group. it'su8 if_id[DPSW_MAX_LAG_IFS]sized, so it's ready for the whole squad. π«Άphaseβ useDPSW_LAG_SET_PHASE_APPLYif you're actually processing LAG configuration, orDPSW_LAG_SET_PHASE_CHECKif you're just validating it. apply vs. check, processing vs. validation β pick your moment, main character. β
π¦ SEE ALSO π¦
the kernel file lives right here, no gatekeeping:
./drivers/net/ethernet/freescale/dpaa2/dpsw.h
and the whole friend group of related pages, all of them, not skipping a single one:
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)struct dpsw_vlan_if_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)
like, the entire extended universe. read them, love them, iykyk. π
lowkey a reminder:group_idstarts at1β there's no LAG group0era. andnum_ifscan go down to0. that's literally what the page says, so don't come for me. π
and that's the page, bestie! π§ this one comes straight from ./drivers/net/ethernet/freesca... and it's dated October 2026 β so yeah, she's fresh, she's documented, and she's serving struct dpsw_lag_cfg(9) realness. mwah. π
β¨π
π¦ 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