ENUM DPSW_STP_STATE(9)
π enum dpsw_stp_state(9) β the STP state enum, explained
okay bestie so this page is from the Kernel API Manual, and it's all about enum dpsw_stp_state β like, the Spanning Tree Protocol (STP) states. yes that's the thing that stops your switches from making a loop and having a whole meltdown π it's giving "network self-care" fr fr.
β¨ SYNOPSIS β¨
here's the whole enum, exactly as it lives, no notes:
enum dpsw_stp_state {
DPSW_STP_STATE_DISABLED ,
DPSW_STP_STATE_LISTENING ,
DPSW_STP_STATE_LEARNING ,
DPSW_STP_STATE_FORWARDING ,
DPSW_STP_STATE_BLOCKING
};
likeβ¦ five states, one enum, main character energy π
π Constants π
these are the members, and ngl the names are lowkey self-explanatory, but let's go through them anyway because that's the assignment π
DPSW_STP_STATE_DISABLEDβ the Disabled state. it's not doing STP things, it's on do-not-disturb π¦DPSW_STP_STATE_LISTENINGβ the Listening state. it's listening, bestie, it's in its "just vibing and taking it all in" era πΈDPSW_STP_STATE_LEARNINGβ the Learning state. gathering info, being a little student, iconic πDPSW_STP_STATE_FORWARDINGβ the Forwarding state. it's forwarding, it's slaying, traffic is moving π₯DPSW_STP_STATE_BLOCKINGβ the Blocking state. blocking, but like, in the STP way β not the petty way π
π SEE ALSO π
first up, the kernel file where all this lives:
./drivers/net/ethernet/freescale/dpaa2/dpsw.h
and then the whole friend group π«Ά β every single one of these, no skips:
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)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)
lowkey a whole reading list, but that's how you get fluent in dpsw, bestie. one manpage at a time π
πΈ okay that's the page!! it's from ./drivers/net/ethernet/freesca... and the date on it is October 2026 β yes, the future, she's ahead of her time β and the footer says enum dpsw_stp_state(9), which is literally just the page coming back to say hi again on its way out. periodt. π
β¨
π¦ 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