Kconfig 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file kconfig-language.txt in the NuttX tools repository.
  4. #
  5. menu "TCP/IP Networking"
  6. config NET_TCP
  7. bool "TCP/IP Networking"
  8. default n
  9. ---help---
  10. Enable or disable TCP networking support.
  11. config NET_TCP_NO_STACK
  12. bool "Disable TCP/IP Stack"
  13. default n
  14. select NET_TCP
  15. ---help---
  16. Build without TCP/IP stack even if TCP networking support enabled.
  17. if NET_TCP && !NET_TCP_NO_STACK
  18. config NET_TCP_KEEPALIVE
  19. bool "TCP/IP Keep-alive support"
  20. default n
  21. select NET_TCPPROTO_OPTIONS
  22. ---help---
  23. Enable support for the SO_KEEPALIVE socket option
  24. config NET_TCPURGDATA
  25. bool "Urgent data"
  26. default n
  27. ---help---
  28. Determines if support for TCP urgent data notification should be
  29. compiled in. Urgent data (out-of-band data) is a rarely used TCP feature
  30. that is very seldom would be required.
  31. config NET_TCP_CONNS
  32. int "Number of TCP/IP connections"
  33. default 8
  34. ---help---
  35. Maximum number of TCP/IP connections (all tasks)
  36. config NET_MAX_LISTENPORTS
  37. int "Number of listening ports"
  38. default 20
  39. ---help---
  40. Maximum number of listening TCP/IP ports (all tasks). Default: 20
  41. config TCP_NOTIFIER
  42. bool "Support TCP notifications"
  43. default n
  44. depends on SCHED_WORKQUEUE
  45. select WQUEUE_NOTIFIER
  46. ---help---
  47. Enable building of TCP notifier logic that will execute a worker
  48. function on the low priority work queue when read-ahead data
  49. is available or when a TCP connection is lost. This is is a general
  50. purpose notifier, but was developed specifically to support poll()
  51. logic where the poll must wait for these events.
  52. config NET_TCP_READAHEAD
  53. bool "Enable TCP/IP read-ahead buffering"
  54. default y
  55. select NET_READAHEAD
  56. select MM_IOB
  57. ---help---
  58. Read-ahead buffers allows buffering of TCP/IP packets when there is no
  59. receive in place to catch the TCP packet. In that case, the packet
  60. will be retained in the NuttX read-ahead buffers.
  61. You might want to disable TCP/IP read-ahead buffering on a highly
  62. memory constrained system that does not have any TCP/IP packet rate
  63. issues. But, if disabled, there will probably be more packet
  64. retransmissions or even packet loss.
  65. Make sure that you check the setting in the I/O Buffering menu.
  66. These settings are critical to the reasonable operation of read-
  67. ahead buffering.
  68. config NET_TCP_WRITE_BUFFERS
  69. bool "Enable TCP/IP write buffering"
  70. default n
  71. select NET_WRITE_BUFFERS
  72. select MM_IOB
  73. ---help---
  74. Write buffers allows buffering of ongoing TCP/IP packets, providing
  75. for higher performance, streamed output.
  76. You might want to disable TCP/IP write buffering on a highly memory
  77. memory constrained system where there are no performance issues.
  78. if NET_TCP_WRITE_BUFFERS
  79. config NET_TCP_NWRBCHAINS
  80. int "Number of pre-allocated I/O buffer chain heads"
  81. default 8
  82. ---help---
  83. These tiny nodes are used as "containers" to support queuing of
  84. TCP write buffers. This setting will limit the number of TCP write
  85. operations that can be "in-flight" at any give time. So a good
  86. choice for this value would be the same as the maximum number of
  87. TCP connections.
  88. config NET_TCP_WRBUFFER_DEBUG
  89. bool "Force write buffer debug"
  90. default n
  91. depends on DEBUG_FEATURES
  92. select IOB_DEBUG
  93. ---help---
  94. This option will force debug output from TCP write buffer logic,
  95. even without network debug output. This is not normally something
  96. that would want to do but is convenient if you are debugging the
  97. write buffer logic and do not want to get overloaded with other
  98. network-related debug output.
  99. config NET_TCP_WRBUFFER_DUMP
  100. bool "Force write buffer dump"
  101. default n
  102. depends on DEBUG_NET || NET_TCP_WRBUFFER_DEBUG
  103. select IOB_DEBUG
  104. ---help---
  105. Dump the contents of the write buffers. You do not want to do this
  106. unless you really want to analyze the write buffer transfers in
  107. detail.
  108. endif # NET_TCP_WRITE_BUFFERS
  109. config NET_TCP_RECVDELAY
  110. int "TCP Rx delay"
  111. default 0
  112. ---help---
  113. If NET_TCP_READAHEAD_BUFFERS is undefined, then there will be no buffering
  114. of TCP/IP packets: Any TCP/IP packet received will be ACKed, but its contents
  115. will be dropped in the bit-bucket.
  116. One low-performance option is delay for a short period of time after a
  117. TCP/IP packet is received to see if another comes right behind it. Then
  118. the packet data from both can be combined. This option only makes since
  119. if performance is not an issue and you need to handle short bursts of
  120. small, back-to-back packets. The delay is in units of deciseconds.
  121. config NET_TCPBACKLOG
  122. bool "TCP/IP backlog support"
  123. default n
  124. ---help---
  125. Incoming connections pend in a backlog until accept() is called.
  126. The size of the backlog is selected when listen() is called.
  127. if NET_TCPBACKLOG
  128. config NET_TCPBACKLOG_CONNS
  129. int "TCP backlog conns threshold"
  130. default 8
  131. ---help---
  132. Maximum number of TCP backlog connections (all tasks).
  133. endif # NET_TCPBACKLOG
  134. config NET_TCP_SPLIT
  135. bool "Enable packet splitting"
  136. default n
  137. depends on !NET_TCP_WRITE_BUFFERS
  138. ---help---
  139. send() will not return until the transfer has been ACKed by the
  140. recipient. But under RFC 1122, the host need not ACK each packet
  141. immediately; the host may wait for 500 MS before ACKing. This
  142. combination can cause very slow performance with small transfers are
  143. made to an RFC 1122 client. However, the RFC 1122 must ACK at least
  144. every second (odd) packet.
  145. This option enables logic to trick the RFC 1122 host be exploiting
  146. this last RFC 1122 requirement: If an odd number of packets were to
  147. be sent, then send() will split the last even packet to guarantee
  148. that an even number of packets will be sent and the RFC 1122 host
  149. will ACK the final packet immediately.
  150. if NET_TCP_SPLIT
  151. config NET_TCP_SPLIT_SIZE
  152. int "Split size threshold"
  153. default 40
  154. ---help---
  155. Packets of this size or smaller than this will not be split.
  156. endif # NET_TCP_SPLIT
  157. config NET_SENDFILE
  158. bool "Optimized network sendfile()"
  159. default n
  160. ---help---
  161. Support larger, higher performance sendfile() for transferring
  162. files out a TCP connection.
  163. endif # NET_TCP && !NET_TCP_NO_STACK
  164. endmenu # TCP/IP Networking