From: Roland Dreier Date: Sat, 16 Apr 2005 22:26:06 +0000 (-0700) Subject: [PATCH] IPoIB: fix static rate calculation X-Git-Tag: v2.6.12-rc3~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6ded99cbbbfef2cef537d717ad61d2f77f4dfd6;p=pandora-kernel.git [PATCH] IPoIB: fix static rate calculation Correct and simplify calculation of static rate. We need to round up the quotient of (local_rate - path_rate) / path_rate. To round up we add (path_rate - 1) to the numerator, so the quotient simplifies to (local_rate - 1) / path_rate. No idea how I came up with the old formula. Signed-off-by: Roland Dreier Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed