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:
5 and bigger payload sized led to 100% packet loss.
7 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
9 drivers/net/korina.c | 5 ++++-
10 1 files changed, 4 insertions(+), 1 deletions(-)
12 --- a/drivers/net/korina.c
13 +++ b/drivers/net/korina.c
15 #define KORINA_NUM_RDS 64 /* number of receive descriptors */
16 #define KORINA_NUM_TDS 64 /* number of transmit descriptors */
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))