aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ixp4xx
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-11-02 00:44:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-11-02 00:44:01 +0000
commitf923785f4166039da232f9d25d22c2fd51ebfeb5 (patch)
tree96d786d9cea591a3ac03ef225b63343a11f1e6c6 /target/linux/ixp4xx
parent2db1fd2e8d233289895e38b8d5a045d3e6eaefb6 (diff)
downloadupstream-f923785f4166039da232f9d25d22c2fd51ebfeb5.tar.gz
upstream-f923785f4166039da232f9d25d22c2fd51ebfeb5.tar.bz2
upstream-f923785f4166039da232f9d25d22c2fd51ebfeb5.zip
ixp4xx: fix weird ethernet issues with some devices caused by the ethernet packet size increase.
despite what the docs day, 14320 is the largest working MRU value, not 16320 fixes #5785 for me git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18262 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ixp4xx')
-rw-r--r--target/linux/ixp4xx/patches-2.6.28/304-ixp4xx_eth_jumboframe.patch2
-rw-r--r--target/linux/ixp4xx/patches-2.6.30/304-ixp4xx_eth_jumboframe.patch2
-rw-r--r--target/linux/ixp4xx/patches-2.6.31/304-ixp4xx_eth_jumboframe.patch2
3 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ixp4xx/patches-2.6.28/304-ixp4xx_eth_jumboframe.patch b/target/linux/ixp4xx/patches-2.6.28/304-ixp4xx_eth_jumboframe.patch
index f7b5c81b68..8f76f7c27f 100644
--- a/target/linux/ixp4xx/patches-2.6.28/304-ixp4xx_eth_jumboframe.patch
+++ b/target/linux/ixp4xx/patches-2.6.28/304-ixp4xx_eth_jumboframe.patch
@@ -5,7 +5,7 @@
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
#define REGS_SIZE 0x1000
-#define MAX_MRU 1536 /* 0x600 */
-+#define MAX_MRU (16320 - ETH_HLEN - ETH_FCS_LEN)
++#define MAX_MRU (14320 - ETH_HLEN - ETH_FCS_LEN)
#define RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
#define NAPI_WEIGHT 16
diff --git a/target/linux/ixp4xx/patches-2.6.30/304-ixp4xx_eth_jumboframe.patch b/target/linux/ixp4xx/patches-2.6.30/304-ixp4xx_eth_jumboframe.patch
index 9ee3c904c0..b4cf824370 100644
--- a/target/linux/ixp4xx/patches-2.6.30/304-ixp4xx_eth_jumboframe.patch
+++ b/target/linux/ixp4xx/patches-2.6.30/304-ixp4xx_eth_jumboframe.patch
@@ -5,7 +5,7 @@
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
#define REGS_SIZE 0x1000
-#define MAX_MRU 1536 /* 0x600 */
-+#define MAX_MRU (16320 - ETH_HLEN - ETH_FCS_LEN)
++#define MAX_MRU (14320 - ETH_HLEN - ETH_FCS_LEN)
#define RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
#define NAPI_WEIGHT 16
diff --git a/target/linux/ixp4xx/patches-2.6.31/304-ixp4xx_eth_jumboframe.patch b/target/linux/ixp4xx/patches-2.6.31/304-ixp4xx_eth_jumboframe.patch
index 26f5bd953d..a9cbddcf5a 100644
--- a/target/linux/ixp4xx/patches-2.6.31/304-ixp4xx_eth_jumboframe.patch
+++ b/target/linux/ixp4xx/patches-2.6.31/304-ixp4xx_eth_jumboframe.patch
@@ -5,7 +5,7 @@
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
#define REGS_SIZE 0x1000
-#define MAX_MRU 1536 /* 0x600 */
-+#define MAX_MRU (16320 - ETH_HLEN - ETH_FCS_LEN)
++#define MAX_MRU (14320 - ETH_HLEN - ETH_FCS_LEN)
#define RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
#define NAPI_WEIGHT 16