forked from M-Labs/artiq
1
0
Fork 0

lwip: set MTU to 9000 to support jumbo frames

This commit is contained in:
Sebastien Bourdeauducq 2016-04-30 00:30:14 +08:00
parent fc4effb91d
commit dbbd11d798
2 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@ err_t liteeth_init(struct netif *netif)
netif->name[1] = IFNAME1; netif->name[1] = IFNAME1;
netif->output = etharp_output; netif->output = etharp_output;
netif->linkoutput = liteeth_low_level_output; netif->linkoutput = liteeth_low_level_output;
netif->mtu = 1514; netif->mtu = 9000;
liteethif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]); liteethif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);

View File

@ -94,10 +94,10 @@ a lot of data that needs to be copied, this should be set high. */
/* ---------- Pbuf options ---------- */ /* ---------- Pbuf options ---------- */
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ /* 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. */ /* 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 /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a
link level header. */ link level header. */