batadv_tp_cwnd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… batadv_tp_cwnd(9) β€” Kernel API Manual, bestie edition πŸŽ€

okay so this is a page straight out of the Kernel API Manual, and we're about to make congestion windows make sense. no cap, this one's short and sweet, and honestly? iconic behavior. ✨


🌸 NAME 🌸

batadv_tp_cwnd β€” literally just compute the new cwnd size 🫢


⭐ SYNOPSIS ⭐

u32 batadv_tp_cwnd (u32 base , u32 increment , u32 min );

(yes bestie, the spacing is exactly like that, we don't touch it, we respect it πŸ‘‘)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • base β€” the base cwnd size value, like, your starting point πŸ’–
  • increment β€” the value you add to base to get the new size. the glow-up amount ✨
  • min β€” minimum cwnd value (usually MSS), the floor so things never get too tiny 😭

🧚 DESCRIPTION 🧚

So what does it actually do? It returns the new cwnd size, and it makes sure that baby does not exceed the Advertised Receiver Window size. that's the vibe check right there πŸ’…

And the way it handles the math? It is wrapped around safely. no sketchy overflow energy, we're being responsible. πŸ”₯

For the full lore, refer to Section 3.1 of RFC5681. iykyk πŸ“–


🌈 RETURN 🌈

The new congestion window size in bytes. that's it, that's the tea β˜•


πŸ’œ SEE ALSO πŸ’œ

okay this list is long and we are NOT skipping a single one, because every single reference is a main character in this story. periodt. πŸ‘‘

Kernel file ./net/batman-adv/tp_meter.c, plus:


ngl bestie, if you're reading all of those in one sitting, hydrate first πŸ“πŸ’€

oky so that's the whole page!! this little gem lives in ./net/batman-adv and the doc is dated October 2026 β€” so yeah, future-flavored knowledge, we love that for us. go forth and window your congestion responsibly, bestie πŸ’–πŸŒΈπŸ«Άβœ¨

πŸ“¦ where this page comes from