diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2020-03-07 19:52:34 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-15 17:27:43 +0300 |
commit | bf3e58392394c8ead0441efe0035abbfcaf472a2 (patch) | |
tree | 14c111b4736bb2fe0386f7818da3b3c9471bda01 /net/netfilter/utils.c | |
parent | 4051f43116cdc7dc4df729d4ef80d1ac46a1297f (diff) | |
download | linux-bf3e58392394c8ead0441efe0035abbfcaf472a2.tar.xz |
nft_set_pipapo: Prepare for vectorised implementation: alignment
SIMD vector extension sets require stricter alignment than native
instruction sets to operate efficiently (AVX, NEON) or for some
instructions to work at all (AltiVec).
Provide facilities to define arbitrary alignment for lookup tables
and scratch maps. By defining byte alignment with NFT_PIPAPO_ALIGN,
lt_aligned and scratch_aligned pointers become available.
Additional headroom is allocated, and pointers to the possibly
unaligned, originally allocated areas are kept so that they can
be freed.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/utils.c')
0 files changed, 0 insertions, 0 deletions