nft_pipapo_a...lookup_8b_16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ nft_pipapo_a...lookup_8b_16 (Kernel API Manual, bestie edition)

okay so, welcome to the Kernel API Manual β€” yes, that's the whole manual name, we're in the kernel docs now, it's giving big-brain energy and honestly? kinda iconic ✨

🌸 NAME 🌸

nft_pipapo_avx2_lookup_8b_16 β€” the AVX2-based lookup for 16 eight-bit groups. that's it, that's the vibe. she does one thing and she does it fast πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int nft_pipapo_avx2_lookup_8b_16 (unsigned long *map , unsigned long
*fill , const struct nft_pipapo_field *f , int offset , const u8 *pkt ,
bool first , bool last );

πŸŽ€ ARGUMENTS πŸŽ€

  • map β€” previous match result, used as the initial bitmap. like, the receipts from last time πŸ’–
  • fill β€” destination bitmap that gets filled with the current match result. this one's getting stuffed 🫢
  • f β€” the field, containing lookup and mapping tables. the whole main character of the data structure world
  • offset β€” ignore buckets before the given index, no bits are filled there. literally doesn't care about anything earlier, boundaries bestie 🌸
  • pkt β€” packet data, 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 ✨
  • last β€” last field: stop at the first match and return the bit index. no cap, she peaces out early πŸ’€

πŸ‘‘ DESCRIPTION πŸ‘‘

See nft_pipapo_avx2_lookup_4b_2. (yeah, go read her sibling, the lore is real 😭)

This one is used for 128-bit fields (i.e. IPv6 addresses). so if you're out here with a v6 address, this is your girl πŸ¦‹πŸ’–


πŸ”₯ RETURN πŸ”₯

  • -1 on no match, periodt β€” nothing found, we go home πŸ˜”
  • the rule index of the match if last, otherwise the first long word index to be checked next (i.e. the first filled word) 🌟

🌈 SEE ALSO 🌈

Kernel file ./net/netfilter/nft_set_pipapo_avx2.c

and the whole squad, no one left behind:


and that's the whole page, bestie πŸ’…πŸ’– this one lives in ./net/netfilter and the version/date stamp on it is October 2026 β€” so yeah, certified, dated, and absolutely slaying. go forth and look up those 16 eight-bit groups πŸ§šβœ¨πŸ“

πŸ“¦ where this page comes from