OSDN Git Service

net: remove MTU limits for dummy and ifb device
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Fri, 22 Sep 2017 15:57:49 +0000 (23:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Sep 2017 23:26:09 +0000 (16:26 -0700)
commite94cd8113ce63bca34040aae52d0603baf6ec07c
tree983dee3efd8758ef006e6d60fdc654d17d1bc7f8
parent1b17ca044a82342fb96529e1bdff6da7af90bc53
net: remove MTU limits for dummy and ifb device

These two drivers (dummy and ifb) call ether_setup(), after commit
61e84623ace3 ("net: centralize net_device min/max MTU checking"), the
range of mtu is [min_mtu, max_mtu], which is [68, 1500] by default.

These two devices should not have limits on MTU. This patch set their
min_mtu/max_mtu to 0. So that dev_set_mtu() will not check the mtu range,
and can be set with any value.

CC: Eric Dumazet <edumazet@google.com>
CC: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dummy.c
drivers/net/ifb.c