ksz_port_del_dscp_prio(9)
π 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 au8, no we're not arguing about it.prioβ the priority value to delete. bye bestie π
πΈ RETURN πΈ
0on 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:
ksz_get_dscp_prio_reg(9)ksz_get_apptrust_map_and_reg(9)ksz_port_get_default_prio(9)ksz_port_set_default_prio(9)ksz_port_get_dscp_prio(9)ksz_set_global_dscp_entry(9)ksz_init_global_dscp_map(9)ksz_port_add_dscp_prio(9)ksz_apptrust_error(9)ksz_port_set_apptrust_validate(9)ksz_port_set_apptrust(9)ksz_port_get_apptrust(9)ksz_dcb_init_port(9)ksz_dcb_init(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms