* [net-next] dummy: expend mtu range for dummy device
@ 2016-12-07 9:41 Zhang Shengju
2016-12-07 10:14 ` Sergei Shtylyov
2016-12-07 18:30 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Zhang Shengju @ 2016-12-07 9:41 UTC (permalink / raw)
To: jarod, netdev
After commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"),
the mtu range for dummy device becomes [68, 1500].
This patch expends it to [0, 65535].
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
---
drivers/net/dummy.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index 69fc840..6421835 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[])
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [net-next] dummy: expend mtu range for dummy device
2016-12-07 9:41 [net-next] dummy: expend mtu range for dummy device Zhang Shengju
@ 2016-12-07 10:14 ` Sergei Shtylyov
2016-12-07 18:30 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2016-12-07 10:14 UTC (permalink / raw)
To: Zhang Shengju, jarod, netdev
Hello!
On 12/7/2016 12:41 PM, Zhang Shengju wrote:
> After commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"),
> the mtu range for dummy device becomes [68, 1500].
>
> This patch expends it to [0, 65535].
"Extend" here and in the subject.
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
[...]
MBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [net-next] dummy: expend mtu range for dummy device
2016-12-07 9:41 [net-next] dummy: expend mtu range for dummy device Zhang Shengju
2016-12-07 10:14 ` Sergei Shtylyov
@ 2016-12-07 18:30 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-12-07 18:30 UTC (permalink / raw)
To: zhangshengju; +Cc: jarod, netdev
From: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Date: Wed, 7 Dec 2016 17:41:33 +0800
> After commit 61e84623ace3 ("net: centralize net_device min/max MTU checking"),
> the mtu range for dummy device becomes [68, 1500].
>
> This patch expends it to [0, 65535].
>
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Applied with "extends" typo fixed, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-07 18:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07 9:41 [net-next] dummy: expend mtu range for dummy device Zhang Shengju
2016-12-07 10:14 ` Sergei Shtylyov
2016-12-07 18:30 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).