From: Tom Herbert Date: Sun, 31 Aug 2014 22:12:45 +0000 (-0700) Subject: vxlan: Enable checksum unnecessary conversions for vxlan/UDP sockets X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c60c308cbd0e672eabaaa544216f79d8bb3e707b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git vxlan: Enable checksum unnecessary conversions for vxlan/UDP sockets Signed-off-by: Tom Herbert Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 67527f3d3be2..53c3ec19807c 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -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; }