diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-12-07 17:41:33 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-07 13:29:45 -0500 |
commit | 25e3e84b183a2c25b1e8303f815a6aa5bf78358a (patch) | |
tree | 6c09f490a12efa7a2ace42075b2e82c5ed9a650f /drivers | |
parent | e82621e329b61ab8d6f0c987376512cf420ac9fe (diff) | |
download | linux-25e3e84b183a2c25b1e8303f815a6aa5bf78358a.tar.bz2 |
dummy: expend mtu range for dummy device
After commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"),
the mtu range for dummy device becomes [68, 1500].
This patch extends it to [0, 65535].
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/dummy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c index 69fc8409a973..6421835f11b7 100644 --- a/drivers/net/dummy.c +++ b/drivers/net/dummy.c @@ -154,6 +154,9 @@ static void dummy_setup(struct net_device *dev) dev->hw_features |= dev->features; dev->hw_enc_features |= dev->features; eth_hw_addr_random(dev); + + dev->min_mtu = 0; + dev->max_mtu = ETH_MAX_MTU; } static int dummy_validate(struct nlattr *tb[], struct nlattr *data[]) |