From: Eric Dumazet Date: Mon, 18 Jul 2011 03:16:33 +0000 (+0000) Subject: ipv4: save cpu cycles from check_leaf() X-Git-Tag: v3.1-rc1~316^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c74501f76360ce6f410730b9b5e5976f38e8504;p=pandora-kernel.git ipv4: save cpu cycles from check_leaf() Compiler is not smart enough to avoid double BSWAP instructions in ntohl(inet_make_mask(plen)). Lets cache this value in struct leaf_info, (fill a hole on 64bit arches) With route cache disabled, this saves ~2% of cpu in udpflood bench on x86_64 machine. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed