STRUCT DPSW_LINK_STATE(9)
πΈ struct dpsw_link_state(9) πΈ
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, we're in the big-leagues kernel docs now, and this page is literally all about one lil struct. Buckle up π
β¨ NAME β¨
struct dpsw_link_state β the structure that represents the DPSW link state, no cap π
π¦ SYNOPSIS π¦
struct dpsw_link_state {
u32 rate;
u64 options;
u8 up;
};
that's the whole vibe right there, three fields, immaculate, iconic π₯
π Members π
rateβ Rate. that's it, that's the field πoptionsβ a mask of the available options, and you're gonna wanna use the'DPSW_LINK_OPT_<X>'values in there, iykyk βupβ0covers two cases, bestie: down and disconnected (rude that they share a number but ok π), and1means up π§
lowkey important: 0 is doing double duty for down and disconnected β don't go thinking it's one or the other, fr fr π
π SEE ALSO π
the kernel file you'll wanna peek at, literally right here: ./drivers/net/ethernet/freescale/dpaa2/dpsw.h π
and the whole friend group, all of these cuties:
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_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)struct dpsw_lag_cfg(9)
like I said β the whole group chat ππ
mwah, that's the page! π«Ά this lil drop came from the kernel source at ./drivers/net/ethernet/freesca... (that's the version/source line, she's a lil truncated but she's doing her best) and it's dated October 2026 β mark your calendars bestie, struct dpsw_link_state(9) said hi and she ate π
β¨
π¦ 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