l2tp: Enable checksum unnecessary conversions for l2tp/UDP sockets
authorTom Herbert <therbert@google.com>
Sun, 31 Aug 2014 22:12:46 +0000 (15:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 04:36:28 +0000 (21:36 -0700)
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c

index 1109d3b..797c0af 100644 (file)
@@ -1392,6 +1392,8 @@ static int l2tp_tunnel_sock_create(struct net *net,
                if (err < 0)
                        goto out;
 
+               udp_set_convert_csum(sock->sk, true);
+
                break;
 
        case L2TP_ENCAPTYPE_IP: