]> git.baikalelectronics.ru Git - kernel.git/commit
dccp ccid-2: Share TCP's minimum RTO code
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Sun, 29 Aug 2010 19:23:13 +0000 (19:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2010 20:45:27 +0000 (13:45 -0700)
commit6f785b36dcb933085d8cea257c8ee347768b9d0c
treec0ac7dc930a8de315083ec3882ff78a325747e70
parenta166c524f8c4853dfdfb67f74f3bbafc82612a6b
dccp ccid-2: Share TCP's minimum RTO code

Using a fixed RTO_MIN of 0.2 seconds was found to cause problems for CCID-2
over 802.11g: at least once per session there was a spurious timeout. It
helped to then increase the the value of RTO_MIN over this link.

Since the problem is the same as in TCP, this patch makes the solution from
commit "48983537335c191587876d027a1d85a2a1ffde36"
       "[TCP]: Allow minimum RTO to be configurable via routing metrics."
available to DCCP.

This avoids reinventing the wheel, so that e.g. the following works in the
expected way now also for CCID-2:

> ip route change 10.0.0.2 rto_min 800 dev ath0

Luckily this useful rto_min function was recently moved to net/tcp.h,
which simplifies sharing code originating from TCP.

Documentation also updated (plus minor whitespace fixes).

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/dccp.txt
net/dccp/ccids/ccid2.c