__skb_tunnel_rx(9)
π __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 π₯
- the kernel file
./include/net/dst.hβ yes, the wholedst.hfile, it's listed like that on the original page π skb_dst_drop(9)dst_hold_safe(9)skb_dst_force(9)skb_tunnel_rx(9)β note this one has no leading underscores, so it is not the same function, okay? iykyk π
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
- 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