]> 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)
commit416e8249dbfdf6ca34cde31473f297455e809789
treece2d9f8cf7520b14bfd302248420f3069f232299
parenteb37f9b1bed1ef79251d7bc3aeffb266a0dbe2e7
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