Re: [PATCH] Update jhash.h with the new version of Jenkins' hash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jozsef Kadlecsik wrote:
The patch replaces the lookup2() implementation of the 'jhash*' functions with that of lookup3().

Should the lookup3() be added to rather than replacing lookup2()? In case some hardware vendor used the lookup2() version for weird things like flow classification.

 /* The golden ration: an arbitrary value */
-#define JHASH_GOLDEN_RATIO	0x9e3779b9
+#define JHASH_GOLDEN_RATIO	0xdeadbeef

The #define seems mis-named now.

-scott
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux