skb_mac_gso_segment(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_mac_gso_segment(9) πŸ’…

okay so bestie, we're diving into the Kernel API Manual today β€” yes, that one β€” and the star of the show is skb_mac_gso_segment. it's the mac layer segmentation handler, and it's giving very much "i handle the plumbing so you don't have to" energy. let's get into it 🫢


✨ NAME ✨

skb_mac_gso_segment β€” the mac layer segmentation handler, periodt. that's the whole vibe. it segments stuff at the mac layer and it does it iconically πŸ’…


🌸 SYNOPSIS 🌸

struct sk_buff * skb_mac_gso_segment (struct sk_buff *skb ,
netdev_features_t features );

like. look at that signature. struct sk_buff * going in, struct sk_buff * coming out, and a netdev_features_t riding along in the middle. main character function fr fr πŸ”₯


πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the buffer to segment. this is the actual thing being chopped up, no cap. it's the whole reason we're here πŸ’–
  • features β€” the features for the output path (see dev->features). yes, that dev->features. go look at it, iykyk πŸ‘€

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, the lore goes deep. check the kernel file ./net/core/gso.c and then go meet the whole friend group:

that's the entire squad and honestly? every single one of them ate 🌈⭐


ngl, this page is short and sweet, but don't let the length fool you β€” the seg functions are a whole ecosystem and you will be seeing them again πŸ’€

and that's a wrap, bestie πŸŽ€ this lil page lives in ./net/core, dated October 2026, and it's filed under skb_mac_gso_segment(9) β€” mwah, slay, go segment some buffers πŸ’œπŸ¦‹

πŸ“¦ where this page comes from