[net-next] dummy: expend mtu range for dummy device

Subsystems: networking drivers, the rest

3 messages, 3 authors, 2016-12-07 · open the first message on its own page

[net-next] dummy: expend mtu range for dummy device

From: Zhang Shengju <hidden>
Date: 2016-12-07 09:41:41

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 <redacted>
---
 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

Re: [net-next] dummy: expend mtu range for dummy device

From: Sergei Shtylyov <hidden>
Date: 2016-12-07 10:14:25

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 <redacted>
[...]

MBR, Sergei

Re: [net-next] dummy: expend mtu range for dummy device

From: David Miller <davem@davemloft.net>
Date: 2016-12-07 18:30:17

From: Zhang Shengju <redacted>
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 <redacted>
Applied with "extends" typo fixed, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help