---
name: "__skb_gso_segment"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/__skb_gso_segment"
---

# \_\_skb\_gso\_segment(9)

Perform segmentation on skb.

## NAME

\_\_skb\_gso\_segment - Perform segmentation on skb.

## SYNOPSIS

**struct sk\_buff \* \_\_skb\_gso\_segment(struct sk\_buff \*** *skb***, netdev\_features\_t** *features***, bool** *tx\_path***);**

## ARGUMENTS

*skb*

buffer to segment

*features*

features for the output path (see dev-\>features)

*tx\_path*

whether it is called in TX path

## DESCRIPTION

This function segments the given skb and returns a list of segments.

It may return NULL if the skb requires no segmentation. This is only possible when GSO is used for verifying header integrity.

Segmentation preserves SKB\_SGO\_CB\_OFFSET bytes of previous skb cb.

## COPYRIGHT
