diff options
author | Florian Westphal <fw@strlen.de> | 2014-01-26 10:58:16 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-26 22:38:23 -0800 |
commit | de960aa9ab4decc3304959f69533eef64d05d8e8 (patch) | |
tree | 1f225ca6fef5512f121856b7572534d2ed171e39 /include/linux/skbuff.h | |
parent | 77d143de75812596a58d126606f42d1214e09dde (diff) | |
download | linux-stable-de960aa9ab4decc3304959f69533eef64d05d8e8.tar.gz linux-stable-de960aa9ab4decc3304959f69533eef64d05d8e8.tar.bz2 linux-stable-de960aa9ab4decc3304959f69533eef64d05d8e8.zip |
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/skbuff.h')
-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, void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len); int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen); void skb_scrub_packet(struct sk_buff *skb, bool xnet); +unsigned int skb_gso_transport_seglen(const struct sk_buff *skb); struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features); struct skb_checksum_ops { |