rpcrdma_reset_cwnd(9)
π rpcrdma_reset_cwnd(9) π
okay so this is a page from the Kernel API Manual, bestie, and it's about one tiny function that does one tiny thing but like... an important tiny thing, y'know? π
β¨ NAME β¨
rpcrdma_reset_cwnd β reset the xprt's congestion window π¦
like, that's literally it. that's the whole job. resetting the congestion window. slay.
πΈ SYNOPSIS πΈ
void rpcrdma_reset_cwnd (struct rpcrdma_xprt *r_xprt );
no return value, no drama, it just goes in and does the thing π
π«Ά ARGUMENTS π«Ά
r_xprtβ the controlling transport instance. like, this is the one that's in charge, the main character of this whole operation π
π§ DESCRIPTION π§
so here's the vibe: this function prepares r_xprt for the next connection by reinitializing its credit grant to one. one! a single credit! iconic minimalism honestly.
and if you're sitting there like "bestie, why one?" β the manual points you at RFC 8166, Section 3.3.3, so go read that, iykyk πβ¨
no cap, that's the entire description. it's a small function with a small job and it does it flawlessly.
π₯ SEE ALSO π₯
Kernel file ./net/sunrpc/xprtrdma/rpc_rdma.c β that's where the magic lives, go look π
rpcrdma_set_max_header_sizes(9)rpcrdma_sendctx_unmap(9)rpcrdma_prepare_send_sges(9)rpcrdma_marshal_req(9)rpcrdma_inline_fixup(9)rpcrdma_unpin_rqst(9)rpcrdma_complete_rqst(9)rpcrdma_reply_handler(9)
like a whole little friend group of rpcrdma functions, and honestly? obsessed. go read them all, they're all valid π
ngl this one is short but it's doing exactly what it says on the tin, and there's nothing more attractive than a function that's honest about itself π
and that's the whole page!! brought to you straight out of ./net/sunrpc/xprtrdma, dated October 2026 β screenshot it, frame it, put it on your wall, it's giving kernel lore πβπ
π¦ 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