]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: provide len to obj_hashfn
authorPatrick McHardy <kaber@trash.net>
Wed, 25 Mar 2015 13:07:45 +0000 (13:07 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Mar 2015 16:18:33 +0000 (17:18 +0100)
commit783cd1130105e9c318b419dd07c2c3c193ab9f6e
tree63ebd033f56bab0eb9f6fe3ebda773b87ddda1ea
parent95e4faf2934b1a5b6dcb11241d6cb63ab44237bf
rhashtable: provide len to obj_hashfn

nftables sets will be converted to use so called setextensions, moving
the key to a non-fixed position. To hash it, the obj_hashfn must be used,
however it so far doesn't receive the length parameter.

Pass the key length to obj_hashfn() and convert existing users.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/rhashtable.h
lib/rhashtable.c
net/netlink/af_netlink.c