diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 35 |
1 files changed, 1 insertions, 34 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index c1e66bdcf583..ddf77cf4ff2d 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -3285,8 +3285,7 @@ int skb_zerocopy(struct sk_buff *to, struct sk_buff *from, | |||
3285 | void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len); | 3285 | void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len); |
3286 | int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen); | 3286 | int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen); |
3287 | void skb_scrub_packet(struct sk_buff *skb, bool xnet); | 3287 | void skb_scrub_packet(struct sk_buff *skb, bool xnet); |
3288 | unsigned int skb_gso_transport_seglen(const struct sk_buff *skb); | 3288 | bool skb_gso_validate_network_len(const struct sk_buff *skb, unsigned int mtu); |
3289 | bool skb_gso_validate_mtu(const struct sk_buff *skb, unsigned int mtu); | ||
3290 | bool skb_gso_validate_mac_len(const struct sk_buff *skb, unsigned int len); | 3289 | bool skb_gso_validate_mac_len(const struct sk_buff *skb, unsigned int len); |
3291 | struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features); | 3290 | struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features); |
3292 | struct sk_buff *skb_vlan_untag(struct sk_buff *skb); | 3291 | struct sk_buff *skb_vlan_untag(struct sk_buff *skb); |
@@ -4104,38 +4103,6 @@ static inline bool skb_head_is_locked(const struct sk_buff *skb) | |||
4104 | return !skb->head_frag || skb_cloned(skb); | 4103 | return !skb->head_frag || skb_cloned(skb); |
4105 | } | 4104 | } |
4106 | 4105 | ||
4107 | /** | ||
4108 | * skb_gso_network_seglen - Return length of individual segments of a gso packet | ||
4109 | * | ||
4110 | * @skb: GSO skb | ||
4111 | * | ||
4112 | * skb_gso_network_seglen is used to determine the real size of the | ||
4113 | * individual segments, including Layer3 (IP, IPv6) and L4 headers (TCP/UDP). | ||
4114 | * | ||
4115 | * The MAC/L2 header is not accounted for. | ||
4116 | */ | ||
4117 | static inline unsigned int skb_gso_network_seglen(const struct sk_buff *skb) | ||
4118 | { | ||
4119 | unsigned int hdr_len = skb_transport_header(skb) - | ||
4120 | skb_network_header(skb); | ||
4121 | return hdr_len + skb_gso_transport_seglen(skb); | ||
4122 | } | ||
4123 | |||
4124 | /** | ||
4125 | * skb_gso_mac_seglen - Return length of individual segments of a gso packet | ||
4126 | * | ||
4127 | * @skb: GSO skb | ||
4128 | * | ||
4129 | * skb_gso_mac_seglen is used to determine the real size of the | ||
4130 | * individual segments, including MAC/L2, Layer3 (IP, IPv6) and L4 | ||
4131 | * headers (TCP/UDP). | ||
4132 | */ | ||
4133 | static inline unsigned int skb_gso_mac_seglen(const struct sk_buff *skb) | ||
4134 | { | ||
4135 | unsigned int hdr_len = skb_transport_header(skb) - skb_mac_header(skb); | ||
4136 | return hdr_len + skb_gso_transport_seglen(skb); | ||
4137 | } | ||
4138 | |||
4139 | /* Local Checksum Offload. | 4106 | /* Local Checksum Offload. |
4140 | * Compute outer checksum based on the assumption that the | 4107 | * Compute outer checksum based on the assumption that the |
4141 | * inner checksum will be offloaded later. | 4108 | * inner checksum will be offloaded later. |