nft_pipapo_avx2_lookup_8b_6(9)
π nft_pipapo_avx2_lookup_8b_6(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is nft_pipapo_avx2_lookup_8b_6, and no cap, she is that girl. We're talking AVX2-based lookup for 6 eight-bit groups. Six of them. Eight bits each. AVX2 doing the absolute most. π
πΈ NAME πΈ
nft_pipapo_avx2_lookup_8b_6 β AVX2-based lookup for 6 eight-bit groups, and yes she serves cunt while doing it π
β¨ SYNOPSIS β¨
int nft_pipapo_avx2_lookup_8b_6 (unsigned long *map , unsigned long
*fill , const struct nft_pipapo_field *f , int offset , const u8 *pkt ,
bool first , bool last );
like, look at that signature. the way that it's just a function returning an int and taking seven whole arguments? iconic. obsessed. π«Ά
π¦ ARGUMENTS π¦
get comfy, bestie, we're meeting the whole cast:
mapβ previous match result, used as the initial bitmap. she's giving "we already knew this from before" energy πfillβ destination bitmap that gets filled with the current match result. this is where the new tea gets poured βfβ the field, containing the lookup and mapping tables. literally the main character's dressing room πoffsetβ ignore buckets before the given index, and no bits are filled there. like skipping the boring part of the group chat πpktβ packet data, pointer to the input nftables register. the raw material, the slay source π¦firstβ if this is the first field, don't source the previous result. first-field energy fr fr, no hand-me-downs β¨lastβ last field: stop at the first match and return the bit index. she's the finale, she doesn't linger π
π DESCRIPTION π
see nft_pipapo_avx2_lookup_4b_2. that's the whole vibe check β the lore lives over there π
this one is used for 48-bit fields (i.e. MAC addresses/EUI-48). six groups of eight bits, 48 bits total, math is mathing and she ate π₯
π RETURN π
-1on no match π- the rule index of match if
lastβ she found her moment and she's pointing right at it π - otherwise, the first long word index to be checked next (i.e. first filled word) β like a "continue from here" breadcrumb π
lowkey important: those last two are different things depending on whether last is set. keep track, bestie, don't mix them up π
π§ SEE ALSO π§
the whole friend group, linked and everything:
- 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_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_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)
go read them all, iykyk πβ¨
and that's the post! π this absolute baddie of a page comes to you from ./net/netfilter, dated October 2026, and she's filed under nft_pipapo_avx2_lookup_8b_6(9) β so remember her name, bestie, because she is so that girl ππ¦βπ
π¦ 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