nft_pipapo_avx2_lookup_4b_4(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nft_pipapo_avx2_lookup_4b_4 β€” from the Kernel API Manual, bestie πŸŽ€

okay so picture this: it's a Tuesday, you're deep in net/netfilter, and you need an AVX2-based lookup for 4 four-bit groups. yeah. that one. this is the page for it, and honestly? it's giving legend behaviour. ✨


🌸 NAME 🌸

nft_pipapo_avx2_lookup_4b_4 β€” literally the AVX2-based lookup for 4 four-bit groups. that's the whole vibe. no cap. πŸ’œ


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸŽ€ ARGUMENTS πŸŽ€

like, every single one of them. here we go, bestie 🫢

  • map β€” the previous match result, and it gets used as the initial bitmap. it's the before picture. πŸ™ˆ
  • fill β€” the destination bitmap, and it's the one getting filled up with the current match result. it's the after picture. πŸ’…
  • f β€” the field, and it's carrying the lookup and mapping tables. main character energy fr fr. πŸ‘‘
  • offset β€” ignore buckets before the given index, and heads up: no bits are filled there. like, none. zero. don't come for that region. πŸ’€
  • pkt β€” packet data, aka a pointer to the input nftables register. πŸ“
  • first β€” if this is the first field, don't source the previous result. fresh start bestie, we're not bringing old baggage into this. 🌈
  • last β€” last field: stop at the first match and return the bit index. we're done, we're leaving, we're not looking back. ✨

🧚 DESCRIPTION 🧚

so, See nft_pipapo_avx2_lookup_4b_2. β€” that's the whole cross-reference, go read that one for the lore. iykyk.

and for the record: this is used for 16-bit fields (i.e. ports). πŸŽ€ ports!! 16-bit!! the way that works!! 😭


πŸ”₯ RETURN πŸ”₯

  • -1 on no match. nothing. nada. we go home empty-handed. πŸ’€
  • rule index of match if last β€” like, you asked for the last one, you get the answer.
  • otherwise, the first long word index to be checked next (i.e. first filled word). it's a little pointer of a return value, showing you where to look next. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the whole group chat, everyone's here, no one got left on read:


and that's the page!! πŸ’– mwah πŸ’–

huge slay sign-off: this one lives in ./net/netfilter and it's dated October 2026, so mark your calendars bestie, this manual page ate and left no crumbs. πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from