diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-07-21 15:50:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-07-21 15:50:56 +0000 |
commit | fca68688ccf41a5eba1bf5635eb367b988ed56f3 (patch) | |
tree | 04ccb3cf6f5ba446247fdd347a65b976b31e55f6 /openwrt/target | |
parent | 29a4b712e8658f13bf6f836943ec81d7cbcd3b73 (diff) | |
download | mtk-20170518-fca68688ccf41a5eba1bf5635eb367b988ed56f3.zip mtk-20170518-fca68688ccf41a5eba1bf5635eb367b988ed56f3.tar.gz mtk-20170518-fca68688ccf41a5eba1bf5635eb367b988ed56f3.tar.bz2 |
fix ethernet driver crash when using bridging
SVN-Revision: 1521
Diffstat (limited to 'openwrt/target')
-rw-r--r-- | openwrt/target/linux/linux-2.4/patches/ar7/003-net_driver_cpmac.patch | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/openwrt/target/linux/linux-2.4/patches/ar7/003-net_driver_cpmac.patch b/openwrt/target/linux/linux-2.4/patches/ar7/003-net_driver_cpmac.patch index e2b2ddd..3da85ce 100644 --- a/openwrt/target/linux/linux-2.4/patches/ar7/003-net_driver_cpmac.patch +++ b/openwrt/target/linux/linux-2.4/patches/ar7/003-net_driver_cpmac.patch @@ -815,8 +815,8 @@ diff -urN linux.old/drivers/net/avalanche_cpmac/cpcommon_cpmac.h linux.dev/drive + diff -urN linux.old/drivers/net/avalanche_cpmac/cpmac.c linux.dev/drivers/net/avalanche_cpmac/cpmac.c --- linux.old/drivers/net/avalanche_cpmac/cpmac.c 1970-01-01 01:00:00.000000000 +0100 -+++ linux.dev/drivers/net/avalanche_cpmac/cpmac.c 2005-07-12 03:21:00.298934472 +0200 -@@ -0,0 +1,2509 @@ ++++ linux.dev/drivers/net/avalanche_cpmac/cpmac.c 2005-07-22 01:03:12.609318544 +0200 +@@ -0,0 +1,2504 @@ +/****************************************************************************** + * FILE PURPOSE: CPMAC Linux Network Device Driver Source + ****************************************************************************** @@ -3035,12 +3035,7 @@ diff -urN linux.old/drivers/net/avalanche_cpmac/cpmac.c linux.dev/drivers/net/av + skb_trim(p_skb, packet_size); +#endif + -+#ifndef TI_SLOW_PATH -+ /* TI Optimization: This is NOT required if the ethernet resides below the bridge. But is -+ * required only if the ethernet is directly connected to the IP stack. */ -+ if (p_dev->br_port == NULL) -+#endif -+ p_skb->protocol = eth_type_trans(p_skb, p_dev); ++ p_skb->protocol = eth_type_trans(p_skb, p_dev); + + netif_rx(p_skb); + |