nft_pipapo_avx2_lookup_slow(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nft_pipapo_avx2_lookup_slow(9)

okay so bestie, welcome to the Kernel API Manual β€” yes we're in the kernel today, put your hair up, we're doing netfilter πŸ’–


✨ NAME ✨

nft_pipapo_avx2_lookup_slow β€” the fallback function for when the field sizes are being uncommon and honestly a little extra πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

int nft_pipapo_avx2_lookup_slow (const struct nft_pipapo_match *mdata ,
unsigned long *map , unsigned long *fill , const struct nft_pipapo_field
*f , const u8 *pkt , bool first , bool last );

like, look at all those parameters. she's thorough. she's committed. we love that for her 🫢


🌸 ARGUMENTS 🌸

  • mdata β€” the matching data, mapping table included, she comes as a package deal πŸ’…
  • map β€” the previous match result, and we're using it as our initial bitmap, so it's giving "starting from what we already know" energy
  • fill β€” the destination bitmap, the one getting filled up with the current match result, main character of the output honestly ✨
  • f β€” the field, and she's carrying both the lookup tables and the mapping tables, so many bags 😭
  • pkt β€” the packet data, aka a pointer to the input nftables register, very "here's where the info lives" of it
  • first β€” so like, if this is the first field, do NOT source the previous result. that's the rule, no cap
  • last β€” last field behavior: stop at the very first match and return that bit index. early exit queen πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the tea β˜•: this function should never be called. Like, ever. But she exists anyway, because the universe said "what if the field size doesn't match any of the known data types" and somebody had to answer the phone πŸ’€

So she's here as the fallback for exactly that situation. Just know that her matching rate is substantially lower than the AVX2 routines β€” so she's not the fastest sister at the function party, but she shows up and she does the job πŸ™ˆ


🌈 RETURN 🌈

  • -1 β€” no match, sorry bestie 😭
  • rule index of the match if last β€” like if it's the last field, you get the actual rule index, iconic
  • otherwise, the first long word index to be checked next β€” which is to say, the first filled word. that's your next stop on the itinerary πŸŽ€

⭐ SEE ALSO ⭐

Kernel file ./net/netfilter/nft_set_pipapo_avx2.c β€” go read her, she's the source of truth πŸ’–

and the whole friend group:


lowkey the whole _4b_* and _8b_* lineup is a squad, and our girl here is the understudy who only goes on when the sizing gets weird. respect her 🫑

anyway that's the page!! mwah πŸ’‹ sourced from ./net/netfilter, dated October 2026, and yeah β€” she's literally titled nft_pipapo_avx2_lookup_slow(9). catch you in the next manpage bestie πŸŒΈπŸ’œβœ¨

πŸ“¦ where this page comes from