X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Finet_sock.h;h=89cd011edb998402912543b4486309055f267b8f;hb=d0478d0ad7a58f36afa03e57afe14955c2943466;hp=70013c5f4e59aba0d83f7e99df4da8898d94b05f;hpb=4bc3e17cce5662092703b02ee7b030047b1c99b3;p=linux-2.6 diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index 70013c5f4e..89cd011edb 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h @@ -175,7 +175,8 @@ extern void build_ehash_secret(void); static inline unsigned int inet_ehashfn(const __be32 laddr, const __u16 lport, const __be32 faddr, const __be16 fport) { - return jhash_2words((__force __u32) laddr ^ (__force __u32) faddr, + return jhash_3words((__force __u32) laddr, + (__force __u32) faddr, ((__u32) lport) << 16 | (__force __u32)fport, inet_ehash_secret); }