]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - drivers/net/vxlan.c
vxlan: fix byte order in hash function
[can-eth-gw-linux.git] / drivers / net / vxlan.c
index 92150c0cf4d9a3993cf25b96edb227696f3d8a6d..882a041d75949358b1fce341456e6f528f342428 100644 (file)
@@ -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);
 }