[PATCH libnftnl v3 0/5] bitwise: support for boolean operations with variable RHS operands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hitherto, the kernel has required that AND, OR and XOR operations be
converted in user space to mask-and-xor operations on one register and
two immediate values.  Now, however, it has support for performing these
operations directly on one register and an immediate value, or on two
registers.  This patch-set makes this new functionality available to
user space.

* Patches 1-3 implement the new operations.
* Patches 4-5 refactor the existing bitwise tests and add new ones.

Changes since v2

  * The patches adding support for keeping track of the bit-length of
    boolean expressions in the kernel are no longer needed and have been
    dropped.

Changes since v1

  * Patches were added support for keeping track of the bit-length of
    boolean expressions in the kernel.
  * In v1, boolean operations were still converted to mask-and-xor form,
    but the mask and xor values were allowed to be passed in registers.

Jeremy Sowden (5):
  include: add new bitwise boolean attributes to nf_tables.h
  expr: bitwise: rename some boolean operation functions
  expr: bitwise: add support for kernel space AND, OR and XOR operations
  tests: bitwise: refactor shift tests
  tests: bitwise: add tests for new boolean operations

 include/libnftnl/expr.h             |   1 +
 include/linux/netfilter/nf_tables.h |  19 ++-
 src/expr/bitwise.c                  |  69 ++++++++-
 tests/nft-expr_bitwise-test.c       | 220 ++++++++++++++++------------
 4 files changed, 210 insertions(+), 99 deletions(-)

-- 
2.39.2




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux