'\" t .\" Title: xprt_adjust_cwnd .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "XPRT_ADJUST_CWND" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "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 \fIstruct rpc_xprt * xprt\fR .RS 4 pointer to xprt .RE .PP \fIstruct rpc_task * task\fR .RS 4 recently completed RPC request used to adjust window .RE .PP \fIint result\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