Skip to content

Commit

Permalink
l2tp: Enable checksum unnecessary conversions for l2tp/UDP sockets
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tom Herbert authored and David S. Miller committed Sep 2, 2014
1 parent c60c308 commit 72297c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/l2tp/l2tp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,8 @@ static int l2tp_tunnel_sock_create(struct net *net,
if (err < 0)
goto out;

udp_set_convert_csum(sock->sk, true);

break;

case L2TP_ENCAPTYPE_IP:
Expand Down

0 comments on commit 72297c5

Please sign in to comment.