2015-05-21 00:40:39 +08:00
|
|
|
# Kconfig - net stack configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
|
|
|
|
2016-06-22 15:21:53 +08:00
|
|
|
menu "Networking"
|
2015-06-20 22:47:30 +08:00
|
|
|
|
2015-10-07 23:32:54 +08:00
|
|
|
config NET_BUF
|
|
|
|
bool "Network buffer support"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option enables support for generic network protocol
|
|
|
|
buffers.
|
2015-10-07 23:32:54 +08:00
|
|
|
|
2018-02-07 01:16:49 +08:00
|
|
|
if NET_BUF
|
|
|
|
|
|
|
|
config NET_BUF_USER_DATA_SIZE
|
|
|
|
int "Size of user_data available in every network buffer"
|
2018-02-10 21:47:44 +08:00
|
|
|
default 4
|
2018-06-12 20:07:08 +08:00
|
|
|
range 4 65535 if BT
|
2018-02-10 21:47:44 +08:00
|
|
|
range 0 65535
|
2018-02-07 01:16:49 +08:00
|
|
|
help
|
|
|
|
Amount of memory reserved in each network buffer for user data. In
|
|
|
|
most cases this can be left as the default value.
|
|
|
|
|
2016-12-15 18:18:30 +08:00
|
|
|
config NET_BUF_LOG
|
|
|
|
bool "Network buffer logging"
|
2018-09-03 18:29:42 +08:00
|
|
|
select LOG
|
2015-10-07 23:32:54 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable logs and checks for the generic network buffers.
|
2015-10-07 23:32:54 +08:00
|
|
|
|
2018-02-07 01:16:49 +08:00
|
|
|
if NET_BUF_LOG
|
2018-09-03 18:29:42 +08:00
|
|
|
|
|
|
|
module=NET_BUF
|
|
|
|
module-dep=LOG
|
|
|
|
module-str=Log level for network buffer handling
|
|
|
|
module-help=Sets log level for network buffers.
|
|
|
|
source "subsys/net/Kconfig.template.log_config.net"
|
2016-12-15 18:18:30 +08:00
|
|
|
|
2017-04-05 18:39:51 +08:00
|
|
|
config NET_BUF_WARN_ALLOC_INTERVAL
|
2018-08-14 22:19:20 +08:00
|
|
|
int "Interval of Network buffer allocation warnings"
|
2017-04-05 18:39:51 +08:00
|
|
|
default 1
|
|
|
|
range 0 60
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Interval in seconds of Network buffer allocation warnings which are
|
|
|
|
generated when a buffer cannot immediately be allocated with K_FOREVER
|
|
|
|
which may lead to deadlocks. Setting it to 0 makes warnings to be
|
|
|
|
printed only once per allocation.
|
2017-04-05 18:39:51 +08:00
|
|
|
|
2016-12-15 18:18:30 +08:00
|
|
|
config NET_BUF_SIMPLE_LOG
|
2016-10-24 18:31:20 +08:00
|
|
|
bool "Network buffer memory debugging"
|
2018-09-03 18:29:42 +08:00
|
|
|
select LOG
|
2016-10-24 18:31:20 +08:00
|
|
|
help
|
|
|
|
Enable extra debug logs and checks for the generic network buffers.
|
|
|
|
|
2018-02-11 19:10:01 +08:00
|
|
|
endif # NET_BUF_LOG
|
|
|
|
|
2017-02-23 20:50:32 +08:00
|
|
|
config NET_BUF_POOL_USAGE
|
|
|
|
bool "Network buffer pool usage tracking"
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable network buffer pool tracking. This means that:
|
|
|
|
* amount of free buffers in the pool is remembered
|
|
|
|
* total size of the pool is calculated
|
|
|
|
* pool name is stored and can be shown in debugging prints
|
2017-02-23 20:50:32 +08:00
|
|
|
|
2018-02-07 01:16:49 +08:00
|
|
|
endif # NET_BUF
|
|
|
|
|
2016-06-22 15:21:53 +08:00
|
|
|
config NETWORKING
|
|
|
|
bool "Link layer and IP networking support"
|
|
|
|
select NET_BUF
|
2017-03-08 16:30:03 +08:00
|
|
|
select POLL
|
2017-10-14 07:30:55 +08:00
|
|
|
select ENTROPY_GENERATOR
|
2016-06-22 15:21:53 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This option enabled generic link layer and IP networking support.
|
2016-06-22 15:21:53 +08:00
|
|
|
|
|
|
|
if NETWORKING
|
|
|
|
|
2017-09-22 04:30:32 +08:00
|
|
|
source "subsys/net/Kconfig.hostname"
|
|
|
|
|
2018-06-27 18:57:26 +08:00
|
|
|
source "subsys/net/l2/Kconfig"
|
|
|
|
|
2016-11-12 05:46:28 +08:00
|
|
|
source "subsys/net/ip/Kconfig"
|
2016-06-14 21:31:30 +08:00
|
|
|
|
2016-12-24 05:09:15 +08:00
|
|
|
source "subsys/net/lib/Kconfig"
|
|
|
|
|
2016-06-14 21:31:30 +08:00
|
|
|
endif
|
2016-06-22 15:21:53 +08:00
|
|
|
|
|
|
|
endmenu
|