vxlan: Enable checksum unnecessary conversions for vxlan/UDP sockets
authorTom Herbert <therbert@google.com>
Sun, 31 Aug 2014 22:12:45 +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>
drivers/net/vxlan.c

index 67527f3d3be2ad8e1984f434ea7b375765724435..53c3ec19807cfd4b880c9bc7f4348847dd8c38c1 100644 (file)
@@ -2370,6 +2370,8 @@ static struct socket *vxlan_create_sock(struct net *net, bool ipv6,
        /* Disable multicast loopback */
        inet_sk(sock->sk)->mc_loop = 0;
 
+       udp_set_convert_csum(sock->sk, true);
+
        return sock;
 }