STRUCT NFP_BPF_VNIC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct nfp_bpf_vnic(9) ✨

okay bestie, gather round πŸ’– this is a page from the Kernel API Manual about struct nfp_bpf_vnic β€” literally the per-vNIC BPF priv structure, and yes it's as iconic as it sounds πŸ‘‘


🌸 NAME 🌸

struct nfp_bpf_vnic β€” the per-vNIC BPF priv structure, no cap 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct nfp_bpf_vnic {
    struct bpf_prog *tc_prog;
    unsigned int start_off;
    unsigned int tgt_done;
};

that's the whole vibe right there, three members and she ate πŸ’…


πŸ¦‹ Members πŸ¦‹

  • tc_prog β€” the currently loaded cls_bpf program. like, the prog that's on duty rn πŸ”₯
  • start_off β€” the address of the first instruction in the memory. the origin point, the main character ✨
  • tgt_done β€” the jump target to get the next packet. where we yeet ourselves to for the next one πŸƒβ€β™€οΈπŸ’¨

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/net/ethernet/netronome/nfp/bpf/main.h plus these besties, all linked up:

  • struct nfp_app_bpf(9)
  • struct nfp_bpf_map(9)
  • struct nfp_bpf_reg_state(9)
  • struct nfp_insn_meta(9)
  • struct nfp_bpf_subprog_info(9)
  • struct nfp_prog(9)

go read them, iykyk 🌈


fr fr bestie, that's the whole page β€” go forth and vibe-check your vNIC πŸ’€πŸ’–

and that's a wrap πŸŽ€ this lil gem comes from ./drivers/net/ethernet/netrono... and is dated October 2026 β€” slay, see u then β­πŸ§šπŸ’œ

πŸ“¦ where this page comes from