diff options
author | Phil Sutter <phil@nwl.cc> | 2020-10-02 15:50:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-10-04 21:08:32 +0200 |
commit | 5f48846daf3321f8a1f8aa99cd6173e3980b7a29 (patch) | |
tree | 2c0ef0d3fbf4beaa4374d2857588192575b64a06 /net/netfilter/nft_bitwise.c | |
parent | netfilter: nfnetlink: place subsys mutexes in distinct lockdep classes (diff) | |
download | wireguard-linux-5f48846daf3321f8a1f8aa99cd6173e3980b7a29.tar.xz wireguard-linux-5f48846daf3321f8a1f8aa99cd6173e3980b7a29.zip |
netfilter: nf_tables: Enable fast nft_cmp for inverted matches
Add a boolean indicating NFT_CMP_NEQ. To include it into the match
decision, it is sufficient to XOR it with the data comparison's result.
While being at it, store the mask that is calculated during expression
init and free the eval routine from having to recalculate it each time.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_bitwise.c')
0 files changed, 0 insertions, 0 deletions