STRUCT NFP_BPF_MAP(9)
π NAME π
okay bestie, welcome to the struct nfp_bpf_map(9) page from the Kernel API Manual β it's literally the private per-map data attached to BPF maps for offload β¨
β¨ SYNOPSIS β¨
struct nfp_bpf_map {
struct bpf_offloaded_map *offmap;
struct nfp_app_bpf *bpf;
u32 tid;
spinlock_t cache_lock;
u32 cache_blockers;
u32 cache_gen;
u64 cache_to;
struct sk_buff *cache;
struct list_head l;
struct nfp_bpf_map_word use_map[];
};
π«Ά Members π«Ά
the whole squad, one by one π
offmapβ pointer to the offloaded BPF map, no capbpfβ back pointer to the bpf app private structure, it's giving "remember where you came from"tidβ table id identifying the map on datapath πcache_lockβ protectscache_blockers,cache_to, andcache; do not touch without it fr frcache_blockersβ number of ops in flight which block caching π§cache_genβ counter incremented by every blocker on exit, iconic little bookkeeping momentcache_toβ time when the cache will no longer be valid (ns) β³cacheβ skb with cached response, the main character of the cache situationlβ link on thenfp_app_bpf->map_listlist πuse_mapβ map of how the value is used (in 4B chunks), lowkey the most mysterious member and we respect that π§
π SEE ALSO π
go read these next, bestie, iykyk:
- Kernel file
./drivers/net/ethernet/netronome/nfp/bpf/main.h struct nfp_app_bpf(9)struct nfp_bpf_reg_state(9)struct nfp_insn_meta(9)struct nfp_bpf_subprog_info(9)struct nfp_prog(9)struct nfp_bpf_vnic(9)
and that's the page π cute little sign-off: the source/version line was ./drivers/net/ethernet/netrono... and the date was October 2026 β so yeah, October 2026 energy, 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