batman-adv: Use common Jenkins Hash implementation
authorSven Eckelmann <sven@narfation.org>
Sun, 1 Mar 2015 08:46:18 +0000 (09:46 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sun, 7 Jun 2015 15:07:17 +0000 (17:07 +0200)
commit36fd61cb80fcf07c20230face1a0f6e1505c8322
treece2d9f8cf7520b14bfd302248420f3069f232299
parentd691f9e8d4405c334aa10d556e73c8bf44cb0e01
batman-adv: Use common Jenkins Hash implementation

An unoptimized version of the Jenkins one-at-a-time hash function is used
and partially copied all over the code wherever an hashtable is used.
Instead the optimized version shared between the whole kernel should be
used to reduce code duplication and use better optimized code.

Only the DAT code must use the old implementation because it is used as
distributed hash function which has to be common for all nodes.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/distributed-arp-table.c
net/batman-adv/hash.h
net/batman-adv/main.h
net/batman-adv/network-coding.c
net/batman-adv/originator.h
net/batman-adv/translation-table.c