nft_pipapo_avx2_estimate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nft_pipapo_avx2_estimate(9) β€” like, the whole vibe check for a set, bestie

Okay so this is a page straight out of the Kernel API Manual, and it's literally about figuring out whether a netfilter set can hang with the AVX2 pipapo crowd. Sit down, grab a πŸ“, we're doing this.


✨ NAME ✨

nft_pipapo_avx2_estimate β€” the function that sets the size, the space, and the lookup complexity estimates. That's it, that's the whole job. Iconic, honestly.


🌸 SYNOPSIS 🌸

bool nft_pipapo_avx2_estimate (const struct nft_set_desc *desc , u32
       features , struct nft_set_estimate *est );

Return type is bool, no cap. Three args, all of them matter, we do not skip.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • desc β€” the set description. It's giving "everything you need to know about this set": the element count and the field description, all used for the estimation. πŸŽ€
  • features β€” the flags, bestie. And listen: NFT_SET_INTERVAL needs to be there. Like, it's non-negotiable. If it's not there, that's a whole thing.
  • est β€” the storage spot where the estimation data gets stashed. Purely a place to put the results. 🫢

πŸ‘‘ RETURN πŸ‘‘

It returns true if the set is compatible and AVX2 is available. Otherwise it returns false. That's the deal. πŸ’€

Lowkey important: both conditions need to line up β€” compatible set and AVX2 present. Miss one and you get false, periodt.

🌈 SEE ALSO 🌈

The kernel file lives at ./net/netfilter/nft_set_pipapo_avx2.c β€” go look, it's right there, iykyk.

And the whole friend group, in order, no one left out:

The 4b_ ones and the 8b_ ones are literally siblings, don't make them compete. πŸ™ˆ


Alright besties, that's the page! Sourced from ./net/netfilter, dated October 2026 β€” so yes, we're manifesting, and yes, this estimate is gonna slay. πŸ§šβ€β™€οΈπŸ’œβœ¨

πŸ“¦ where this page comes from