STRUCT NFP_TUN_OFFLOADED_MAC(9)
π 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
- 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