summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2014-08-31 15:12:45 -0700
committerDavid S. Miller <davem@davemloft.net>2014-09-01 21:36:28 -0700
commitc60c308cbd0e672eabaaa544216f79d8bb3e707b (patch)
tree730d10ab6fa6efec4e5b9c65efb228ce588b0ca5 /drivers/net/vxlan.c
parent884d338c041c2aa4536ade8620efa585e7c57f3c (diff)
downloadtalos-op-linux-c60c308cbd0e672eabaaa544216f79d8bb3e707b.tar.gz
talos-op-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 'drivers/net/vxlan.c')
-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;
}
OpenPOWER on IntegriCloud