]> err.no Git - linux-2.6/commit
[DCCP] tfrc: Identify TFRC table limits and simplify code
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Sun, 3 Dec 2006 16:52:41 +0000 (14:52 -0200)
committerArnaldo Carvalho de Melo <acme@mandriva.com>
Sun, 3 Dec 2006 16:52:41 +0000 (14:52 -0200)
commit006042d7e1a0aae35c9dd9eb8ec71fa379679adb
treee0f7a4f351fbf147bd452ff45061245fd985f27d
parent8d0086adac0041de66b5f41b77eec0d8d239e16c
[DCCP] tfrc: Identify TFRC table limits and simplify code

This
 * adds documentation about the lowest resolution that is possible within
   the bounds of the current lookup table
 * defines a constant TFRC_SMALLEST_P which defines this resolution
 * issues a warning if a given value of p is below resolution
 * combines two previously adjacent if-blocks of nearly identical
   structure into one

This patch does not change the algorithm as such.

Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Acked-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
net/dccp/ccids/lib/tfrc_equation.c