Skip to content

LWIP mailbox size configuration #12046

@pstolarz

Description

@pstolarz

Description of defect

Header features/lwipstack/lwipopts.h enables LWIP mailboxes size configuration, which are there defined as follows:

#define TCPIP_MBOX_SIZE             MBED_CONF_LWIP_TCPIP_MBOX_SIZE
#define DEFAULT_TCP_RECVMBOX_SIZE   MBED_CONF_LWIP_DEFAULT_TCP_RECVMBOX_SIZE
#define DEFAULT_UDP_RECVMBOX_SIZE   8
#define DEFAULT_RAW_RECVMBOX_SIZE   8
#define DEFAULT_ACCEPTMBOX_SIZE     8

Moreover TCP/IP thread mailbox size (MBED_CONF_LWIP_TCPIP_MBOX_SIZE) and TCP receive mailbox size (MBED_CONF_LWIP_DEFAULT_TCP_RECVMBOX_SIZE) may be defined via features/lwipstack/mbed_lib.json, so they are part of mbed-os user configuration interface. (Why only these, not all ?)

The issue is: any configuration here is completely ignored (see sys_mbox_new() routine's queue_sz argument handling in features/lwipstack/lwip-sys/arch/lwip_sys_arch.c). Mailbox size is always set to MB_SIZE (configurable via MBED_CONF_LWIP_MBOX_SIZE) regardless of its type.

Target(s) affected by this defect ?

All

Toolchain(s) (name and version) displaying this defect ?

n/a

What version of Mbed-os are you using (tag or sha) ?

mbed-os-5.14.2

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

n/a

How is this defect reproduced ?

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions