rework ar7 profiles to separate dsl firmwares, annex-a being now the default and...
[openwrt/openwrt.git] / target / linux / rb532 / patches-2.6.28 / 008-korina_reset_resource_buffer_size_1536.patch
1 The new value is the one used in the external patch before and allows at
2 least a standard MTU of 1500 to be handled correctly. Impact of this
3 change gets visible when bigger packets are to be received, issuing:
4 | ping -s 492 <IP>
5 and bigger payload sized led to 100% packet loss.
6
7 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
8 ---
9 drivers/net/korina.c | 5 ++++-
10 1 files changed, 4 insertions(+), 1 deletions(-)
11
12 --- a/drivers/net/korina.c
13 +++ b/drivers/net/korina.c
14 @@ -84,7 +84,10 @@
15 #define KORINA_NUM_RDS 64 /* number of receive descriptors */
16 #define KORINA_NUM_TDS 64 /* number of transmit descriptors */
17
18 -#define KORINA_RBSIZE 536 /* size of one resource buffer = Ether MTU */
19 +/* KORINA_RBSIZE is the hardware's default maximum receive
20 + * frame size in bytes. Having this hardcoded means that there
21 + * is no support for MTU sizes greater than 1500. */
22 +#define KORINA_RBSIZE 1536 /* size of one resource buffer = Ether MTU */
23 #define KORINA_RDS_MASK (KORINA_NUM_RDS - 1)
24 #define KORINA_TDS_MASK (KORINA_NUM_TDS - 1)
25 #define RD_RING_SIZE (KORINA_NUM_RDS * sizeof(struct dma_desc))