nft_pipapo_avx2_lookup_8b_1(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nft_pipapo_avx2_lookup_8b_1 β€” Kernel API Manual ✨

okay so bestie, welcome to the nft_pipapo_avx2_lookup_8b_1(9) page, straight out of the Kernel API Manual πŸŽ€ this is the AVX2-based lookup for one eight-bit group and honestly? she's iconic for it πŸ’–


🌸 NAME 🌸

nft_pipapo_avx2_lookup_8b_1 β€” AVX2-based lookup for one eight-bit group πŸ¦‹


✨ SYNOPSIS ✨

int nft_pipapo_avx2_lookup_8b_1 (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. it's giving "we remember what happened last time" energy πŸ’­
  • fill β€” the destination bitmap that gets filled with the current match result. this one's the main character of the output 🫢
  • f β€” the field, containing lookup and mapping tables. all the tables live here bestie πŸ“š
  • offset β€” ignore buckets before the given index, no bits are filled there. like, we simply do not look at those πŸ™ˆ
  • pkt β€” packet data, pointer to input nftables register. the actual vibes we're checking πŸ”
  • first β€” if this is the first field, don't source previous result. no borrowing from the past, periodt βœ‹
  • last β€” last field: stop at the first match and return bit index. first match wins and we're out 🏁

πŸ’œ DESCRIPTION πŸ’œ

See nft_pipapo_avx2_lookup_4b_2. that's the lore, go read it iykyk πŸ“–

This is used for 8-bit fields (i.e. protocol numbers). yes, like protocol numbers β€” that's the whole assignment πŸ”₯


⭐ RETURN ⭐

  • -1 on no match 😭
  • rule index of match if the last flag is set πŸ‘‘
  • otherwise, the first long word index to be checked next (i.e. first filled word) β€” that's your next stop, bestie πŸš€

🌈 SEE ALSO 🌈


and that's the whole page bestie, no cap πŸ’€πŸ’– this came from ./net/netfilter, dated October 2026, and it's nft_pipapo_avx2_lookup_8b_1(9) β€” slay, go read the source, periodt πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from