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>
This commit is contained in:
parent
884d338c04
commit
c60c308cbd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue