diff options
Diffstat (limited to 'src/Networking/LwipEthernet/Lwip/lwipopts.h')
-rw-r--r-- | src/Networking/LwipEthernet/Lwip/lwipopts.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Networking/LwipEthernet/Lwip/lwipopts.h b/src/Networking/LwipEthernet/Lwip/lwipopts.h index 559aea5c..2f75ab8e 100644 --- a/src/Networking/LwipEthernet/Lwip/lwipopts.h +++ b/src/Networking/LwipEthernet/Lwip/lwipopts.h @@ -179,7 +179,12 @@ /** * PBUF_POOL_SIZE: the number of buffers in the pbuf pool. Needs to be enough for IP packet reassembly. */ -#define PBUF_POOL_SIZE (GMAC_RX_BUFFERS + GMAC_TX_BUFFERS + 12) +#if defined(__SAME70Q20B__) || defined(__SAME70Q21B__) || defined(__SAMV71Q20B__) || defined(__SAMV71Q21B__) +// We may as well use the remainder of the non-cached RAM block for additional pbufs +# define PBUF_POOL_SIZE (GMAC_RX_BUFFERS + GMAC_TX_BUFFERS + 15) +#else +# define PBUF_POOL_SIZE (GMAC_RX_BUFFERS + GMAC_TX_BUFFERS + 12) +#endif /** * PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. |