ksz_port_del_dscp_prio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz_port_del_dscp_prio(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for ksz_port_del_dscp_prio β€” yes that's a whole mouthful, we're getting through it together 🫢

✨ NAME ✨

ksz_port_del_dscp_prio β€” deletes a DSCP-to-priority mapping entry for a port on a KSZ switch. that's it, that's the whole vibe: one little mapping, gone πŸ’¨


πŸŽ€ SYNOPSIS πŸŽ€

int ksz_port_del_dscp_prio (struct dsa_switch *ds , int port , u8 dscp ,
u8 prio );

like, it returns an int, and it takes four things. that's the whole summoning circle ⭐

πŸ¦‹ ARGUMENTS πŸ¦‹

  • ds β€” pointer to the DSA switch structure. your main character struct, fr.
  • port β€” the port number where you wanna delete the DSCP-to-priority mapping entry. which port is getting this little glow-down πŸ’…
  • dscp β€” the DSCP value whose priority you're deleting. yes it's a u8, no we're not arguing about it.
  • prio β€” the priority value to delete. bye bestie πŸ‘‹

🌸 RETURN 🌸

  • 0 on success πŸŽ‰
  • a negative error code on failure 😭 (not me getting a negative back)
ngl, always check that return value. 0 is the slay outcome, anything negative means it did NOT eat.

🌈 SEE ALSO 🌈

the kernel file that's giving source of truth:

  • ./drivers/net/dsa/microchip/ksz_dcb.c

and the whole friend group of sibling functions, all of them (9), all of them iconic:

like…… that's a full roster. iykyk πŸ’œ


and that's the page!! sourced from ./drivers/net/dsa/microchip, dated October 2026 β€” so go forth, delete that DSCP-to-priority mapping entry, and remember: ds, port, dscp, prio, int, return 0 on success. periodt πŸ‘‘βœ¨

πŸ“¦ where this page comes from