Skip to content

Commit

Permalink
net: enable LCO for udp_tunnel_handle_offloads() users
Browse files Browse the repository at this point in the history
The only protocol affected at present is Geneve.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Edward Cree authored and David S. Miller committed Feb 12, 2016
1 parent d75f130 commit 21e2e7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/net/udp_tunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ static inline struct sk_buff *udp_tunnel_handle_offloads(struct sk_buff *skb,
{
int type = udp_csum ? SKB_GSO_UDP_TUNNEL_CSUM : SKB_GSO_UDP_TUNNEL;

return iptunnel_handle_offloads(skb, udp_csum, type);
/* As we're a UDP tunnel, we support LCO, so don't need csum_help */
return iptunnel_handle_offloads(skb, false, type);
}

static inline void udp_tunnel_gro_complete(struct sk_buff *skb, int nhoff)
Expand Down

0 comments on commit 21e2e7f

Please sign in to comment.