netfilter: bitwise: only offload boolean operations.
authorJeremy Sowden <jeremy@azazel.net>
Wed, 15 Jan 2020 20:05:55 +0000 (20:05 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 14:52:01 +0000 (15:52 +0100)
commited991d43634b11e759a800850ba9656b5b467a56
tree8b0cb4761e218e1baab88017cfc619383103eb16
parent4d57ca2be146bdb272b57892ec59cd273f9ef3fc
netfilter: bitwise: only offload boolean operations.

Only boolean operations supports offloading, so check the type of the
operation and return an error for other types.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_bitwise.c