mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-25 12:57:56 +02:00
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
This commit is contained in:
parent
6e82572b17
commit
17747ab1ac
@ -5,7 +5,7 @@
|
|||||||
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
|
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
|
||||||
#define REGS_SIZE 0x1000
|
#define REGS_SIZE 0x1000
|
||||||
-#define MAX_MRU 1536 /* 0x600 */
|
-#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 RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
|
||||||
|
|
||||||
#define NAPI_WEIGHT 16
|
#define NAPI_WEIGHT 16
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
|
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
|
||||||
#define REGS_SIZE 0x1000
|
#define REGS_SIZE 0x1000
|
||||||
-#define MAX_MRU 1536 /* 0x600 */
|
-#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 RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
|
||||||
|
|
||||||
#define NAPI_WEIGHT 16
|
#define NAPI_WEIGHT 16
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
|
#define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS))
|
||||||
#define REGS_SIZE 0x1000
|
#define REGS_SIZE 0x1000
|
||||||
-#define MAX_MRU 1536 /* 0x600 */
|
-#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 RX_BUFF_SIZE ALIGN((NET_IP_ALIGN) + MAX_MRU, 4)
|
||||||
|
|
||||||
#define NAPI_WEIGHT 16
|
#define NAPI_WEIGHT 16
|
||||||
|
Loading…
x
Reference in New Issue
Block a user