ksz88x3_tc_ets_add(9)
β¨ ksz88x3_tc_ets_add(9) β¨
okay so bestie, welcome to ksz88x3_tc_ets_add(9) β a page straight out of the Kernel API Manual and honestly? it's giving "small function, big scheduling opinions" π
πΈ NAME πΈ
ksz88x3_tc_ets_add β the one where you configure ETS (Enhanced Transmission Selection, yes queen, spell it out) for a port on a KSZ88x3 switch π¦
π SYNOPSIS π
int ksz88x3_tc_ets_add (struct ksz_device *dev , int port , struct
tc_ets_qopt_offload_replace_params *p );
that's the whole vibe. three args, one int back, no cap π
π«Ά ARGUMENTS π«Ά
devβ pointer to the KSZ switch device structure. it's the switch itself, the main character of this whole operation πportβ the port number you're configuring. which port? your port, bestie, you pick πpβ pointer to the offload replace parameters, aka the little bundle that describes the ETS bands and mapping π
π DESCRIPTION π
okay so here's the tea β β the KSZ88x3 rocks two scheduling modes:
- Strict Priority π₯
- Weighted Fair Queuing (WFQ) βοΈ
and both of them have fixed behavior. like, no notes, no knobs, no sliders, periodt:
- no configurable queue-to-priority mapping π
- no weight adjustment in WFQ mode π
so what does this function actually do? it configures the switch to use strict priority mode by clearing the WFQ enable bit for all queues associated with ETS bands π that's it, that's the whole job, and she does it flawlessly.
β οΈ important bestie: if strict priority is not explicitly requested, the switch will default to WFQ mode. so likeβ¦ ask for what you want or the switch picks for you π€·ββοΈ
β RETURN β
0 on success π β or a negative error code on failure π (iykyk, always check the return value, it's the vibe check of syscalls fr fr)
π§ SEE ALSO π§
the whole friend group lives in the kernel file ./drivers/net/dsa/microchip/ksz8.c and they are:
ksz8_ind_write8(9)ksz8_ind_read8(9)ksz879x_get_loopback(9)ksz879x_set_loopback(9)ksz8_r_phy_ctrl(9)ksz8_r_phy_bmcr(9)ksz8_w_phy_ctrl(9)ksz8_w_phy_bmcr(9)ksz88x3_tc_ets_del(9)ksz8_phy_port_link_up(9)ksz8_cpu_port_link_up(9)ksz88x3_drive_strength_write(9)ksz8_parse_drive_strength(9)
go read them too, they're iconic β¨
and that's a wrap on this little manpage date π source: ./drivers/net/dsa/microchip, dated October 2026 β slay, bye bestie, go configure some strict priority ππ
π¦ 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