nft_pipapo_a...lookup_4b_12(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nft_pipapo_avx2_lookup_4b_12 β€” NAME ✨

okay so bestie, this is nft_pipapo_avx2_lookup_4b_12 from the Kernel API Manual, and it is literally the AVX2-based lookup for 12 four-bit groups. twelve. four-bit. groups. she's doing the absolute most and we love her for it πŸŽ€


🌸 SYNOPSIS 🌸

int nft_pipapo_avx2_lookup_4b_12 (unsigned long *map , unsigned long *fill , const struct nft_pipapo_field *f , int offset , const u8 *pkt , bool first , bool last );

like, seven args, no notes, she's an icon and she knows it 🫢


✨ ARGUMENTS ✨

  • map β€” the previous match result, used as the initial bitmap. think of it as the receipts from last time πŸ’…
  • fill β€” destination bitmap that gets filled up with the current match result. she's the empty cup, pour the results in πŸ“
  • f β€” the field, containing lookup and mapping tables. the whole vibe lives in here
  • offset β€” ignore buckets before the given index; no bits are filled there. skip the intro, get to the good part πŸ™ˆ
  • pkt β€” packet data, and it's a pointer to the input nftables register. the actual tea β˜•
  • first β€” if this is the first field, don't source the previous result. fresh start energy, no baggage 🌈
  • last β€” last field: stop at the first match and return the bit index. she said i'm done here, periodt πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

see nft_pipapo_avx2_lookup_4b_2. that's the whole lore drop, go read her sister's page iykyk πŸ“–

this one is used for 48-bit fields (i.e. MAC addresses / EUI-48). forty-eight bits of main character energy, no cap πŸ‘‘


πŸŽ€ RETURN πŸŽ€

  • -1 on no match 😭
  • rule index of match if last πŸ”₯
  • otherwise, the first long word index to be checked next (i.e. first filled word) ⭐

πŸ’œ SEE ALSO πŸ’œ


okay that's the page bestie, mwah πŸ’– she lives in ./net/netfilter, dated October 2026, and the manual label on her birth certificate is nft_pipapo_a...lookup_4b_12(9) β€” that's it, that's the whole thing, slay πŸ’…βœ¨

πŸ“¦ where this page comes from