diff options
| author | Tom Herbert <therbert@google.com> | 2014-06-04 20:20:23 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2014-06-05 01:46:38 -0400 |
| commit | 4749c09c37030ccdc44aecebe0f71b02a377fc14 (patch) | |
| tree | d8bef1d48e73e2e5492765ae5348f1f0dffbad1c /include/net | |
| parent | 0f4f4ffa7b7c3d29d0537a126145c9f8d8ed5dbc (diff) | |
gre: Call gso_make_checksum
Call gso_make_checksum. This should have the benefit of using a
checksum that may have been previously computed for the packet.
This also adds NETIF_F_GSO_GRE_CSUM to differentiate devices that
offload GRE GSO with and without the GRE checksum offloaed.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/gre.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/gre.h b/include/net/gre.h index 70046a0b0b89..b53182018743 100644 --- a/include/net/gre.h +++ b/include/net/gre.h | |||
| @@ -37,9 +37,10 @@ void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi, | |||
| 37 | int hdr_len); | 37 | int hdr_len); |
| 38 | 38 | ||
| 39 | static inline struct sk_buff *gre_handle_offloads(struct sk_buff *skb, | 39 | static inline struct sk_buff *gre_handle_offloads(struct sk_buff *skb, |
| 40 | bool gre_csum) | 40 | bool csum) |
| 41 | { | 41 | { |
| 42 | return iptunnel_handle_offloads(skb, gre_csum, SKB_GSO_GRE); | 42 | return iptunnel_handle_offloads(skb, csum, |
| 43 | csum ? SKB_GSO_GRE_CSUM : SKB_GSO_GRE); | ||
| 43 | } | 44 | } |
| 44 | 45 | ||
| 45 | 46 | ||
