nft_pipapo_a...lookup_8b_16(9)
π nft_pipapo_a...lookup_8b_16 (Kernel API Manual, bestie edition)
okay so, welcome to the Kernel API Manual β yes, that's the whole manual name, we're in the kernel docs now, it's giving big-brain energy and honestly? kinda iconic β¨
πΈ NAME πΈ
nft_pipapo_avx2_lookup_8b_16 β the AVX2-based lookup for 16 eight-bit groups. that's it, that's the vibe. she does one thing and she does it fast π
π¦ SYNOPSIS π¦
int nft_pipapo_avx2_lookup_8b_16 (unsigned long *map , unsigned long
*fill , const struct nft_pipapo_field *f , int offset , const u8 *pkt ,
bool first , bool last );
π ARGUMENTS π
mapβ previous match result, used as the initial bitmap. like, the receipts from last time πfillβ destination bitmap that gets filled with the current match result. this one's getting stuffed π«Άfβ the field, containing lookup and mapping tables. the whole main character of the data structure worldoffsetβ ignore buckets before the given index, no bits are filled there. literally doesn't care about anything earlier, boundaries bestie πΈpktβ packet data, a pointer to the input nftables register. the actual tea βfirstβ if this is the first field, don't source the previous result. fresh start energy β¨lastβ last field: stop at the first match and return the bit index. no cap, she peaces out early π
π DESCRIPTION π
See nft_pipapo_avx2_lookup_4b_2. (yeah, go read her sibling, the lore is real π)
This one is used for 128-bit fields (i.e. IPv6 addresses). so if you're out here with a v6 address, this is your girl π¦π
π₯ RETURN π₯
-1on no match, periodt β nothing found, we go home π- the rule index of the match if
last, otherwise the first long word index to be checked next (i.e. the first filled word) π
π SEE ALSO π
Kernel file ./net/netfilter/nft_set_pipapo_avx2.c
and the whole squad, no one left behind:
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_slow(9)nft_pipapo_avx2_estimate(9)pipapo_resmap_init_avx2(9)pipapo_get_avx2(9)nft_pipapo_avx2_lookup(9)
and that's the whole page, bestie π
π this one lives in ./net/netfilter and the version/date stamp on it is October 2026 β so yeah, certified, dated, and absolutely slaying. go forth and look up those 16 eight-bit groups π§β¨π
π¦ 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