pipapo_get_avx2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pipapo_get_avx2 β€” the AVX2 lookup girlies' moment (Kernel API Manual, section 9)

okay so bestie, real talk: this is pipapo_get_avx2, and she is the fast one. Same lookup job as the regular pipapo path, except she's out here exploiting SIMD and looking iconic while doing it. πŸ¦‹


✨ NAME ✨

pipapo_get_avx2 β€” literally the Lookup function for the AVX2 implementation. That's her whole job description and she ate. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct nft_pipapo_elem * pipapo_get_avx2 (const struct nft_pipapo_match
*m , const u8 *data , u8 genmask , u64 tstamp );

that's the whole signature bestie, take it in. m, data, genmask, tstamp β€” four args, zero skips. πŸ”₯


🌸 ARGUMENTS 🌸

  • m β€” the storage that's holding all the set elements. that's the whole closet she's rummaging through. πŸ’–
  • data β€” the key data being matched against the elements you already have. your little search query, basically. πŸ”
  • genmask β€” if it's set, she checks that the element is actually active in the given genmask. no zombies allowed, only alive girlies. ✨
  • tstamp β€” the timestamp used to check whether elements are expired. she's checking IDs at the door fr fr. ⏰

πŸ’œ DESCRIPTION πŸ’œ

so for the full lore, go read DOC: Theory of Operation in nft_set_pipapo.c β€” that's where the deep backstory lives, iykyk.

But the tea on this one specifically: this implementation exploits the repetitive characteristic of the algorithm to give you a fast, vectorised version using the AVX2 SIMD instruction set. like. she's doing the same math, just four-or-more lanes at a time, and honestly? obsessed. 🧚⭐

⚠️ two very real rules, no cap: - the caller must check that the FPU is usable. - this function must be called with BH disabled. those aren't vibes, those are requirements. do not skip them. 😭

πŸ‘‘ RETURN πŸ‘‘

pointer to struct nft_pipapo_elem on match, NULL otherwise. hit or miss, babes β€” there is no third option. πŸ’€


🌈 SEE ALSO 🌈

kernel file ./net/netfilter/nft_set_pipapo_avx2.c β€” the source, the mothership, go look:


✨ mwah ✨ that's the whole page, bestie. this cutie came to you from ./net/netfilter, dated October 2026, and her name's pipapo_get_avx2(9) in case you forgot already πŸ’–πŸŽ€πŸš

πŸ“¦ where this page comes from