From b05e3f42e9b7990c2fbc4dc52882e826a2a8dbc1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 30 Apr 2016 00:30:14 +0800 Subject: [PATCH] lwip: set MTU to 9000 to support jumbo frames --- artiq/runtime/liblwip/liteethif.c | 2 +- artiq/runtime/liblwip/lwipopts.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/runtime/liblwip/liteethif.c b/artiq/runtime/liblwip/liteethif.c index 2e57e26b7..ddc2df9cc 100644 --- a/artiq/runtime/liblwip/liteethif.c +++ b/artiq/runtime/liblwip/liteethif.c @@ -131,7 +131,7 @@ err_t liteeth_init(struct netif *netif) netif->name[1] = IFNAME1; netif->output = etharp_output; netif->linkoutput = liteeth_low_level_output; - netif->mtu = 1514; + netif->mtu = 9000; liteethif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]); diff --git a/artiq/runtime/liblwip/lwipopts.h b/artiq/runtime/liblwip/lwipopts.h index 1dc945e96..46bd0ca5b 100644 --- a/artiq/runtime/liblwip/lwipopts.h +++ b/artiq/runtime/liblwip/lwipopts.h @@ -94,10 +94,10 @@ a lot of data that needs to be copied, this should be set high. */ /* ---------- Pbuf options ---------- */ /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ -#define PBUF_POOL_SIZE 512 +#define PBUF_POOL_SIZE 384 /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ -#define PBUF_POOL_BUFSIZE 1536 +#define PBUF_POOL_BUFSIZE 9036 /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a link level header. */