net/ip; increase the default pbuf pool, listen socket count to allow inet_def_service to operate.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/66ae3dfe Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/66ae3dfe Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/66ae3dfe Branch: refs/heads/master Commit: 66ae3dfe4665f07c9231f65c6b52e55130dc3014 Parents: 1eaee93 Author: Marko Kiiskila <[email protected]> Authored: Fri Apr 14 12:50:29 2017 -0700 Committer: Marko Kiiskila <[email protected]> Committed: Fri Apr 14 13:21:30 2017 -0700 ---------------------------------------------------------------------- net/ip/include/lwipopts.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/66ae3dfe/net/ip/include/lwipopts.h ---------------------------------------------------------------------- diff --git a/net/ip/include/lwipopts.h b/net/ip/include/lwipopts.h index e409b2f..7382692 100644 --- a/net/ip/include/lwipopts.h +++ b/net/ip/include/lwipopts.h @@ -80,7 +80,7 @@ extern "C" { #define MEMP_NUM_TCP_PCB 3 /* XXX */ /* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections. */ -#define MEMP_NUM_TCP_PCB_LISTEN 1 +#define MEMP_NUM_TCP_PCB_LISTEN 3 /* MEMP_NUM_TCP_SEG: the number of simultaneously queued TCP segments. */ #define MEMP_NUM_TCP_SEG (TCP_SND_QUEUELEN + 1) @@ -101,12 +101,18 @@ extern "C" { /* ---------- Pbuf options ---------- */ /* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */ #ifndef PBUF_POOL_SIZE -#define PBUF_POOL_SIZE 3 +#define PBUF_POOL_SIZE 6 #endif /* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */ #define PBUF_POOL_BUFSIZE 1580 +/* + * Disable this; causes excessive stack use in device drivers calling + * pbuf_alloc() + */ +#define PBUF_POOL_FREE_OOSEQ 0 + /* PBUF_LINK_HLEN: the number of bytes that should be allocated for a link level header. */ #define PBUF_LINK_HLEN 16
