Merge branch 'feature/lwip_socket_pcb_num_config' into 'master'
lwip: Expose number of active socket limits in menuconfig See merge request !1433
This commit is contained in:
commit
3607b404c0
2 changed files with 57 additions and 7 deletions
|
@ -97,11 +97,11 @@ config LWIP_ETHARP_TRUST_IP_MAC
|
||||||
Also notice that this slows down input processing of every IP packet!
|
Also notice that this slows down input processing of every IP packet!
|
||||||
|
|
||||||
config TCPIP_RECVMBOX_SIZE
|
config TCPIP_RECVMBOX_SIZE
|
||||||
int "TCPIP receive mail box size"
|
int "TCPIP task receive mail box size"
|
||||||
default 32
|
default 32
|
||||||
range 6 64
|
range 6 64
|
||||||
help
|
help
|
||||||
Set TCPIP receive mail box size. Generally bigger value means higher throughput
|
Set TCPIP task receive mail box size. Generally bigger value means higher throughput
|
||||||
but more memory. The value should be bigger than UDP/TCP mail box size.
|
but more memory. The value should be bigger than UDP/TCP mail box size.
|
||||||
|
|
||||||
config LWIP_DHCP_DOES_ARP_CHECK
|
config LWIP_DHCP_DOES_ARP_CHECK
|
||||||
|
@ -172,6 +172,33 @@ config LWIP_LOOPBACK_MAX_PBUFS
|
||||||
|
|
||||||
menu "TCP"
|
menu "TCP"
|
||||||
|
|
||||||
|
config LWIP_MAX_ACTIVE_TCP
|
||||||
|
int "Maximum active TCP Connections"
|
||||||
|
range 1 1024
|
||||||
|
default 16
|
||||||
|
help
|
||||||
|
The maximum number of simultaneously active TCP
|
||||||
|
connections. The practical maximum limit is
|
||||||
|
determined by available heap memory at runtime.
|
||||||
|
|
||||||
|
Changing this value by itself does not substantially
|
||||||
|
change the memory usage of LWIP, except for preventing
|
||||||
|
new TCP connections after the limit is reached.
|
||||||
|
|
||||||
|
config LWIP_MAX_LISTENING_TCP
|
||||||
|
int "Maximum listening TCP Connections"
|
||||||
|
range 1 1024
|
||||||
|
default 16
|
||||||
|
help
|
||||||
|
The maximum number of simultaneously listening TCP
|
||||||
|
connections. The practical maximum limit is
|
||||||
|
determined by available heap memory at runtime.
|
||||||
|
|
||||||
|
Changing this value by itself does not substantially
|
||||||
|
change the memory usage of LWIP, except for preventing
|
||||||
|
new listening TCP connections after the limit is reached.
|
||||||
|
|
||||||
|
|
||||||
config TCP_MAXRTX
|
config TCP_MAXRTX
|
||||||
int "Maximum number of retransmissions of data segments"
|
int "Maximum number of retransmissions of data segments"
|
||||||
default 12
|
default 12
|
||||||
|
@ -287,6 +314,16 @@ endmenu # TCP
|
||||||
|
|
||||||
menu "UDP"
|
menu "UDP"
|
||||||
|
|
||||||
|
config LWIP_MAX_UDP_PCBS
|
||||||
|
int "Maximum active UDP control blocks"
|
||||||
|
range 1 1024
|
||||||
|
default 16
|
||||||
|
help
|
||||||
|
The maximum number of active UDP "connections" (ie
|
||||||
|
UDP sockets sending/receiving data).
|
||||||
|
The practical maximum limit is determined by available
|
||||||
|
heap memory at runtime.
|
||||||
|
|
||||||
config UDP_RECVMBOX_SIZE
|
config UDP_RECVMBOX_SIZE
|
||||||
int "Default UDP receive mail box size"
|
int "Default UDP receive mail box size"
|
||||||
default 6
|
default 6
|
||||||
|
@ -372,4 +409,17 @@ config LWIP_BROADCAST_PING
|
||||||
|
|
||||||
endmenu # ICMP
|
endmenu # ICMP
|
||||||
|
|
||||||
|
menu "LWIP RAW API"
|
||||||
|
|
||||||
|
config LWIP_MAX_RAW_PCBS
|
||||||
|
int "Maximum LWIP RAW PCBs"
|
||||||
|
range 1 1024
|
||||||
|
default 16
|
||||||
|
help
|
||||||
|
The maximum number of simultaneously active LWIP
|
||||||
|
RAW protocol control blocks. The practical maximum
|
||||||
|
limit is determined by available heap memory at runtime.
|
||||||
|
|
||||||
|
endmenu # LWIP RAW API
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -112,26 +112,26 @@
|
||||||
* MEMP_NUM_RAW_PCB: Number of raw connection PCBs
|
* MEMP_NUM_RAW_PCB: Number of raw connection PCBs
|
||||||
* (requires the LWIP_RAW option)
|
* (requires the LWIP_RAW option)
|
||||||
*/
|
*/
|
||||||
#define MEMP_NUM_RAW_PCB 16
|
#define MEMP_NUM_RAW_PCB CONFIG_LWIP_MAX_RAW_PCBS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MEMP_NUM_TCP_PCB: the number of simulatenously active TCP connections.
|
* MEMP_NUM_TCP_PCB: the number of simultaneously active TCP connections.
|
||||||
* (requires the LWIP_TCP option)
|
* (requires the LWIP_TCP option)
|
||||||
*/
|
*/
|
||||||
#define MEMP_NUM_TCP_PCB 16
|
#define MEMP_NUM_TCP_PCB CONFIG_LWIP_MAX_ACTIVE_TCP
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections.
|
* MEMP_NUM_TCP_PCB_LISTEN: the number of listening TCP connections.
|
||||||
* (requires the LWIP_TCP option)
|
* (requires the LWIP_TCP option)
|
||||||
*/
|
*/
|
||||||
#define MEMP_NUM_TCP_PCB_LISTEN 16
|
#define MEMP_NUM_TCP_PCB_LISTEN CONFIG_LWIP_MAX_LISTENING_TCP
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
|
* MEMP_NUM_UDP_PCB: the number of UDP protocol control blocks. One
|
||||||
* per active UDP "connection".
|
* per active UDP "connection".
|
||||||
* (requires the LWIP_UDP option)
|
* (requires the LWIP_UDP option)
|
||||||
*/
|
*/
|
||||||
#define MEMP_NUM_UDP_PCB 16
|
#define MEMP_NUM_UDP_PCB CONFIG_LWIP_MAX_UDP_PCBS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
Loading…
Reference in a new issue