diff options
Diffstat (limited to 'include/net/gre.h')
| -rw-r--r-- | include/net/gre.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/net/gre.h b/include/net/gre.h index a5a4ddf0530..b5318201874 100644 --- a/include/net/gre.h +++ b/include/net/gre.h @@ -32,9 +32,17 @@ struct gre_cisco_protocol { int gre_cisco_register(struct gre_cisco_protocol *proto); int gre_cisco_unregister(struct gre_cisco_protocol *proto); + void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi, int hdr_len); -struct sk_buff *gre_handle_offloads(struct sk_buff *skb, bool gre_csum); + +static inline struct sk_buff *gre_handle_offloads(struct sk_buff *skb, + bool csum) +{ + return iptunnel_handle_offloads(skb, csum, + csum ? SKB_GSO_GRE_CSUM : SKB_GSO_GRE); +} + static inline int ip_gre_calc_hlen(__be16 o_flags) { |
