skb_tunnel_rx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_tunnel_rx(9) β€” Kernel API Manual πŸ’…

okay so bestie, this is the skb_tunnel_rx(9) page from the Kernel API Manual, and we are keeping every single detail, no cap ✨


πŸŽ€ NAME πŸŽ€

skb_tunnel_rx β€” prepare skb for rx reinsert. that's the whole vibe, periodt πŸ’–


✨ SYNOPSIS ✨

the signature, character for character:

void skb_tunnel_rx (struct sk_buff *skb , struct net_device *dev ,
struct net *net );

🌸 ARGUMENTS 🌸

  • skb β€” buffer. literally the buffer, bestie 🫢
  • dev β€” tunnel device. the tunnel device in question πŸ’…
  • net β€” netns for packet i/o. yes, the netns for packet i/o 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so after decapsulation, the packet is gonna re-enter our stack through netif_rx β€” that's the reinsert moment. so this function makes some cleanups and performs accounting. iconic cleanup-and-accounting behavior, ngl 🧚✨


πŸ’€ NOTE πŸ’€

🚨 bestie, important: this accounting is not SMP safe. like, do not treat it as SMP-safe, fr fr 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go peek at the kernel file ./include/net/dst.h and these absolute icons: skb_dst_drop(9), dst_hold_safe(9), skb_dst_force(9), __skb_tunnel_rx(9). iykyk πŸ’œπŸ¦‹


mwah πŸ’‹ β€” source/version: ./include/net, date: October 2026, that's the sign-off bestie 🫢

πŸ“¦ where this page comes from