From: Eric Dumazet Date: Tue, 10 Jul 2012 19:05:57 +0000 (+0000) Subject: ipv6: optimize ipv6 addresses compares X-Git-Tag: v3.6-rc1~125^2~245 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a203cb33a7dc791b6c0aedf701e70ac00c50cdb;p=pandora-kernel.git ipv6: optimize ipv6 addresses compares On 64 bit arches having efficient unaligned accesses (eg x86_64) we can use long words to reduce number of instructions for free. Joe Perches suggested to change ipv6_masked_addr_cmp() to return a bool instead of 'int', to make sure ipv6_masked_addr_cmp() cannot be used in a sorting function. Signed-off-by: Eric Dumazet Cc: Joe Perches Signed-off-by: David S. Miller --- Reading git-diff-tree failed