diff options
author | 2016-08-11 18:02:07 +0200 | |
---|---|---|
committer | 2016-08-12 14:16:04 +0200 | |
commit | cb1b69b0b15b2897daeba8674c14c85a23a3347f (patch) | |
tree | 697f80cc7ac91f39cf5eeb2df4e50eeae695000c /net/netfilter/Kconfig | |
parent | netfilter: nf_tables: rename set implementations (diff) | |
download | linux-cb1b69b0b15b2897daeba8674c14c85a23a3347f.tar.gz linux-cb1b69b0b15b2897daeba8674c14c85a23a3347f.tar.bz2 linux-cb1b69b0b15b2897daeba8674c14c85a23a3347f.zip |
netfilter: nf_tables: add hash expression
This patch adds a new hash expression, this provides jhash support but
this can be extended to support for other hash functions. The modulus
and seed already comes embedded into this new expression.
Use case example:
... meta mark set hash ip saddr mod 10
Signed-off-by: Laura Garcia Liebana <nevola@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/Kconfig')
-rw-r--r-- | net/netfilter/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig index e5740e108a0b..9cfaa00c79b2 100644 --- a/net/netfilter/Kconfig +++ b/net/netfilter/Kconfig @@ -563,6 +563,12 @@ config NFT_COMPAT x_tables match/target extensions over the nf_tables framework. +config NFT_HASH + tristate "Netfilter nf_tables hash module" + help + This option adds the "hash" expression that you can use to perform + a hash operation on registers. + if NF_TABLES_NETDEV config NF_DUP_NETDEV |