diff options
| author | Florian Westphal <fw@strlen.de> | 2014-01-26 04:58:16 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-01-27 01:38:23 -0500 |
| commit | de960aa9ab4decc3304959f69533eef64d05d8e8 (patch) | |
| tree | 1f225ca6fef5512f121856b7572534d2ed171e39 /include/linux | |
| parent | 77d143de75812596a58d126606f42d1214e09dde (diff) | |
net: add and use skb_gso_transport_seglen()
This moves part of Eric Dumazets skb_gso_seglen helper from tbf sched to
skbuff core so it may be reused by upcoming ip forwarding path patch.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/skbuff.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 1f689e62e4cb..f589c9af8cbf 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -2456,6 +2456,7 @@ void skb_zerocopy(struct sk_buff *to, const struct sk_buff *from, | |||
| 2456 | void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len); | 2456 | void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len); |
| 2457 | int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen); | 2457 | int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen); |
| 2458 | void skb_scrub_packet(struct sk_buff *skb, bool xnet); | 2458 | void skb_scrub_packet(struct sk_buff *skb, bool xnet); |
| 2459 | unsigned int skb_gso_transport_seglen(const struct sk_buff *skb); | ||
| 2459 | struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features); | 2460 | struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features); |
| 2460 | 2461 | ||
| 2461 | struct skb_checksum_ops { | 2462 | struct skb_checksum_ops { |
