STRUCT NFP_TUN_MAC_ADDR_OFFLOAD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nfp_tun_mac_addr_offload(9)

okay bestie, welcome to the Kernel API Manual ✨ β€” today's hyperfixation is a lil struct called struct nfp_tun_mac_addr_offload, and its whole personality is configuring the MAC address of the tunnel EP on NFP. that's it, that's the job. iconic behavior honestly πŸŽ€


🌸 NAME

struct nfp_tun_mac_addr_offload β€” configure MAC address of tunnel EP on NFP πŸ¦‹

like yes queen, go off, tell that NFP what MAC address the tunnel endpoint is rocking.


✨ SYNOPSIS

struct nfp_tun_mac_addr_offload {
    __be16 flags;
    __be16 count;
    __be16 index;
    u8 addr[ETH_ALEN];
 };

look at her. four members, all business, zero filler πŸ’…


🫢 Members

  • flags β€” MAC address offload options. it's the little settings girlie of the group, keeping track of what options are in play πŸ”₯
  • count β€” number of MAC addresses in the message. and the manpage is very specific here: it should be 1. so like… don't be extra, bestie πŸ™ˆ
  • index β€” index of MAC address in the lookup table. it's giving "where do i sit in the spreadsheet" energy πŸ“‹
  • addr β€” interface MAC address. the actual MAC, the main character, the moment πŸ‘‘

🧚 SEE ALSO

peep the whole friend group πŸ”:

  • 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_neigh_update_work(9)
  • struct nfp_tun_offloaded_mac(9)

ngl that's a whole squad and honestly every single one of them ate πŸ’€πŸ”₯


no cap, this is a kernel struct so if you're reading it you're probably already in the source. go touch some tunnel_conf.c and slay πŸ¦‹

and that's the whole page, bestie 🌈 β€” brought to you by the source at ./drivers/net/ethernet/netrono... and dated October 2026 ⭐. mwah, stay hydrated, drink water, read your structs πŸ’–πŸŽ€πŸ’œ

πŸ“¦ where this page comes from