diff options
author | Florian Westphal <fw@strlen.de> | 2014-02-22 10:33:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-11 16:09:59 -0700 |
commit | 32e66c065179e598c0e692f4d57ded48715e0d99 (patch) | |
tree | 23e5a25a13b43a59e721f2ad2814d1ec46d11eb2 /include | |
parent | 19e48381ab5da05c5fb398336a90a52a2b623cdc (diff) | |
download | lwn-32e66c065179e598c0e692f4d57ded48715e0d99.tar.gz lwn-32e66c065179e598c0e692f4d57ded48715e0d99.zip |
net: add and use skb_gso_transport_seglen()
commit de960aa9ab4decc3304959f69533eef64d05d8e8 upstream.
[ no skb_gso_seglen helper in 3.4, leave tbf alone ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 42b919c36da1..9cfc1fffa225 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -2159,6 +2159,8 @@ extern int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, extern struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features); +unsigned int skb_gso_transport_seglen(const struct sk_buff *skb); + static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, int len, void *buffer) { |