netfilter: nft_set_hash: fix lookups with fixed size hash on big endian
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 25 Feb 2019 13:13:41 +0000 (14:13 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Feb 2019 10:08:31 +0000 (11:08 +0100)
commit3b02b0adc242a72b5e46019b6a9e4f84823592f6
treee91829c558cff3db252717d80c4c5161f62c93af
parent35acfbab6e5b229ea3c4807d1949c3ab8fda9818
netfilter: nft_set_hash: fix lookups with fixed size hash on big endian

Call jhash_1word() for the 4-bytes key case from the insertion and
deactivation path, otherwise big endian arch set lookups fail.

Fixes: 446a8268b7f5 ("netfilter: nft_set_hash: add lookup variant for fixed size hashtable")
Reported-by: Florian Westphal <fw@strlen.de>
Tested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_hash.c