Commit 835b1c06 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[NET]: Allow large MTU on dummy net device.

It is useful for testing to allow larger MTU value to be set on
the dummy network device. The current code limits it to valid Ether mtu's.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent fba0dab2
......@@ -78,6 +78,7 @@ static void __init dummy_setup(struct net_device *dev)
/* Fill in device structure with ethernet-generic values. */
ether_setup(dev);
dev->tx_queue_len = 0;
dev->change_mtu = NULL;
dev->flags |= IFF_NOARP;
dev->flags &= ~IFF_MULTICAST;
SET_MODULE_OWNER(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment