nft_pipapo_avx2_refill(9)
π nft_pipapo_avx2_refill(9) β like, the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the nft_pipapo_avx2 corner of the kernel β yes, that's the manual name, we're in Kernel API Manual territory β and you need a bitmap refilled. This function is literally the AVX2-flavored twin of pipapo_refill, and she's here to help. π¦
β¨ NAME β¨
nft_pipapo_avx2_refill β scan a bitmap, pick the mapping table item, set the bits. That's the whole vibe. π
πΈ SYNOPSIS πΈ
int nft_pipapo_avx2_refill (int offset , unsigned long *map , unsigned long *dst , union nft_pipapo_map_bucket *mt , bool last );
π ARGUMENTS π
offsetβ start scanning from this bitmap (which is basically a bucket) offset, measured in longs. like,longs the integer type, not "long" the adjective πmapβ the bitmap that gets scanned for set bits. this is the main character here fr.dstβ the destination bitmap. where the bits end up living πmtβ the mapping table, holding all the bit set specifiers.lastβ if this is the last field, return the index of the first set bit instead. lowkey changes the whole return value, so pay attention π
π₯ DESCRIPTION π₯
So this is an alternative implementation of pipapo_refill, and she's specifically built to be used with the AVX2 lookup routines. The tea: we know there are four words to be scanned, at a given offset inside the map, for each matching iteration. That's the deal. β¨
β οΈ The caller must ensure at least one bit in those four words is set. That's on you, bestie, not on her.
And the plot twist you know is coming: this function doesn't actually use any AVX2 instruction. π iconic behavior honestly, she's in the AVX2 club but she's not using any AVX2 instructions. we love a queen who just shows up.
π RETURN π
- the first set bit index if
lastis set β¨ - otherwise, the index of the first filled word π«Ά
π§ SEE ALSO π§
Kernel file ./net/netfilter/nft_set_pipapo_avx2.c β go read the source, iykyk π
nft_pipapo_avx2_prepare(9)nft_pipapo_avx2_fill(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)nft_pipapo_avx2_estimate(9)pipapo_resmap_init_avx2(9)pipapo_get_avx2(9)nft_pipapo_avx2_lookup(9)
the whole friend group, assembled. π
okay that's the whole page bestie, no cap. this came to you from ./net/netfilter, dated October 2026, and it's the nft_pipapo_avx2_refill(9) era β go forth and refill those bitmaps, you're 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