2014-06-04 02:41:34 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 22:08:57 +08:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2014-06-04 02:41:34 +08:00
|
|
|
#
|
|
|
|
|
2014-06-26 01:01:08 +08:00
|
|
|
menu "Network I/O Buffer Support"
|
|
|
|
|
2014-06-04 02:41:34 +08:00
|
|
|
config NET_IOB
|
2014-06-26 01:01:08 +08:00
|
|
|
bool "Enable generic network I/O buffer support"
|
2014-06-04 02:41:34 +08:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
This setting will build the networking I/O buffer (IOB) support
|
|
|
|
library.
|
|
|
|
|
|
|
|
if NET_IOB
|
|
|
|
|
|
|
|
config IOB_NBUFFERS
|
|
|
|
int "Number of pre-allocated network I/O buffers"
|
2014-06-25 01:53:19 +08:00
|
|
|
default 24 if (NET_TCP_WRITE_BUFFERS && !NET_TCP_READAHEAD) || (!NET_TCP_WRITE_BUFFERS && NET_TCP_READAHEAD)
|
|
|
|
default 36 if NET_TCP_WRITE_BUFFERS && NET_TCP_READAHEAD
|
|
|
|
default 8 if !NET_TCP_WRITE_BUFFERS && !NET_TCP_READAHEAD
|
2014-06-04 02:41:34 +08:00
|
|
|
---help---
|
|
|
|
Each packet is represented by a series of small I/O buffers in a
|
|
|
|
chain. This setting determines the number of preallocated I/O
|
|
|
|
buffers available for packet data.
|
|
|
|
|
|
|
|
config IOB_BUFSIZE
|
|
|
|
int "Payload size of one network I/O buffer"
|
2014-06-13 03:32:07 +08:00
|
|
|
default 196
|
2014-06-04 02:41:34 +08:00
|
|
|
---help---
|
|
|
|
Each packet is represented by a series of small I/O buffers in a
|
|
|
|
chain. This setting determines the data payload each preallocated
|
|
|
|
I/O buffer.
|
|
|
|
|
2014-06-06 23:35:31 +08:00
|
|
|
config IOB_NCHAINS
|
|
|
|
int "Number of pre-allocated I/O buffer chain heads"
|
2015-02-10 20:25:55 +08:00
|
|
|
default 0 if !NET_TCP_READAHEAD && !NET_UDP_READAHEAD
|
|
|
|
default 8 if NET_TCP_READAHEAD || NET_UDP_READAHEAD
|
2014-06-06 23:35:31 +08:00
|
|
|
---help---
|
2014-06-23 01:27:57 +08:00
|
|
|
These tiny nodes are used as "containers" to support queueing of
|
2014-06-06 23:35:31 +08:00
|
|
|
I/O buffer chains. This will limit the number of I/O transactions
|
2014-06-23 01:27:57 +08:00
|
|
|
that can be "in-flight" at any give time. The default value of
|
|
|
|
zero disables this features.
|
|
|
|
|
|
|
|
These generic I/O buffer chain containers are not currently used
|
|
|
|
by any logic in NuttX. That is because their other other specialized
|
|
|
|
I/O buffer chain containers that also carry a payload of usage
|
|
|
|
specific information.
|
2014-06-06 23:35:31 +08:00
|
|
|
|
2014-06-25 01:53:19 +08:00
|
|
|
config IOB_THROTTLE
|
|
|
|
int "I/O buffer throttle value"
|
|
|
|
default 0 if !NET_TCP_WRITE_BUFFERS || !NET_TCP_READAHEAD
|
2014-06-25 05:38:00 +08:00
|
|
|
default 8 if NET_TCP_WRITE_BUFFERS && NET_TCP_READAHEAD
|
|
|
|
depends on NET_TCP_WRITE_BUFFERS && NET_TCP_READAHEAD
|
2014-06-25 01:53:19 +08:00
|
|
|
---help---
|
|
|
|
TCP write buffering and read-ahead buffer use the same pool of free
|
|
|
|
I/O buffers. In order to prevent uncontrolled incoming TCP packets
|
|
|
|
from hogging all of the available, pre-allocated I/O buffers, a
|
|
|
|
throttling value is required. This throttle value assures that
|
|
|
|
I/O buffers will be denied to the read-ahead logic before TCP writes
|
|
|
|
are halted.
|
|
|
|
|
|
|
|
config IOB_DEBUG
|
2014-06-23 06:25:26 +08:00
|
|
|
bool "Force I/O buffer debug"
|
|
|
|
default n
|
2016-06-12 04:14:08 +08:00
|
|
|
depends on DEBUG_FEATURES
|
2014-06-23 06:25:26 +08:00
|
|
|
---help---
|
|
|
|
This option will force debug output from I/O buffer logic,
|
|
|
|
even without network debug output. This is not normally something
|
|
|
|
that would want to do but is convenient if you are debugging the
|
|
|
|
I/O buffer logic and do not want to get overloaded with other
|
|
|
|
network-related debug output.
|
|
|
|
|
2014-06-04 02:41:34 +08:00
|
|
|
endif # NET_IOB
|
2014-06-26 01:01:08 +08:00
|
|
|
endmenu # Network I/O buffer support
|