missing header file changes, and fix mtu value
authorJohn Crispin <john@openwrt.org>
Fri, 30 Oct 2009 09:18:40 +0000 (09:18 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 30 Oct 2009 09:18:40 +0000 (09:18 +0000)
SVN-Revision: 18220

target/linux/ramips/files/drivers/net/ramips.c
target/linux/ramips/files/drivers/net/ramips_eth.h

index e78eb6f8d74b8e699d2cf56562f0fce0609061cc..f9ce27241d7e9b960e4d3202994a4e231990f5cb 100644 (file)
@@ -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);
index 891c47b438570adcb0929ef18644a74f5bc3d9c3..ead1b785c0466350b6bba1717c43aa49c9dac3f6 100644 (file)
@@ -197,6 +197,7 @@ struct raeth_priv
 
        unsigned int                    skb_free_idx;
 
+       spinlock_t                              page_lock;
        struct ramips_eth_platform_data *plat;
 };