netfilter: nft_hash: add map lookups for hashing operations
authorLaura Garcia Liebana <nevola@gmail.com>
Thu, 10 May 2018 22:14:48 +0000 (00:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 17 May 2018 12:00:52 +0000 (14:00 +0200)
commitb9ccc07e3f31ad8073697982bac014fbceef7ecb
tree6f421c70fc2728464fe2569c8b1b7af8613cccf9
parent978d8f9055c3a7c35db2ac99cd2580b993396e33
netfilter: nft_hash: add map lookups for hashing operations

This patch creates new attributes to accept a map as argument and
then perform the lookup with the generated hash accordingly.

Both current hash functions are supported: Jenkins and Symmetric Hash.

Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_hash.c