]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: don't force DF when MTU is locked
authorSabrina Dubroca <sd@queasysnail.net>
Fri, 16 Nov 2018 15:58:19 +0000 (16:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Nov 2018 05:50:55 +0000 (21:50 -0800)
commite86863e6e5bcbb3cd38bcc3ccc9d543f97985b64
tree36d7653261e4dda4b1766c21f44fc3f5550775a3
parent45a7fa1e0fcaecaebb8f9317126bf0bb980156a2
ip_tunnel: don't force DF when MTU is locked

The various types of tunnels running over IPv4 can ask to set the DF
bit to do PMTU discovery. However, PMTU discovery is subject to the
threshold set by the net.ipv4.route.min_pmtu sysctl, and is also
disabled on routes with "mtu lock". In those cases, we shouldn't set
the DF bit.

This patch makes setting the DF bit conditional on the route's MTU
locking state.

This issue seems to be older than git history.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c