net: gain ipv4 mtu when mtu is not locked
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 25 Aug 2020 03:20:28 +0000 (23:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 13:04:39 +0000 (06:04 -0700)
commit8b4510d76cde3c6934d4caed2fe897bd831cdb82
treeb3bad7bfc441bdeeeef2f669e36e82330e315e70
parent079f921e9f4d3992968a2fc5dc3af0a3540853cc
net: gain ipv4 mtu when mtu is not locked

When mtu is locked, we should not obtain ipv4 mtu as we return immediately
in this case and leave acquired ipv4 mtu unused.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c