From: Stephen Hemminger Date: Mon, 25 Jan 2010 23:47:50 +0000 (-0800) Subject: tcp_probe: avoid modulus operation and wrap fix X-Git-Tag: v2.6.33-rc6~29^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f81074f86176605bfbfafb9944e27628a4e26ce6;p=pandora-kernel.git tcp_probe: avoid modulus operation and wrap fix By rounding up the buffer size to power of 2, several expensive modulus operations can be avoided. This patch also solves a bug where the gap need when ring gets full was not being accounted for. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- Reading git-diff-tree failed