net/tcp: Make TCP_MAXRTX and TCP_MAXSYNRTX configurable
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
85b4177913
commit
a7e99346a1
@ -499,7 +499,11 @@
|
||||
* This should not be changed.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NET_TCP_MAXRTX
|
||||
# define TCP_MAXRTX CONFIG_NET_TCP_MAXRTX
|
||||
#else
|
||||
# define TCP_MAXRTX 8
|
||||
#endif
|
||||
|
||||
/* The maximum number of times a SYN segment should be retransmitted
|
||||
* before a connection request should be deemed to have been
|
||||
@ -508,7 +512,11 @@
|
||||
* This should not need to be changed.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_NET_TCP_MAXSYNRTX
|
||||
# define TCP_MAXSYNRTX CONFIG_NET_TCP_MAXSYNRTX
|
||||
#else
|
||||
# define TCP_MAXSYNRTX 5
|
||||
#endif
|
||||
|
||||
/* The TCP maximum segment size. This should not be set to more than
|
||||
* NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
|
||||
|
@ -67,6 +67,14 @@ config NET_TCP_RTO
|
||||
---help---
|
||||
RTO of TCP/IP connections (all tasks)
|
||||
|
||||
config NET_TCP_MAXRTX
|
||||
int "Maximum retransmitted number of TCP/IP data packet"
|
||||
default 8
|
||||
|
||||
config NET_TCP_MAXSYNRTX
|
||||
int "Maximum retransmitted number of TCP/IP SYN packet"
|
||||
default 5
|
||||
|
||||
config NET_TCP_WAIT_TIMEOUT
|
||||
int "TIME_WAIT Length of TCP/IP connections"
|
||||
default 120
|
||||
|
Loading…
Reference in New Issue
Block a user