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
|
|
|
#
|
|
|
|
|
2017-05-09 21:34:59 +08:00
|
|
|
menu "Common I/O Buffer Support"
|
2014-06-26 01:01:08 +08:00
|
|
|
|
2017-05-09 21:34:59 +08:00
|
|
|
config MM_IOB
|
2017-04-21 06:08:49 +08:00
|
|
|
bool "Enable generic I/O buffer support"
|
2014-06-04 02:41:34 +08:00
|
|
|
default n
|
|
|
|
---help---
|
2017-04-21 06:08:49 +08:00
|
|
|
This setting will build the common I/O buffer (IOB) support
|
2014-06-04 02:41:34 +08:00
|
|
|
library.
|
|
|
|
|
2017-05-09 21:34:59 +08:00
|
|
|
if MM_IOB
|
2014-06-04 02:41:34 +08:00
|
|
|
|
|
|
|
config IOB_NBUFFERS
|
2017-04-21 06:08:49 +08:00
|
|
|
int "Number of pre-allocated I/O buffers"
|
2018-01-23 08:32:02 +08:00
|
|
|
default 24 if (NET_WRITE_BUFFERS && !NET_READAHEAD) || (!NET_WRITE_BUFFERS && NET_READAHEAD)
|
|
|
|
default 36 if NET_WRITE_BUFFERS && NET_READAHEAD
|
|
|
|
default 8 if !NET_WRITE_BUFFERS && !NET_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
|
2017-04-21 06:08:49 +08:00
|
|
|
int "Payload size of one 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"
|
2018-01-23 08:32:02 +08:00
|
|
|
default 0 if !NET_READAHEAD && !NET_UDP_READAHEAD
|
|
|
|
default 8 if NET_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"
|
2018-01-23 08:32:02 +08:00
|
|
|
default 0 if !NET_WRITE_BUFFERS || !NET_READAHEAD
|
|
|
|
default 8 if NET_WRITE_BUFFERS && NET_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
|
2017-05-17 01:03:35 +08:00
|
|
|
depends on DEBUG_FEATURES && !SYSLOG_BUFFER
|
2014-06-23 06:25:26 +08:00
|
|
|
---help---
|
2017-04-21 06:08:49 +08:00
|
|
|
This option will force debug output from I/O buffer logic. 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 un-related debug output.
|
2014-06-23 06:25:26 +08:00
|
|
|
|
2017-05-20 22:50:05 +08:00
|
|
|
NOTE that this selection is not available if IOBs are being used
|
2017-05-17 01:03:35 +08:00
|
|
|
to syslog buffering logic (CONFIG_SYSLOG_BUFFER=y)!
|
|
|
|
|
2017-05-09 21:34:59 +08:00
|
|
|
endif # MM_IOB
|
2017-04-21 06:08:49 +08:00
|
|
|
endmenu # Common I/O buffer support
|