summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2014-09-01 00:12:45 +0200
committerDavid S. Miller <davem@davemloft.net>2014-09-02 06:36:28 +0200
commitc60c308cbd0e672eabaaa544216f79d8bb3e707b (patch)
tree730d10ab6fa6efec4e5b9c65efb228ce588b0ca5 /drivers/net/vxlan.c
parentgre: Add support for checksum unnecessary conversions (diff)
downloadlinux-c60c308cbd0e672eabaaa544216f79d8bb3e707b.tar.xz
linux-c60c308cbd0e672eabaaa544216f79d8bb3e707b.zip
vxlan: Enable checksum unnecessary conversions for vxlan/UDP sockets
Signed-off-by: Tom Herbert <therbert@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 2 insertions, 0 deletions
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;
}