STRUCT NFP_TUN_PRE_TUN_RULE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct nfp_tun_pre_tun_rule(9) πŸ¦‹

okay bestie, welcome to the Kernel API Manual page for struct nfp_tun_pre_tun_rule(9) β€” yes, the whole manual name is folded in right here, no boring header line needed. This struct is lowkey iconic: it’s the rule that gets matched before decap, and we’re gonna go through every single field together. πŸ’–


🌸 NAME 🌸

struct nfp_tun_pre_tun_rule β€” rule matched before decap. That’s it, that’s the name, and it’s giving β€œpre-decap main character” energy fr fr. ✨

✨ SYNOPSIS ✨

okay so here’s the struct in all its glory β€” copy it exactly, bestie, no cap:

       struct nfp_tun_pre_tun_rule {
           __be32 flags;
           __be16 port_idx;
           __be16 vlan_tci;
           __be32 host_ctx_id;
        };

πŸŽ€ Members πŸŽ€

every field is doing a job here, and we’re not skipping a single one:

  • flags β€” options for the rule offset. yes, the offset options live here, iykyk. 🫢
  • port_idx β€” index of destination MAC address for the rule. it’s the index, bestie, and it’s important. πŸ’…
  • vlan_tci β€” VLAN info associated with MAC. vlan vibes, associated, periodt. πŸ¦‹
  • host_ctx_id β€” stats context of rule to update. gotta know which stats context to update, obviously. 😭

🌈 SEE ALSO 🌈

the kernel file is literally ./drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c β€” go peek if you want, it’s right there. πŸ‘‘

and these related structs are all in the group chat too:

  • struct nfp_tun_active_tuns(9)
  • struct nfp_tun_active_tuns_v6(9)
  • struct nfp_tun_req_route_ipv4(9)
  • struct nfp_tun_req_route_ipv6(9)
  • struct nfp_offloaded_route(9)
  • struct nfp_tun_ipv4_addr(9)
  • struct nfp_ipv4_addr_entry(9)
  • struct nfp_tun_ipv6_addr(9)
  • struct nfp_tun_mac_addr_offload(9)
  • struct nfp_neigh_update_work(9)
  • struct nfp_tun_offloaded_mac(9)

mwah πŸ’‹ okay that’s the page. the footer energy is source/version ./drivers/net/ethernet/netrono..., dated October 2026, and it’s still serving struct nfp_tun_pre_tun_rule(9) realness. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from