2014-06-03 20:41:34 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2014-06-03 20:41:34 +02:00
|
|
|
#
|
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
menu "Common I/O Buffer Support"
|
2014-06-25 19:01:08 +02:00
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
config MM_IOB
|
2017-04-21 00:08:49 +02:00
|
|
|
bool "Enable generic I/O buffer support"
|
2014-06-03 20:41:34 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2017-04-21 00:08:49 +02:00
|
|
|
This setting will build the common I/O buffer (IOB) support
|
2014-06-03 20:41:34 +02:00
|
|
|
library.
|
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
if MM_IOB
|
2014-06-03 20:41:34 +02:00
|
|
|
|
|
|
|
config IOB_NBUFFERS
|
2017-04-21 00:08:49 +02:00
|
|
|
int "Number of pre-allocated I/O buffers"
|
2020-01-11 04:56:03 +01:00
|
|
|
default 36 if NET_WRITE_BUFFERS
|
|
|
|
default 24 if !NET_WRITE_BUFFERS && NET_READAHEAD
|
2018-01-23 01:32:02 +01:00
|
|
|
default 8 if !NET_WRITE_BUFFERS && !NET_READAHEAD
|
2014-06-03 20:41:34 +02: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 00:08:49 +02:00
|
|
|
int "Payload size of one I/O buffer"
|
2014-06-12 21:32:07 +02:00
|
|
|
default 196
|
2014-06-03 20:41:34 +02: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.
|
|
|
|
|
2022-08-11 10:54:08 +02:00
|
|
|
config IOB_HEADSIZE
|
|
|
|
int "Head size of each I/O buffer"
|
|
|
|
default 0
|
|
|
|
---help---
|
|
|
|
This setting determines the reserved size in front of the payload
|
|
|
|
buffer in each I/O buffer.
|
|
|
|
|
|
|
|
config IOB_ALIGNMENT
|
|
|
|
int "Alignment size of each I/O buffer"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
The member io_head of all I/O buffers is aligned to the value
|
|
|
|
specified by this configuration.
|
|
|
|
|
2022-08-12 10:59:18 +02:00
|
|
|
config IOB_SECTION
|
|
|
|
string "The section where iob buffer is located"
|
|
|
|
---help---
|
|
|
|
The section where iob buffer is located.
|
|
|
|
The section must be zero-initialized on system boot.
|
|
|
|
|
2014-06-06 17:35:31 +02:00
|
|
|
config IOB_NCHAINS
|
|
|
|
int "Number of pre-allocated I/O buffer chain heads"
|
2020-01-11 04:56:03 +01:00
|
|
|
default 0 if !NET_READAHEAD
|
|
|
|
default IOB_NBUFFERS if NET_READAHEAD
|
2014-06-06 17:35:31 +02:00
|
|
|
---help---
|
2014-06-22 19:27:57 +02:00
|
|
|
These tiny nodes are used as "containers" to support queueing of
|
2014-06-06 17:35:31 +02:00
|
|
|
I/O buffer chains. This will limit the number of I/O transactions
|
2014-06-22 19:27:57 +02: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
|
2021-03-15 07:50:25 +01:00
|
|
|
by any logic in NuttX. That is because their other specialized
|
2014-06-22 19:27:57 +02:00
|
|
|
I/O buffer chain containers that also carry a payload of usage
|
|
|
|
specific information.
|
2014-06-06 17:35:31 +02:00
|
|
|
|
2021-06-30 07:44:23 +02:00
|
|
|
Note: TCP doesn't use this.
|
|
|
|
Note: UDP and CAN use this.
|
|
|
|
|
2014-06-24 19:53:19 +02:00
|
|
|
config IOB_THROTTLE
|
|
|
|
int "I/O buffer throttle value"
|
2018-01-23 01:32:02 +01:00
|
|
|
default 0 if !NET_WRITE_BUFFERS || !NET_READAHEAD
|
|
|
|
default 8 if NET_WRITE_BUFFERS && NET_READAHEAD
|
2014-06-24 19:53:19 +02: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.
|
|
|
|
|
2018-09-08 19:21:18 +02:00
|
|
|
config IOB_NOTIFIER
|
|
|
|
bool "Support IOB notifications"
|
|
|
|
default n
|
2019-01-27 18:02:56 +01:00
|
|
|
depends on SCHED_WORKQUEUE
|
2018-09-11 15:22:23 +02:00
|
|
|
select WQUEUE_NOTIFIER
|
2018-09-08 19:21:18 +02:00
|
|
|
---help---
|
2018-09-09 23:01:44 +02:00
|
|
|
Enable building of IOB notifier logic that will execute a worker
|
|
|
|
function on the high priority work queue when an IOB is available.
|
|
|
|
This is is a general purpose notifier, but was developed specifically to
|
|
|
|
support poll() logic where the poll must wait for an IOB to become
|
|
|
|
available.
|
2018-09-08 19:21:18 +02:00
|
|
|
|
2018-09-13 14:53:58 +02:00
|
|
|
config IOB_NOTIFIER_DIV
|
|
|
|
int "Notification divider"
|
|
|
|
default 4
|
|
|
|
range 1 64
|
|
|
|
depends on IOB_NOTIFIER
|
|
|
|
---help---
|
|
|
|
IOBs may become available at very high rates and the resulting
|
|
|
|
notification processing can be substantial even if there is nothing
|
|
|
|
waiting for a free IOB. This divider will reduce that rate of
|
|
|
|
notification. This must be an even power of two. Supported values
|
|
|
|
include: 1, 2, 4, 8, 16, 32, 64. The default value of 4 means that
|
|
|
|
a notification will be sent only when there are a multiple of 4 IOBs
|
|
|
|
available.
|
|
|
|
|
2014-06-24 19:53:19 +02:00
|
|
|
config IOB_DEBUG
|
2014-06-23 00:25:26 +02:00
|
|
|
bool "Force I/O buffer debug"
|
|
|
|
default n
|
2017-05-16 19:03:35 +02:00
|
|
|
depends on DEBUG_FEATURES && !SYSLOG_BUFFER
|
2014-06-23 00:25:26 +02:00
|
|
|
---help---
|
2017-04-21 00:08:49 +02: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 00:25:26 +02:00
|
|
|
|
2017-05-20 16:50:05 +02:00
|
|
|
NOTE that this selection is not available if IOBs are being used
|
2017-05-16 19:03:35 +02:00
|
|
|
to syslog buffering logic (CONFIG_SYSLOG_BUFFER=y)!
|
|
|
|
|
2017-05-09 15:34:59 +02:00
|
|
|
endif # MM_IOB
|
2017-04-21 00:08:49 +02:00
|
|
|
endmenu # Common I/O buffer support
|