summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorEric Dumazet2013-10-19 20:42:56 +0200
committerDavid S. Miller2013-10-20 01:36:18 +0200
commit3347c960295583eee3fd58e5c539fb1972fbc005 (patch)
treec0763cf5b85c136e72d226a0be56cc66e98bbcb0 /include/linux/skbuff.h
parentipv4: generalize gre_handle_offloads (diff)
downloadkernel-qcow2-linux-3347c960295583eee3fd58e5c539fb1972fbc005.tar.gz
kernel-qcow2-linux-3347c960295583eee3fd58e5c539fb1972fbc005.tar.xz
kernel-qcow2-linux-3347c960295583eee3fd58e5c539fb1972fbc005.zip
ipv4: gso: make inet_gso_segment() stackable
In order to support GSO on IPIP, we need to make inet_gso_segment() stackable. It should not assume network header starts right after mac header. Signed-off-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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index ba74474836c0..cad1e0c5cc04 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2722,9 +2722,12 @@ static inline struct sec_path *skb_sec_path(struct sk_buff *skb)
/* Keeps track of mac header offset relative to skb->head.
* It is useful for TSO of Tunneling protocol. e.g. GRE.
* For non-tunnel skb it points to skb_mac_header() and for
- * tunnel skb it points to outer mac header. */
+ * tunnel skb it points to outer mac header.
+ * Keeps track of level of encapsulation of network headers.
+ */
struct skb_gso_cb {
- int mac_offset;
+ int mac_offset;
+ int encap_level;
};
#define SKB_GSO_CB(skb) ((struct skb_gso_cb *)(skb)->cb)