net: enable LCO for udp_tunnel_handle_offloads() users
authorEdward Cree <ecree@solarflare.com>
Thu, 11 Feb 2016 20:50:44 +0000 (20:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2016 10:52:15 +0000 (05:52 -0500)
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>
include/net/udp_tunnel.h

index cca2ad3082c37aaa9250f7f79ac105e1dcf1f754..734c15662ea957018399d723af9ad3619f54186c 100644 (file)
@@ -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)