]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Limit mtu to 65575 bytes
authorEric Dumazet <edumazet@google.com>
Fri, 11 Apr 2014 04:23:36 +0000 (21:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2014 16:39:59 +0000 (12:39 -0400)
commit34b0eb26a60f8116f20ae752f83ce058b6c8caa5
treef1e3fc6c694aa8a153901ceadf2106b2d43a0470
parent4aee5c9689ebe93d6cfa3c17cab0c2a451cb0758
ipv6: Limit mtu to 65575 bytes

Francois reported that setting big mtu on loopback device could prevent
tcp sessions making progress.

We do not support (yet ?) IPv6 Jumbograms and cook corrupted packets.

We must limit the IPv6 MTU to (65535 + 40) bytes in theory.

Tested:

ifconfig lo mtu 70000
netperf -H ::1

Before patch : Throughput :   0.05 Mbits

After patch : Throughput : 35484 Mbits

Reported-by: Francois WELLENREITER <f.wellenreiter@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_route.h
net/ipv6/route.c