diff options
author | Tom Herbert <therbert@google.com> | 2014-08-31 15:12:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-01 21:36:28 -0700 |
commit | c60c308cbd0e672eabaaa544216f79d8bb3e707b (patch) | |
tree | 730d10ab6fa6efec4e5b9c65efb228ce588b0ca5 /drivers | |
parent | 884d338c041c2aa4536ade8620efa585e7c57f3c (diff) |
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')
-rw-r--r-- | drivers/net/vxlan.c | 2 |
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; } |