Commit 321fb991 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

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: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ef59febe
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment