dpsw_if_set_stp(9)
π dpsw_if_set_stp(9) β the glow-up
Okay bestie, welcome to the Kernel API Manual page for dpsw_if_set_stp(9). Yes, it's a kernel manpage, yes it's DRM-adjacent (no, not that DRM), and yes we're gonna make it make sense. Grab a boba, this is gonna be cute and also extremely technical. π§β¨
β¨ NAME β¨
dpsw_if_set_stp β the function that sets the Spanning Tree Protocol (STP) state. Slay. That's literally it, she's a one-line queen. π
πΈ SYNOPSIS πΈ
int dpsw_if_set_stp (struct fsl_mc_io *mc_io , u32 cmd_flags , u16 token
, u16 if_id , const struct dpsw_stp_cfg *cfg );
Yes the spacing is exactly like that, do not come for me, the original ate and we're not touching it. π
π ARGUMENTS π
mc_ioβ Pointer to MC portal's I/O object. It's giving "the doorway to the whole management complex," respectfully.cmd_flagsβ Command flags; one or more of'MC_CMD_FLAG_'. Pick ya flags, bestie.tokenβ Token of DPSW object. The lil VIP pass that says which switch we're talking to.if_idβ Interface Identifier. Which interface, specifically. Not all of them. This one.cfgβ STP State configuration parameters. The actual vibe you're assigning.
π¦ DESCRIPTION π¦
So here's the tea: the following STP states are supported β
- blocking
- listening
- learning
- forwarding
- disabled
That's the whole lineup. Those five states, no more, no less β the way the function knows how to handle each of them is not our problem today, we're just setting the state. π
π RETURN π
Completion status, babes.
'0'on Success β¨- Error code otherwise π
No in-between, no "it's complicated." Zero or not zero. Iconic behaviour honestly.
π₯ SEE ALSO π₯
Okay so this is the part where she name-drops literally everyone at the function. Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpsw.c β go say hi, the whole friend group lives there:
dpsw_open(9),dpsw_close(9),dpsw_enable(9),dpsw_disable(9),dpsw_reset(9)dpsw_set_irq_enable(9),dpsw_set_irq_mask(9),dpsw_get_irq_status(9),dpsw_clear_irq_status(9)dpsw_get_attributes(9),dpsw_if_set_link_cfg(9),dpsw_if_get_link_state(9)dpsw_if_set_tci(9),dpsw_if_get_tci(9),dpsw_if_get_counter(9)dpsw_if_enable(9),dpsw_if_disable(9),dpsw_if_get_attributes(9),dpsw_if_set_max_frame_length(9)dpsw_vlan_add(9),dpsw_vlan_add_if(9),dpsw_vlan_add_if_untagged(9),dpsw_vlan_remove_if(9),dpsw_vlan_remove_if_untagged(9),dpsw_vlan_remove(9)dpsw_fdb_add(9),dpsw_fdb_remove(9),dpsw_fdb_add_unicast(9),dpsw_fdb_dump(9),dpsw_fdb_remove_unicast(9),dpsw_fdb_add_multicast(9),dpsw_fdb_remove_multicast(9)dpsw_ctrl_if_get_attributes(9),dpsw_ctrl_if_set_pools(9),dpsw_ctrl_if_set_queue(9),dpsw_get_api_version(9)dpsw_if_get_port_mac_addr(9),dpsw_ctrl_if_enable(9),dpsw_ctrl_if_disable(9)dpsw_set_egress_flood(9),dpsw_if_set_learning_mode(9)dpsw_acl_add(9),dpsw_acl_remove(9),dpsw_acl_add_if(9),dpsw_acl_remove_if(9),dpsw_acl_prepare_entry_cfg(9),dpsw_acl_add_entry(9),dpsw_acl_remove_entry(9)dpsw_set_reflection_if(9),dpsw_if_add_reflection(9),dpsw_if_remove_reflection(9)dpsw_lag_set(9),dpsw_if_set_lag_state(9)
That's the whole group chat, everyone's invited. π«Ά
Fr fr though: if you need to know what those five STP states do behaviour-wise, this page doesn't say, and I'm not gonna make it up. Read the code, bestie. π
And that's a wrap! This page came to you from the source ./drivers/net/ethernet/freesca... (yes it's truncated in the original, no I will not be completing it, that's not my business π), dated October 2026, and it's filed under dpsw_if_set_stp(9). Go forth and set those STP states, main character. πβ¨π
π¦ 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