'\" t .\" Title: xprt_adjust_cwnd .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "XPRT_ADJUST_CWND" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" xprt_adjust_cwnd \- adjust transport congestion window .SH "SYNOPSIS" .HP \w'void\ xprt_adjust_cwnd('u .BI "void xprt_adjust_cwnd(struct\ rpc_xprt\ *\ " "xprt" ", struct\ rpc_task\ *\ " "task" ", int\ " "result" ");" .SH "ARGUMENTS" .PP \fIxprt\fR .RS 4 pointer to xprt .RE .PP \fItask\fR .RS 4 recently completed RPC request used to adjust window .RE .PP \fIresult\fR .RS 4 result code of completed RPC request .RE .SH "DESCRIPTION" .PP The transport code maintains an estimate on the maximum number of out\- standing RPC requests, using a smoothed version of the congestion avoidance implemented in 44BSD\&. This is basically the Van Jacobson congestion algorithm: If a retransmit occurs, the congestion window is halved; otherwise, it is incremented by 1/cwnd when .PP \- a reply is received and \- a full number of requests are outstanding and \- the congestion window hasn\*(Aqt been updated recently\&. .SH "COPYRIGHT" .br