summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2009-10-30 09:18:40 +0000
committerJohn Crispin <john@openwrt.org>2009-10-30 09:18:40 +0000
commit9364f83dbc5f198c30c10347f7d9fbb9c067c757 (patch)
treece9056b7e83dcdfc1ea26f5e4cf69034cadc4de4 /target
parent72c103416c92f4bf1132e56c2c6d6893afade7f8 (diff)
downloadmtk-20170518-9364f83dbc5f198c30c10347f7d9fbb9c067c757.zip
mtk-20170518-9364f83dbc5f198c30c10347f7d9fbb9c067c757.tar.gz
mtk-20170518-9364f83dbc5f198c30c10347f7d9fbb9c067c757.tar.bz2
missing header file changes, and fix mtu value
SVN-Revision: 18220
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/files/drivers/net/ramips.c2
-rw-r--r--target/linux/ramips/files/drivers/net/ramips_eth.h1
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 e78eb6f..f9ce272 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 891c47b..ead1b78 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;
};