From 012fadd77f35b7bc4475f2c296a5101cea64a9a6 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 18 Oct 2020 02:34:43 +0200 Subject: [PATCH] PPP: enable PPP_USE_PBUF_RAM by default We need PBUF_RAM for quite a while for PPP, e.g. through pbuf_coalesce and for all PPP transmit paths. There are no real reason to keep allocating packets from PBUF_POOL for PPP control packets transmit path by default today. --- src/include/netif/ppp/ppp_opts.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/netif/ppp/ppp_opts.h b/src/include/netif/ppp/ppp_opts.h index 2a0dc126..e907c4cb 100644 --- a/src/include/netif/ppp/ppp_opts.h +++ b/src/include/netif/ppp/ppp_opts.h @@ -191,11 +191,11 @@ * that are not going to be chained when allocated. This requires setting * PBUF_POOL_BUFSIZE to at least 512 bytes, which is quite huge for small systems. * - * Setting PPP_USE_PBUF_RAM to 1 makes PPP use memory from heap where continuous - * buffers are required, allowing you to use a smaller PBUF_POOL_BUFSIZE. + * Setting PPP_USE_PBUF_RAM to 1 makes PPP use memory from heap where buffers are + * continuous by design, allowing you to use a smaller PBUF_POOL_BUFSIZE. */ #ifndef PPP_USE_PBUF_RAM -#define PPP_USE_PBUF_RAM 0 +#define PPP_USE_PBUF_RAM 1 #endif /**