nft_pipapo_a...lookup_4b_12(9)
π
nft_pipapo_avx2_lookup_4b_12 β NAME β¨
okay so bestie, this is nft_pipapo_avx2_lookup_4b_12 from the Kernel API Manual, and it is literally the AVX2-based lookup for 12 four-bit groups. twelve. four-bit. groups. she's doing the absolute most and we love her for it π
πΈ SYNOPSIS πΈ
int nft_pipapo_avx2_lookup_4b_12 (unsigned long *map , unsigned long *fill , const struct nft_pipapo_field *f , int offset , const u8 *pkt , bool first , bool last );
like, seven args, no notes, she's an icon and she knows it π«Ά
β¨ ARGUMENTS β¨
mapβ the previous match result, used as the initial bitmap. think of it as the receipts from last time πfillβ destination bitmap that gets filled up with the current match result. she's the empty cup, pour the results in πfβ the field, containing lookup and mapping tables. the whole vibe lives in hereoffsetβ ignore buckets before the given index; no bits are filled there. skip the intro, get to the good part πpktβ packet data, and it's 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, no baggage πlastβ last field: stop at the first match and return the bit index. she said i'm done here, periodt π
π¦ DESCRIPTION π¦
see nft_pipapo_avx2_lookup_4b_2. that's the whole lore drop, go read her sister's page iykyk π
this one is used for 48-bit fields (i.e. MAC addresses / EUI-48). forty-eight bits of main character energy, no cap π
π RETURN π
-1on no match π- rule index of match if
lastπ₯ - otherwise, the first long word index to be checked next (i.e. first filled word) β
π SEE ALSO π
- Kernel file
./net/netfilter/nft_set_pipapo_avx2.c 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_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),nft_pipapo_avx2_lookup(9)β the whole friend group, go say hi π§
okay that's the page bestie, mwah π she lives in ./net/netfilter, dated October 2026, and the manual label on her birth certificate is nft_pipapo_a...lookup_4b_12(9) β that's it, that's the whole thing, slay π
β¨
π¦ 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