2015-05-20 11:40:39 -05:00
|
|
|
# Kconfig - net stack configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 Intel Corporation
|
|
|
|
#
|
2017-01-18 17:01:01 -08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-05-20 11:40:39 -05:00
|
|
|
#
|
|
|
|
|
2016-06-22 09:21:53 +02:00
|
|
|
menu "Networking"
|
2015-06-20 10:47:30 -04:00
|
|
|
|
2015-10-07 18:32:54 +03:00
|
|
|
config NET_BUF
|
|
|
|
bool "Network buffer support"
|
|
|
|
default n
|
|
|
|
help
|
2016-10-05 00:02:12 -05:00
|
|
|
This option enables support for generic network protocol
|
|
|
|
buffers.
|
2015-10-07 18:32:54 +03:00
|
|
|
|
2016-12-15 11:18:30 +01:00
|
|
|
config NET_BUF_LOG
|
|
|
|
bool "Network buffer logging"
|
2015-10-07 18:32:54 +03:00
|
|
|
depends on NET_BUF
|
2015-11-16 17:07:10 +02:00
|
|
|
select STDOUT_CONSOLE
|
2016-10-25 13:36:44 +03:00
|
|
|
select SYS_LOG
|
2015-10-07 18:32:54 +03:00
|
|
|
default n
|
|
|
|
help
|
2016-12-15 11:18:30 +01:00
|
|
|
Enable logs and checks for the generic network buffers.
|
2015-10-07 18:32:54 +03:00
|
|
|
|
2016-12-15 11:18:30 +01:00
|
|
|
config SYS_LOG_NET_BUF_LEVEL
|
|
|
|
int
|
|
|
|
prompt "Network buffer Logging level"
|
|
|
|
depends on NET_BUF_LOG
|
|
|
|
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
|
|
|
|
2 WARNING, write SYS_LOG_WRN in adition to previous level
|
|
|
|
3 INFO, write SYS_LOG_INF in adition to previous levels
|
|
|
|
4 DEBUG, write SYS_LOG_DBG in adition to previous levels
|
|
|
|
|
|
|
|
config NET_BUF_SIMPLE_LOG
|
2016-10-24 13:31:20 +03:00
|
|
|
bool "Network buffer memory debugging"
|
2016-12-15 11:18:30 +01:00
|
|
|
depends on NET_BUF_LOG
|
2016-10-24 13:31:20 +03:00
|
|
|
select STDOUT_CONSOLE
|
2016-10-25 13:36:44 +03:00
|
|
|
select SYS_LOG
|
2016-10-24 13:31:20 +03:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enable extra debug logs and checks for the generic network buffers.
|
|
|
|
|
2017-02-23 14:50:32 +02: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 09:21:53 +02:00
|
|
|
config NETWORKING
|
|
|
|
bool "Link layer and IP networking support"
|
|
|
|
select NET_BUF
|
2017-03-08 09:30:03 +01:00
|
|
|
select POLL
|
2016-12-12 22:01:24 +00:00
|
|
|
select RANDOM_GENERATOR
|
2016-06-22 09:21:53 +02:00
|
|
|
default n
|
|
|
|
help
|
2016-10-05 00:02:12 -05:00
|
|
|
This option enabled generic link layer and IP networking support.
|
2016-06-22 09:21:53 +02:00
|
|
|
|
|
|
|
if NETWORKING
|
|
|
|
|
2016-11-11 23:46:28 +02:00
|
|
|
source "subsys/net/ip/Kconfig"
|
2016-06-14 15:31:30 +02:00
|
|
|
|
2016-12-23 15:09:15 -06:00
|
|
|
source "subsys/net/lib/Kconfig"
|
|
|
|
|
2016-06-14 15:31:30 +02:00
|
|
|
endif
|
2016-06-22 09:21:53 +02:00
|
|
|
|
|
|
|
endmenu
|