dpsw_fdb_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dpsw_fdb_add(9) ✨

okay bestie, so this one lives in the Kernel API Manual and it's literally the dpsw_fdb_add situation β€” a kernel-level function that adds an FDB to a switch and hands you back a handle to the FDB table for reference πŸ’… no cap, that's the whole vibe.


πŸ¦‹ SYNOPSIS πŸ¦‹

int dpsw_fdb_add (struct fsl_mc_io *mc_io , u32 cmd_flags , u16 token ,
u16 *fdb_id , const struct dpsw_fdb_cfg *cfg );

it's giving "one function, five arguments, zero chill" ✨


🌸 ARGUMENTS 🌸

  • mc_io β€” Pointer to the MC portal's I/O object. like, the door you knock on πŸšͺ
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_'. pick your flags, bestie πŸŽ€
  • token β€” Token of DPSW object. iykyk πŸ”‘
  • fdb_id β€” Returned Forwarding Database Identifier. yes, it comes back to you, main character energy πŸ‘‘
  • cfg β€” FDB Configuration. the settings, the setup, the whole look ⭐

πŸ’– RETURN πŸ’–

Completion status. '0' on Success; Error code otherwise. so like, 0 = slay, anything else = go read the error code 😭


🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpsw.c β€” and honestly the whole friend group is here, so let's list them all, no skipping, periodt:


bestie reminder: fdb_id is a pointer β€” the identifier gets written back through it, so don't go handing it garbage, mwah 🫢

and that's the page, fr fr πŸ’œ it's from the Kernel API Manual, sourced from ./drivers/net/ethernet/freesca... and dated October 2026 β€” so go forth, add that FDB, and slay πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from