Re: [PATCH net v3] net: vrf: Fix ping failed when vrf mtu is set to 0

From: David Miller
Date: Mon Apr 08 2019 - 01:49:54 EST


From: David Ahern <dsa@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 Apr 2019 20:51:05 -0700

> On 4/7/19 7:04 PM, linmiaohe wrote:
>> From: Miaohe Lin <linmiaohe@xxxxxxxxxx>
>>
>> When the mtu of a vrf device is set to 0, it would cause ping
>> failed. So I think we should limit vrf mtu in a reasonable range
>> to solve this problem. I set dev->min_mtu to IPV6_MIN_MTU, so it
>> will works for both ipv4 and ipv6. And if dev->max_mtu still be 0
>> can be confusing, so I set dev->max_mtu to ETH_MAX_MTU.
>>
>> Here is the reproduce step:
...
>> Fixes: ad49bc6361ca2 ("net: vrf: remove MTU limits for vrf device")
>> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
>> ---
>
> Reviewed-by: David Ahern <dsahern@xxxxxxxxx>

Applied and queued up for -stable, thanks.