nft_pipapo_a...lookup_4b_32(9)
π NAME π
nft_pipapo_avx2_lookup_4b_32 β the AVX2-based lookup for 32 four-bit groups, and yes bestie it's exactly as extra as it sounds π
Oh and hi, welcome to the Kernel API Manual β that's the manual we're in, no cap β¨
π¦ SYNOPSIS π¦
int nft_pipapo_avx2_lookup_4b_32 (unsigned long *map , unsigned long
*fill , const struct nft_pipapo_field *f , int offset , const u8 *pkt ,
bool first , bool last );
πΈ ARGUMENTS πΈ
Okay so here's the whole cast, main character energy each one π«Ά
mapβ the previous match result, used as the initial bitmap. It's giving the receipts from last time πfillβ the destination bitmap, and it's literally where we drop the current match result. This one gets filled, periodt.fβ the field, and it's holding the lookup and mapping tables like the group chat admin it is πoffsetβ ignore buckets before this given index, and no bits get filled there. Lowkey a do-not-disturb sign πpktβ the packet data, aka 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, clean slate, new me β¨lastβ last field behavior: stop at the first match and return the bit index. We're done here, no scrolling π
π DESCRIPTION π
See nft_pipapo_avx2_lookup_4b_2. That's it, that's the reference β go read your sibling's page bestie π
This one is used for 128-bit fields (i.e. IPv6 addresses). Sixteen bytes of pure vibe π
π₯ RETURN π₯
So like, three possible outcomes and you gotta know which one you got:
-1on no match (we hate to see it π)- the rule index of match if it's
last - otherwise, the first long word index to be checked next (i.e. the first filled word) β that's your next destination, go go go π₯
β SEE ALSO β
The kernel file lives right here: ./net/netfilter/nft_set_pipapo_avx2.c β go read the source, it's iconic π
And the whole friend group, alphabetically-adjacent and thriving:
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_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)nft_pipapo_avx2_lookup(9)
ngl this whole page came from./net/netfilter, dated October 2026, and the page title got so long it literally got cut off tonft_pipapo_a...lookup_4b_32(9)β a true icon, we stan a truncated queen πβ¨π
k bye bestie, happy hashing π¦π
π¦ 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