]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: Implement fast bitwise expression
authorPhil Sutter <phil@nwl.cc>
Thu, 1 Oct 2020 16:57:44 +0000 (18:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 4 Oct 2020 19:08:33 +0000 (21:08 +0200)
commit63130c43b933e09b4f17ecce8eed9862a09967d5
treebfc2834ea3fe446b5bf8c59082afba2e8836b25c
parent956dc817b07ea39ca42f986e9a889acafa53f746
netfilter: nf_tables: Implement fast bitwise expression

A typical use of bitwise expression is to mask out parts of an IP
address when matching on the network part only. Optimize for this common
use with a fast variant for NFT_BITWISE_BOOL-type expressions operating
on 32bit-sized values.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables_core.h
net/netfilter/nf_tables_core.c
net/netfilter/nft_bitwise.c