STRUCT NFP_TUN_OFFLOADED_MAC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so this page is struct nfp_tun_offloaded_mac(9) β€” it's a kernel API manual page, and it's literally just one little struct that's doing a LOT of work behind the scenes. stay with me bestie, it's short and it's cute πŸŽ€


✨ NAME ✨

struct nfp_tun_offloaded_mac β€” hashtable entry for an offloaded MAC πŸ¦‹

like, that's the whole vibe. it's a hashtable entry. for a MAC that's been offloaded. iykyk.


🌸 SYNOPSIS 🌸

here's the actual shape of it, copy it exactly, no cap:

struct nfp_tun_offloaded_mac {
    struct rhash_head ht_node;
    u8 addr[ETH_ALEN];
    u16 index;
    int ref_count;
    struct list_head repr_list;
    int bridge_count;
};

πŸ‘‘ Members πŸ‘‘

okay so every single field, one by one, no skipping, this is the main character energy section:

  • ht_node β€” the hashtable entry itself. it's giving "i live in a hash table now" πŸ’…
  • addr β€” the offloaded MAC address. yes bestie, the actual address πŸ“
  • index β€” the offloaded index for that given MAC address. every MAC gets its own little number ✨
  • ref_count β€” how many devs are using this MAC address. like a headcount but for devices 🫢
  • repr_list β€” the list of reprs that share this MAC address. teamwork, lowkey 🌈
  • bridge_count β€” the number of bridge/internal devs with that MAC. bridge girlies stay winning πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

the required reading, the syllabus, the whole friend group:

  • the kernel file ./drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c
  • struct nfp_tun_pre_tun_rule(9)
  • 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)

ngl this one is short but it ate. go read tunnel_conf.c if you wanna see it in the wild πŸ’€

okay that's the page!! sign-off time: this little beauty comes from ./drivers/net/ethernet/netrono... and it's dated October 2026 β€” so yeah, future-coded, iconic behavior πŸ’œπŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from