STRUCT CODEL_PARAMS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct codel_params(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, and yes, we're reading kernel docs together, it's giving study date energy πŸ’…


✨ NAME ✨

struct codel_params β€” literally just a little struct that contains codel parameters πŸŽ€ no cap, that's the whole vibe.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct codel_params {
    codel_time_t target;
    codel_time_t ce_threshold;
    codel_time_t interval;
    u32 mtu;
    bool ecn;
    u8 ce_threshold_selector;
    u8 ce_threshold_mask;
 };

look at her. seven fields. absolute main character energy πŸ‘‘


πŸ’– Members πŸ’–

  • target β€” the target queue size, measured in time units ⏱️ (yes bestie, time, not bytes β€” iykyk)
  • ce_threshold β€” the threshold for marking packets with ECN CE, lowkey the bouncer at the club deciding who gets marked πŸšͺ✨
  • interval β€” the width of the moving time window, like a lil sliding window of time, so cozy πŸͺŸ
  • mtu β€” the device mtu, or the minimal queue backlog in bytes. two jobs, one field, she's versatile 🫢
  • ecn β€” is Explicit Congestion Notification enabled? a whole bool just to answer that πŸ™ˆ
  • ce_threshold_selector β€” apply ce_threshold to packets matching this value in the diffserv/ECN byte of the IP header 🎯 like a very specific little filter
  • ce_threshold_mask β€” the mask to apply to the ce_threshold_selector comparison 🎭 masking, but make it networking

🌈 SEE ALSO 🌈

  • Kernel file ./include/net/codel.h
  • struct codel_vars(9)
  • struct codel_stats(9)

go read those too, they're the rest of the friend group fr fr 🫢


πŸ’€ reminder: ce_threshold_selector and ce_threshold_mask work together β€” one picks, one masks. don't use just one and expect magic, bestie, that's not how the comparison works.

and that's the whole page, babes πŸ’œ this lil gem lives under ./include/net and the manual says October 2026 β€” so like, see you in the future?? 🌸 signing off, struct codel_params(9), mwah πŸ’…πŸŽ€

πŸ“¦ where this page comes from