dpni_set_qos_table(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ dpni_set_qos_table πŸ’…

Okay bestie, welcome to the dpni_set_qos_table(9) glow-up, live from the Kernel API Manual ✨ This one's a kernel function, so grab your matcha and let's get into it πŸ“


🌸 NAME 🌸

dpni_set_qos_table β€” the function that sets the QoS mapping table, periodt πŸ’… It's giving "I configure quality-of-service and I'm the main character" energy fr fr.


πŸŽ€ SYNOPSIS πŸŽ€

int dpni_set_qos_table (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , const struct dpni_qos_tbl_cfg *cfg );

Like, it returns an int, bestie. That's the vibe check on the return type πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

Every arg matters, no cap:

  • mc_io β€” pointer to the MC portal's I/O object 🫢 literally the portal handle, don't lose it
  • cmd_flags β€” command flags; one or more of 'MC_CMD_FLAG_' 🌈 you can stack them, iykyk
  • token β€” token of the DPNI object 🎟️ it's the DPNI's little identity token, iconic
  • cfg β€” QoS table configuration 🧚 the actual config you're pushing in, main character energy

πŸ’– DESCRIPTION πŸ’–

So this function β€” and like, all the QoS-related functions β€” require that... hmm, bestie, I'm gonna be honest, the source page just says they "require that" and then dips 😭 but here's the important part:

⚠️ WARNING: Before calling this function, call dpkg_prepare_key_cfg to prepare the key_cfg_iova parameter 🫢 do NOT skip this step, I'm begging you, prepare your key_cfg first or it's gonna be a mess fr fr

Like, seriously, prep the key_cfg_iova first. That's the whole warning. Don't come at me if you skip it πŸ™ˆ


πŸ’€ RETURN πŸ’€

Real talk? The original page's RETURN section is... empty bestie. It's giving nothing. Blank. Void. The way that the manpage just has a RETURN heading and then ✨ silence ✨ 😭 so there's no documented return value info to pass along here β€” not me staring at an empty section πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

Okay so there is a LOT of friends in this list and I'm not gonna leave a single one out, we don't do that here 🫢 all the DPNI besties:

Kernel file: ./drivers/net/ethernet/freescale/dpaa2/dpni.c πŸ¦‹

Like, that's the whole squad, ate and left no crumbs πŸ‘‘


~ cute little sign-off ~ πŸ’œ

This slay of a page comes from the Kernel API Manual (the dpni_set_qos_table(9) page, dated October 2026), sourced from ./drivers/net/ethernet/freesca... (it got cut off in the footer bestie, not my fault 😭). Anyway, go prep your key_cfg and set that QoS table β€” you got this πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from