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"
|
|
|
|
default n
|
|
|
|
help
|
2016-10-05 13:02:12 +08:00
|
|
|
This option enables support for generic network protocol
|
|
|
|
buffers.
|
2015-10-07 23:32:54 +08:00
|
|
|
|
2016-12-15 18:18:30 +08:00
|
|
|
config NET_BUF_LOG
|
|
|
|
bool "Network buffer logging"
|
2015-10-07 23:32:54 +08:00
|
|
|
depends on NET_BUF
|
2015-11-16 23:07:10 +08:00
|
|
|
select STDOUT_CONSOLE
|
2016-10-25 18:36:44 +08:00
|
|
|
select SYS_LOG
|
2015-10-07 23:32:54 +08:00
|
|
|
default n
|
|
|
|
help
|
2016-12-15 18:18:30 +08:00
|
|
|
Enable logs and checks for the generic network buffers.
|
2015-10-07 23:32:54 +08:00
|
|
|
|
2016-12-15 18:18:30 +08:00
|
|
|
config SYS_LOG_NET_BUF_LEVEL
|
|
|
|
int
|
|
|
|
prompt "Network buffer Logging level"
|
2017-08-04 20:34:58 +08:00
|
|
|
depends on NET_BUF_LOG && SYS_LOG
|
2016-12-15 18:18:30 +08:00
|
|
|
default 1
|
|
|
|
range 0 4
|
|
|
|
help
|
|
|
|
Sets log level for network buffers.
|
|
|
|
Levels are:
|
|
|
|
0 OFF, do not write
|
|
|
|
1 ERROR, only write SYS_LOG_ERR
|
2017-04-22 01:55:27 +08:00
|
|
|
2 WARNING, write SYS_LOG_WRN in addition to previous level
|
|
|
|
3 INFO, write SYS_LOG_INF in addition to previous levels
|
|
|
|
4 DEBUG, write SYS_LOG_DBG in addition to previous levels
|
2016-12-15 18:18:30 +08:00
|
|
|
|
2017-04-05 18:39:51 +08:00
|
|
|
config NET_BUF_WARN_ALLOC_INTERVAL
|
|
|
|
int
|
|
|
|
prompt "Interval of Network buffer allocation warnings"
|
|
|
|
depends on NET_BUF_LOG
|
|
|
|
default 1
|
|
|
|
range 0 60
|
|
|
|
help
|
|
|
|
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.
|
|
|
|
|
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"
|
2016-12-15 18:18:30 +08:00
|
|
|
depends on NET_BUF_LOG
|
2016-10-24 18:31:20 +08:00
|
|
|
select STDOUT_CONSOLE
|
2016-10-25 18:36:44 +08:00
|
|
|
select SYS_LOG
|
2016-10-24 18:31:20 +08:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable extra debug logs and checks for the generic network buffers.
|
|
|
|
|
2017-02-23 20:50:32 +08:00
|
|
|
config NET_BUF_POOL_USAGE
|
|
|
|
bool "Network buffer pool usage tracking"
|
|
|
|
depends on NET_BUF
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
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
|
|
|
|
|
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
|
|
|
default n
|
|
|
|
help
|
2016-10-05 13:02:12 +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"
|
|
|
|
|
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
|