From: stephen hemminger Date: Tue, 9 Oct 2012 20:35:47 +0000 (+0000) Subject: vxlan: fix byte order in hash function X-Git-Tag: v3.7-rc1~25^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=321fb991399bd7b156f8b15a8acfa0c8622e3c68;p=profile%2Fivi%2Fkernel-x86-ivi.git vxlan: fix byte order in hash function Shift was wrong direction causing packets to hash based on other parts of the ethernet header, not the address. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 92150c0..882a041 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -228,9 +228,9 @@ static u32 eth_hash(const unsigned char *addr) /* only want 6 bytes */ #ifdef __BIG_ENDIAN - value <<= 16; -#else value >>= 16; +#else + value <<= 16; #endif return hash_64(value, FDB_HASH_BITS); }