nft_pipapo_avx2_lookup_4b_8(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ nft_pipapo_avx2_lookup_4b_8 ✨

okay bestie so this is a page straight out of the Kernel API Manual (section 9, if you're keeping track) and it's all about nft_pipapo_avx2_lookup_4b_8 β€” the AVX2-based lookup for 8 four-bit groups πŸ’… no cap, that's the whole name in the NAME section and we're keeping it verbatim because it's iconic.


🌈 SYNOPSIS 🌈

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

look at her go 😭 seven args, returns an int, absolutely main character energy.


πŸŽ€ ARGUMENTS πŸŽ€

okay so let's meet the cast:

  • map β€” the previous match result, and it gets used as the initial bitmap. it's giving "we already know some stuff, let's not start from scratch" 🫢
  • fill β€” the destination bitmap, aka where the current match result gets written. this one's the empty canvas 🎨
  • f β€” the field, and it's holding the lookup tables and the mapping tables. busy queen πŸ‘‘
  • offset β€” ignore buckets before this given index, and fr fr no bits get filled there. like, don't even look at them πŸ™ˆ
  • pkt β€” the 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, no baggage ✨
  • last β€” last field behavior: stop at the very first match and return the bit index. she's efficient πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the real explanation? see nft_pipapo_avx2_lookup_4b_2 β€” that's the lore, go read it, iykyk πŸ“–

and this particular one is used for 32-bit fields, i.e. IPv4 addresses. yes, that's literally what it says, and yes, it's lowkey a slay 🌸


πŸ’– RETURN πŸ’–

so what does she give back:

  • -1 on no match 😭
  • 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) πŸ‘‘

three possible vibes, one int. she's versatile.

ngl, remember that -1 means no match β€” don't go treating it as a valid index, bestie πŸ’€

⭐ SEE ALSO ⭐

the whole friend group, and we're listing every single one because nobody gets left out 🫢


and that's the whole page, bestie 🧚 this one comes to you from ./net/netfilter, dated October 2026, and it's filed under nft_pipapo_avx2_lookup_4b_8(9) β€” periodt πŸ’œ

πŸ“¦ where this page comes from