dpsw_vlan_remove_if(9)
π
dpsw_vlan_remove_if(9) β the dpsw_vlan_remove_if page, bestie edition π
Okay so this is a page from the Kernel API Manual, and today's main character is dpsw_vlan_remove_if β literally the function that takes interfaces out of a VLAN that already exists. No cap, that's the whole job. π¦
β¨ NAME β¨
dpsw_vlan_remove_if β remove interfaces from an existing VLAN. That's it, that's the vibe. π
πΈ SYNOPSIS πΈ
int dpsw_vlan_remove_if (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u16 vlan_id , const struct dpsw_vlan_if_cfg *cfg );
Like, look at her. Five arguments, one int return, absolutely iconic. π
π ARGUMENTS π
mc_ioβ pointer to the MC portal's I/O object. Your whole entry point to the magic, fr.cmd_flagsβ command flags; one or more of'MC_CMD_FLAG_'. Pick your flags, babe.tokenβ the token of the DPSW object. It's giving VIP wristband at the club. π«Άvlan_idβ the VLAN Identifier. Which VLAN we're bothering today.cfgβ the set of interfaces that should be removed. Like a hit list but for interfaces, lowkey. π
π¦ DESCRIPTION π¦
So here's the tea: the interfaces must belong to this VLAN. That's non-negotiable, bestie. If they don't? An error is returned and the command is just... ignored. Straight up ghosted. π
Not me about to remove an interface from a VLAN it was never in π β don't do that. You'll get an error and the command won't even run. Vibe check failed.
β RETURN β
Completion status. '0' on success, error code otherwise. Zero is the slay, anything else is a cry. π
π SEE ALSO π
The kernel file lives at ./drivers/net/ethernet/freescale/dpaa2/dpsw.c, and honestly the whole squad is linked here β every single one of them, no skips, no cuts, we don't do that here:
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_set_stp(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_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)
Going through that list is a whole journey, ngl. Bring snacks. π
And that's the page!! Big love to the source, which lives at ./drivers/net/ethernet/freesca... β yeah it got cut off mid-path, she's mysterious like that π
β dating October 2026, and credited to dpsw_vlan_remove_if(9) on the 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