__skb_tunnel_rx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __skb_tunnel_rx(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual, and the star of the show is __skb_tunnel_rx. it's a kernel function, it lives in ./include/net, and it's here to do one very specific little cleanup job. let's get into it ✨


🌸 NAME 🌸

__skb_tunnel_rx β€” prepare skb for rx reinsert πŸ¦‹

like, it gets your socket buffer all prepped and presentable so it can be shoved back into the receive path. main character energy fr.


✨ SYNOPSIS ✨

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

note the spaces before those commas β€” that's just how the page writes it, don't come for me πŸ™ˆ. copy it exact.


πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” buffer. the actual packet situation, the thing being cleaned up πŸ’–
  • dev β€” tunnel device. the device it's coming through 🫢
  • net β€” netns for packet i/o. which network namespace the packet i/o belongs to 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe: after decapsulation, the packet is going to re-enter our stack (via netif_rx), so this function makes some cleanups. 🧹✨ that's it, that's the whole job. it's giving responsible older sibling tidying up before the packet goes back into the party.

⚠️ and just so we're clear β€” no accounting done. the page says it right there in parens. no stats get updated here, bestie. don't expect receipts. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


and that's the page!! πŸŽ‰ the footer crew says it comes from ./include/net, dated October 2026, and it's filed under __skb_tunnel_rx(9) β€” slay, iconic, periodt. πŸ’…πŸŒ·

πŸ“¦ where this page comes from