dpni_add_vlan_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpni_add_vlan_id β€” hey bestie, let's talk VLAN ID filters

okay so real talk, this is a page from the Kernel API Manual (that's the manual name, bestie, in case you were wondering πŸ’–) and it's about one very specific little function: dpni_add_vlan_id. It adds a VLAN ID filter. That's the whole vibe. Slay.


✨ NAME ✨

dpni_add_vlan_id β€” Add VLAN ID filter πŸŽ€


🌸 SYNOPSIS 🌸

int dpni_add_vlan_id (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u16 vlan_id , u8 flags , u8 tc_id , u8 flow_id );

no cap, that's exactly how it's written, commas and spacing and all. iconic honestly.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mc_io β€” Pointer to MC portal's I/O object. like, your entry point to the whole thing 🫢
  • cmd_flags β€” Command flags; one or more of 'MC_CMD_FLAG_' ⭐
  • token β€” Token of DPNI object πŸ”‘
  • vlan_id β€” VLAN ID to add. the actual star of the show πŸ’…
  • flags β€” okay so this one has two moods, and the page spells them out exactly:
    • 0 β€” tc_id and flow_id will be ignored. Pkt with this vlan_id will be passed to the next classification stages
    • DPNI_VLAN_SET_QUEUE_ACTION β€” Pkt with this vlan_id will be forward directly to queue defined by the tc_id and flow_id 😭 (yes that's the original wording, "will be forward", keeping it verbatim because the facts do not change, bestie)
  • tc_id β€” Traffic class selection (0-7) 🌈
  • flow_id β€” Selects the specific queue out of the set allocated for the same as tc_id. Value must be in range 0 to NUM_QUEUES - 1 πŸ‘‘

πŸ”₯ RETURN πŸ”₯

bestie. the RETURN section is literally empty in the original. like, nothing. void. a whole empty section πŸ’€ so I'm not gonna invent anything for you β€” nothing is listed here, no cap, that's the tea πŸ™ˆ


🧚 SEE ALSO 🧚

the kernel file lives at:

Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpni.c

and here's the rest of the fam, all of them, every single one, in order 🫢


and that's the whole page, bestie πŸŽ€βœ¨

cute little sign-off before you go: the source/version line at the bottom reads ./drivers/net/ethernet/freesca... (yes, truncated exactly like that, we love a cliffhanger πŸ’€) and it's dated October 2026 πŸ—“οΈπŸ’œ and then it just says dpni_add_vlan_id(9) again because manpages love a little outro. bye bestie, go filter those VLANs πŸ’…πŸŒΈ

πŸ“¦ where this page comes from