diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-30 09:18:40 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2009-10-30 09:18:40 +0000 |
commit | 7a9d21909278eae2a6b82a0ce206dbd3cd9d9169 (patch) | |
tree | 7567583ef6d3d173459851a62d9f53785a5bbe96 | |
parent | 163074a14b931713b829391d8afc472cec6b8064 (diff) |
[ramips] missing header file changes, and fix mtu value
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18220 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips.c | 2 | ||||
-rw-r--r-- | target/linux/ramips/files/drivers/net/ramips_eth.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ramips.c b/target/linux/ramips/files/drivers/net/ramips.c index e78eb6f8d7..f9ce27241d 100644 --- a/target/linux/ramips/files/drivers/net/ramips.c +++ b/target/linux/ramips/files/drivers/net/ramips.c @@ -375,7 +375,7 @@ ramips_eth_probe(struct net_device *dev) dev->stop = ramips_eth_stop; dev->hard_start_xmit = ramips_eth_hard_start_xmit; dev->set_mac_address = ramips_eth_set_mac_addr; - dev->mtu = MAX_RX_LENGTH; + dev->mtu = 1500; dev->tx_timeout = ramips_eth_timeout; dev->watchdog_timeo = TX_TIMEOUT; spin_lock_init(&priv->page_lock); diff --git a/target/linux/ramips/files/drivers/net/ramips_eth.h b/target/linux/ramips/files/drivers/net/ramips_eth.h index 891c47b438..ead1b785c0 100644 --- a/target/linux/ramips/files/drivers/net/ramips_eth.h +++ b/target/linux/ramips/files/drivers/net/ramips_eth.h @@ -197,6 +197,7 @@ struct raeth_priv unsigned int skb_free_idx; + spinlock_t page_lock; struct ramips_eth_platform_data *plat; }; |