nft_pipapo_avx2_estimate(9)
π 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_INTERVALneeds 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:
nft_pipapo_avx2_prepare(9)nft_pipapo_avx2_fill(9)nft_pipapo_avx2_refill(9)nft_pipapo_avx2_lookup_4b_2(9)nft_pipapo_avx2_lookup_4b_4(9)nft_pipapo_avx2_lookup_4b_8(9)nft_pipapo_avx2_lookup_4b_12(9)nft_pipapo_avx2_lookup_4b_32(9)nft_pipapo_avx2_lookup_8b_1(9)nft_pipapo_avx2_lookup_8b_2(9)nft_pipapo_avx2_lookup_8b_4(9)nft_pipapo_avx2_lookup_8b_6(9)nft_pipapo_avx2_lookup_8b_16(9)nft_pipapo_avx2_lookup_slow(9)pipapo_resmap_init_avx2(9)pipapo_get_avx2(9)nft_pipapo_avx2_lookup(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms