]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbc50a28348383dedadd167308a097f0f44b7e85
tree983dee3efd8758ef006e6d60fdc654d17d1bc7f8
parenta9c6307030f679facfba5aa579ed82c95411f162
net: remove MTU limits for dummy and ifb device

These two drivers (dummy and ifb) call ether_setup(), after commit
1b94aa8f4293 ("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