mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
0f4f4ffa7b
commit
4749c09c37
11 changed files with 24 additions and 6 deletions
|
@ -37,9 +37,10 @@ void gre_build_header(struct sk_buff *skb, const struct tnl_ptk_info *tpi,
|
|||
int hdr_len);
|
||||
|
||||
static inline struct sk_buff *gre_handle_offloads(struct sk_buff *skb,
|
||||
bool gre_csum)
|
||||
bool csum)
|
||||
{
|
||||
return iptunnel_handle_offloads(skb, gre_csum, SKB_GSO_GRE);
|
||||
return iptunnel_handle_offloads(skb, csum,
|
||||
csum ? SKB_GSO_GRE_CSUM : SKB_GSO_GRE);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue