ksz88x3_tc_ets_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

  1. Strict Priority πŸ”₯
  2. 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:

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