Skip to content

Commit

Permalink
Revert "lwip: set MTU to 9000 to support jumbo frames"
Browse files Browse the repository at this point in the history
This reverts commit dbbd11d.

Breaks more than it fixes.
jordens committed Apr 30, 2016
1 parent de73bd1 commit ff721ff
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion artiq/runtime/liblwip/liteethif.c
Original file line number Diff line number Diff line change
@@ -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 = 9000;
netif->mtu = 1514;

liteethif->ethaddr = (struct eth_addr *)&(netif->hwaddr[0]);

4 changes: 2 additions & 2 deletions artiq/runtime/liblwip/lwipopts.h
Original file line number Diff line number Diff line change
@@ -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 384
#define PBUF_POOL_SIZE 512

/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
#define PBUF_POOL_BUFSIZE 9036
#define PBUF_POOL_BUFSIZE 1536

/* PBUF_LINK_HLEN: the number of bytes that should be allocated for a
link level header. */

0 comments on commit ff721ff

Please sign in to comment.