Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}