| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 2.6] allow large MTU on dummy net device |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Wed, 30 Jun 2004 11:37:54 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| Organization: | Open Source Development Lab |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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: Stephen Hemminger <shemminger@xxxxxxxx>
diff -Nru a/drivers/net/dummy.c b/drivers/net/dummy.c
--- a/drivers/net/dummy.c 2004-06-30 11:37:38 -07:00
+++ b/drivers/net/dummy.c 2004-06-30 11:37:38 -07:00
@@ -78,6 +78,7 @@
/* 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);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 0/6 Linux-2.6.7-bk13] prism54 patches, Luis R. Rodriguez |
|---|---|
| Next by Date: | Re: [PATCH] New version of net timestamp optimization, Ben Greear |
| Previous by Thread: | [PATCH 4/6 Linux-2.6.7-bk13] prism54 device list cleanup, Margit Schubert-While |
| Next by Thread: | Re: [PATCH] New version of net timestamp optimization, Ben Greear |
| Indexes: | [Date] [Thread] [Top] [All Lists] |