nft_pipapo_avx2_lookup_8b_2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 nft_pipapo_avx2_lookup_8b_2 β€” NAME πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ and lemme introduce you to nft_pipapo_avx2_lookup_8b_2 β€” the AVX2-based lookup for 2 eight-bit groups. that's it, that's the whole vibe. she does lookups, she does them with AVX2, she handles two eight-bit groups at a time, and she absolutely ate πŸŽ€


✨ SYNOPSIS ✨

int nft_pipapo_avx2_lookup_8b_2 (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. seven whole parameters. she's got range 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • map β€” the previous match result, and she's used as the initial bitmap. think of it as the receipts from last time, still valid πŸ‘‘
  • fill β€” the destination bitmap, aka where the current match result gets poured into. she's the empty cup, bestie πŸ“
  • f β€” the field itself, and bestie she is packed: she contains the lookup and mapping tables 🌈
  • offset β€” ignore every bucket before this index, and no bits get filled in there. like, we're not even looking at those, periodt πŸ™ˆ
  • pkt β€” the packet data, aka a pointer to the input nftables register. the actual material we're working with πŸ’–
  • first β€” if this is the very first field, do not source the previous result. fresh start energy, main character behavior ⭐
  • last β€” last field!! stop at the first match and return that bit index. she's done, she's out, she's closing the group chat πŸ’€

🧚 DESCRIPTION 🧚

okay so the actual explanation: see nft_pipapo_avx2_lookup_4b_2. that's the reference, go read her, she's iconic πŸ’…

this one right here is used for 16-bit fields β€” i.e. ports πŸ‘‘ and that's genuinely the whole description, no cap.


πŸ”₯ RETURN πŸ”₯

  • -1 on no match 😭 (she looked, she found nothing, it happens)
  • the rule index of the match if last is set πŸŽ‰
  • otherwise, the first long word index to be checked next β€” i.e. the first filled word β€” so you know where to look next, iykyk 🌸

πŸ’œ SEE ALSO πŸ’œ

the whole friend group, honestly 🫢✨


aaaand that's the page!! this one lives in ./net/netfilter, dated October 2026, and the header up top says nft_pipapo_avx2_lookup_8b_2(9) β€” the full manual name is the Kernel API Manual, in case you were wondering πŸ’– bye bestie, go match some ports πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from