nft_pipapo_a...lookup_4b_32(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ 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:

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


ngl this whole page came from ./net/netfilter, dated October 2026, and the page title got so long it literally got cut off to nft_pipapo_a...lookup_4b_32(9) β€” a true icon, we stan a truncated queen πŸ’–βœ¨πŸŽ€

k bye bestie, happy hashing πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from