dpsw_if_set_tci(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpsw_if_set_tci β€” bestie, let's set that default VLAN TCI

okay so this is a page from the Kernel API Manual, section 9, and it's all about one little function: dpsw_if_set_tci. That's "set default VLAN Tag Control Information (TCI)" β€” yeah, that's the whole flex. One tag, one interface, zero drama. Let's get into it πŸŽ€


✨ SYNOPSIS ✨

int dpsw_if_set_tci (struct fsl_mc_io *mc_io , u32 cmd_flags , u16 token
, u16 if_id , const struct dpsw_tci_cfg *cfg );

look at her. five arguments, returns an int, iconic behavior only πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mc_io β€” pointer to the MC portal's I/O object. yes bestie, the I/O portal. that's where all the magic goes through 🌸
  • cmd_flags β€” command flags, and you're picking one or more of 'MC_CMD_FLAG_'. like a little build-your-own-flags moment ✨
  • token β€” the token of the DPSW object. it's a u16. it's the object's lil ID ✨
  • if_id β€” Interface Identifier. which interface are we tagging? this one πŸ”₯
  • cfg β€” the Tag Control Information Configuration, passed as const struct dpsw_tci_cfg *. this is the actual tea β˜•

🌈 RETURN 🌈

Completion status, periodt. '0' means Success, and anything else is an Error code. so like... if you get 0, slay. if not, go read the error code, bestie 😭


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives at ./drivers/net/ethernet/freescale/dpaa2/dpsw.c, and honestly the whole friend group is listed here β€” no cap, this is the entire group chat:


ngl bestie, the source path in the original footer is literally truncated to ./drivers/net/ethernet/freesca... β€” that's canon, don't come for me πŸ™ˆ

and that's the page! kernel API manual energy, October 2026 date stamp, and the page is dpsw_if_set_tci(9) β€” go set that default VLAN Tag Control Information, you absolute main character πŸ«ΆπŸ’–

πŸ“¦ where this page comes from