nft_pipapo_avx2_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nft_pipapo_avx2_lookup(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to the nft_pipapo_avx2_lookup page from the Kernel API Manual β€” the whole thing lives in the kernel tree under ./net/netfilter, and yep, it's dated October 2026. Buckle up, this one's short but it's doing something. ✨


🌸 NAME

nft_pipapo_avx2_lookup β€” the dataplane frontend for the AVX2 implementation. that's it, that's the vibe. πŸŽ€


πŸ¦‹ SYNOPSIS

const struct nft_set_ext * nft_pipapo_avx2_lookup (const struct net *net
, const struct nft_set *set , const u32 *key );

literally the whole signature, no cap. three args, returns a pointer, we move. πŸ’…


✨ ARGUMENTS

  • net β€” the network namespace. the whole little world this lookup happens in. 🌍
  • set β€” the nftables API set representation. the collection we're digging through. πŸ—‚οΈ
  • key β€” the nftables API element representation containing key data. the thing we're hunting for. πŸ”‘

πŸ”₯ DESCRIPTION

so. this function is called from the data path β€” like, the hot path, main character energy, no time to waste. πŸƒβ€β™€οΈπŸ’¨

what it does: it searches for an element matching the given key in the current active copy, and here's the fun part β€” it uses the AVX2 routines if the FPU is usable. if the FPU is not usable? it doesn't panic, it doesn't cry (well, maybe a little), it just falls back to the generic implementation of the algorithm. iconic, flexible, resilient. 🫢

bestie note: it's only ever looking in the current active copy β€” that's the detail, don't lose it. πŸ‘€

⭐ RETURN

it hands you back an nftables API extension pointer, or NULL if there's no match. that's the whole deal. if you get NULL, it simply wasn't the one. πŸ’”


🧚 SEE ALSO

the source, first of all:

  • Kernel file ./net/netfilter/nft_set_pipapo_avx2.c πŸ“„

and then the whole friend group β€” every single one of these:

like, the entire 4-byte and 8-byte lookup squad plus the slow path and the setup crew. iykyk. 🌈


anyway that's the page πŸ’œ β€” sourced from ./net/netfilter, Kernel API Manual, October 2026, and that's the nft_pipapo_avx2_lookup(9) sign-off, mwah 😘✨

πŸ“¦ where this page comes from