projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef59feb
)
vxlan: fix byte order in hash function
author
stephen hemminger
<shemminger@vyatta.com>
Tue, 9 Oct 2012 20:35:47 +0000
(20:35 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 11 Oct 2012 02:41:21 +0000
(22:41 -0400)
Shift was wrong direction causing packets to hash based on
other parts of the ethernet header, not the address.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/vxlan.c
b/drivers/net/vxlan.c
index 92150c0cf4d9a3993cf25b96edb227696f3d8a6d..882a041d75949358b1fce341456e6f528f342428 100644
(file)
--- 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);
}