nft_pipapo_avx2_lookup(9)
π nft_pipapo_avx2_lookup(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to the nft_pipapo_avx2_lookup page from the Kernel API Manual β the whole thing lives in the kernel tree under ./net/netfilter, and yep, it's dated October 2026. Buckle up, this one's short but it's doing something. β¨
πΈ NAME
nft_pipapo_avx2_lookup β the dataplane frontend for the AVX2 implementation. that's it, that's the vibe. π
π¦ SYNOPSIS
const struct nft_set_ext * nft_pipapo_avx2_lookup (const struct net *net
, const struct nft_set *set , const u32 *key );
literally the whole signature, no cap. three args, returns a pointer, we move. π
β¨ ARGUMENTS
netβ the network namespace. the whole little world this lookup happens in. πsetβ the nftables API set representation. the collection we're digging through. ποΈkeyβ the nftables API element representation containing key data. the thing we're hunting for. π
π₯ DESCRIPTION
so. this function is called from the data path β like, the hot path, main character energy, no time to waste. πββοΈπ¨
what it does: it searches for an element matching the given key in the current active copy, and here's the fun part β it uses the AVX2 routines if the FPU is usable. if the FPU is not usable? it doesn't panic, it doesn't cry (well, maybe a little), it just falls back to the generic implementation of the algorithm. iconic, flexible, resilient. π«Ά
bestie note: it's only ever looking in the current active copy β that's the detail, don't lose it. π
β RETURN
it hands you back an nftables API extension pointer, or NULL if there's no match. that's the whole deal. if you get NULL, it simply wasn't the one. π
π§ SEE ALSO
the source, first of all:
- Kernel file
./net/netfilter/nft_set_pipapo_avx2.cπ
and then the whole friend group β every single one of these:
nft_pipapo_avx2_prepare(9)nft_pipapo_avx2_fill(9)nft_pipapo_avx2_refill(9)nft_pipapo_avx2_lookup_4b_2(9)nft_pipapo_avx2_lookup_4b_4(9)nft_pipapo_avx2_lookup_4b_8(9)nft_pipapo_avx2_lookup_4b_12(9)nft_pipapo_avx2_lookup_4b_32(9)nft_pipapo_avx2_lookup_8b_1(9)nft_pipapo_avx2_lookup_8b_2(9)nft_pipapo_avx2_lookup_8b_4(9)nft_pipapo_avx2_lookup_8b_6(9)nft_pipapo_avx2_lookup_8b_16(9)nft_pipapo_avx2_lookup_slow(9)nft_pipapo_avx2_estimate(9)pipapo_resmap_init_avx2(9)pipapo_get_avx2(9)
like, the entire 4-byte and 8-byte lookup squad plus the slow path and the setup crew. iykyk. π
anyway that's the page π β sourced from ./net/netfilter, Kernel API Manual, October 2026, and that's the nft_pipapo_avx2_lookup(9) sign-off, mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms