summaryrefslogtreecommitdiff
path: root/nuttx/net/tcp/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/tcp/Kconfig')
-rw-r--r--nuttx/net/tcp/Kconfig47
1 files changed, 20 insertions, 27 deletions
diff --git a/nuttx/net/tcp/Kconfig b/nuttx/net/tcp/Kconfig
index 1d41e762a..5989d3d90 100644
--- a/nuttx/net/tcp/Kconfig
+++ b/nuttx/net/tcp/Kconfig
@@ -82,6 +82,7 @@ endif # NET_TCP_READAHEAD
config NET_TCP_WRITE_BUFFERS
bool "Enable TCP/IP write buffering"
default n
+ select NET_IOB
---help---
Write buffers allows buffering of ongoing TCP/IP packets, providing
for higher performance, streamed output.
@@ -91,46 +92,38 @@ config NET_TCP_WRITE_BUFFERS
if NET_TCP_WRITE_BUFFERS
-config NET_TCP_WRITE_BUFSIZE
- int "TCP/IP write buffer size"
- default 1220 if !NET_SLIP && NET_IPv6
- default 536 if !NET_SLIP && !NET_IPv6
- default 256 if NET_SLIP && !NET_IPv6
- ---help---
- Write buffers allows buffering of ongoing TCP/IP packets, providing
- for higher performance, streamed output.
-
- The size of the write buffer will determine the maximum size of an
- outgoing TCP packet payload (MSS). This value should NOT exceed the
- maximum MSS which is determined by NET_BUFSIZE minus the size of
- TCP, IP, and Ethernet headers (assuming you are using the Ethernet
- transport). IPv4 hosts are required to be able to handle an MSS
- of 536 octets and IPv6 hosts are required to be able to handle an
- MSS of 1220 octets.
-
- This setting specifies the size of one TCP/IP write buffer. This
- should best be a equal to the maximum packet size (NET_BUFSIZE).
-
-config NET_NTCP_WRITE_BUFFERS
- int "Number of TCP/IP write buffers"
+config NET_TCP_NWRBCHAINS
+ int "Number of pre-allocated I/O buffer chain heads"
default 8
---help---
- Write buffers allows buffering of ongoing TCP/IP packets, providing
- for higher performance, streamed output.
-
- This setting specifies the number of TCP/IP write buffers.
+ These tiny nodes are used as "containers" to support queueing of
+ TCP write buffers. This setting will limit the number of TCP write
+ operations that can be "in-flight" at any give time. So a good
+ choice for this value would be the same as the maximum number of
+ TCP connections.
config NET_TCP_WRBUFFER_DEBUG
bool "Force write buffer debug"
default n
depends on DEBUG
+ select NET_IOB_DEBUG
---help---
This option will force debug output from TCP write buffer logic,
- even with network debug output. This is not normally something
+ even without network debug output. This is not normally something
that would want to do but is convenient if you are debugging the
write buffer logic and do not want to get overloaded with other
network-related debug output.
+config NET_TCP_WRBUFFER_DUMP
+ bool "Force write buffer dump"
+ default n
+ depends on DEBUG_NET || NET_TCP_WRBUFFER_DEBUG
+ select NET_IOB_DEBUG
+ ---help---
+ Dump the contents of the write buffers. You do not want to do this
+ unless you really want to analyze the write buffer transfers in
+ detail.
+
endif # NET_TCP_WRITE_BUFFERS
config NET_TCP_RECVDELAY