summaryrefslogtreecommitdiff
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
commit426c8da71df7a8a283f06bee023abb4d8ddaa30b (patch)
treeea813d326f79ded1864264d63c65ccbfb82a8680 /target/linux/ixp4xx
parent11f5bc1909b38588e7f836cfcebd0600eb77dc96 (diff)
downloadmtk-20170518-426c8da71df7a8a283f06bee023abb4d8ddaa30b.zip
mtk-20170518-426c8da71df7a8a283f06bee023abb4d8ddaa30b.tar.gz
mtk-20170518-426c8da71df7a8a283f06bee023abb4d8ddaa30b.tar.bz2
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
SVN-Revision: 18262
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 f7b5c81..8f76f7c 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 9ee3c90..b4cf824 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 26f5bd9..a9cbddc 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