nft_pipapo_avx2_lookup_8b_6(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

  • -1 on 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:

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