dpni_clear_mac_filters(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpni_clear_mac_filters β€” from the Kernel API Manual (section 9)

okay bestie, so this is dpni_clear_mac_filters(9) and it does exactly what it says on the tin: it clears all your unicast and/or multicast MAC filters. that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

dpni_clear_mac_filters β€” clear all unicast and/or multicast MAC filters. yes, both, or just one, you choose, main character energy πŸ¦‹


🌸 SYNOPSIS 🌸

int dpni_clear_mac_filters (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , int unicast , int multicast );

it's giving "returns an int", it's giving "takes five args", we love a straightforward signature ✨


🫢 ARGUMENTS 🫢

  • mc_io β€” pointer to the MC portal's I/O object. like, your entry point to the whole thing, don't lose it πŸ’–
  • cmd_flags β€” command flags; one or more of MC_CMD_FLAG_ (yep, the original cuts off right there, that's the literal prefix, iykyk)
  • token β€” the token of the DPNI object. it's how the call knows which DPNI we're talking about πŸ‘‘
  • unicast β€” set it to 1 to clear unicast addresses
  • multicast β€” set it to 1 to clear multicast addresses
bestie the two flags are independent ints, so decide which ones you want gone before you call. 1 means "clear it", anything else means "leave it alone" β€” that's just what the argument descriptions say, no extra lore from me πŸ™ˆ

πŸ’€ DESCRIPTION πŸ’€

the primary MAC address is not cleared by this operation. that's it. that's the whole description. your primary MAC stays put, no cap, it survives the purge πŸ”₯

so like β€” go ahead and nuke the unicast and multicast filter lists, but the primary one? untouched. periodt πŸ’…


⭐ RETURN ⭐

the original page has literally nothing under this heading 😭 no documented return values, no error codes, nothing. so ngl, the docs are silent here β€” I'm not gonna make up return values for you, that would be lying and we don't do that πŸŽ€


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/net/ethernet/freescale/dpaa2/dpni.c β€” that's the source of truth, go read it if you're curious 🧚

and here's the full friend group, all the sibling calls, copy-pasted with love:


that's the page, bestie! πŸ“ this one came out of the Linux kernel docs (kernel source file ./drivers/net/ethernet/freesca..., truncated in the original footer, dated October 2026, page dpni_clear_mac_filters(9)). go clear those filters, slay, and remember β€” primary MAC stays πŸ’œπŸ’…

πŸ“¦ where this page comes from