diff options
author | Eric Dumazet <edumazet@google.com> | 2013-10-19 14:42:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-19 19:36:18 -0400 |
commit | 2d26f0a3c0e22f6b3096a2503d086e4b5e99d708 (patch) | |
tree | 181acb2d3453b54ece6941dbd0d5241345552557 /include/net/gre.h | |
parent | 030737bcc3c404e273e97dbe06fe9561699a411b (diff) |
ipv4: generalize gre_handle_offloads
This patch makes gre_handle_offloads() more generic
and rename it to iptunnel_handle_offloads()
This will be used to add GSO/TSO support to IPIP tunnels.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/gre.h')
-rw-r--r-- | include/net/gre.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/net/gre.h b/include/net/gre.h index 57e4afdf7879..dcd9ae3270d3 100644 --- a/include/net/gre.h +++ b/include/net/gre.h | |||
@@ -38,7 +38,13 @@ void gre_offload_exit(void); | |||
38 | 38 | ||
39 | void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi, | 39 | void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi, |
40 | int hdr_len); | 40 | int hdr_len); |
41 | struct sk_buff *gre_handle_offloads(struct sk_buff *skb, bool gre_csum); | 41 | |
42 | static inline struct sk_buff *gre_handle_offloads(struct sk_buff *skb, | ||
43 | bool gre_csum) | ||
44 | { | ||
45 | return iptunnel_handle_offloads(skb, gre_csum, SKB_GSO_GRE); | ||
46 | } | ||
47 | |||
42 | 48 | ||
43 | static inline int ip_gre_calc_hlen(__be16 o_flags) | 49 | static inline int ip_gre_calc_hlen(__be16 o_flags) |
44 | { | 50 | { |