]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafa443daca6a6b9913c8c37060c8c8709a02054f
treece2d9f8cf7520b14bfd302248420f3069f232299
parentdf05c1aab1ebf3f6f7449cc212effe4131be6e66
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