]> Git Repo - linux.git/commit
net: remove MTU limits for dummy and ifb device
authorZhang Shengju <[email protected]>
Fri, 22 Sep 2017 15:57:49 +0000 (23:57 +0800)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
CC: Sabrina Dubroca <[email protected]>
Signed-off-by: Zhang Shengju <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/dummy.c
drivers/net/ifb.c
This page took 0.040712 seconds and 4 git commands to generate.