Skip to content

bitwise: support for passing mask and xor via registers

Jeremy Sowden netfilter-devel 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3tests: bitwise: fix error message.tests/nft-expr_bitwise-test.c+1 -10 replies
2/3include: update nf_tables.h.include/linux/netfilter/nf_tables.h+4 -00 replies
3/3bitwise: add support for passing mask and xor via registers.include/libnftnl/expr.h src/expr/bitwise.c tests/nft-expr_bitwise-test.c+102 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH libnftnl 0/3] bitwise: support for passing mask and xor via registers

The kernel supports passing mask and xor values for bitwise boolean operations via registers. These are mutually exclusive with the existing data attributes: e.g., setting both NFTA_EXPR_BITWISE_MASK and NFTA_EXPR_BITWISE_MREG is an error. Add support to libnftnl.

The first patch fixes a typo, the second updates the UAPI header and the last contains the implementation.

Jeremy Sowden (3):
tests: bitwise: fix error message.
include: update nf_tables.h.
bitwise: add support for passing mask and xor via registers.

 include/libnftnl/expr.h             |  2 +
 include/linux/netfilter/nf_tables.h |  4 ++
 src/expr/bitwise.c                  | 60 ++++++++++++++++++++++---
 tests/nft-expr_bitwise-test.c       | 70 +++++++++++++++++++----------
 4 files changed, 106 insertions(+), 30 deletions(-)
Signature · 1 line
2.25.0