1# Kconfig - net stack configuration options 2 3# 4# Copyright (c) 2015 Intel Corporation 5# 6# SPDX-License-Identifier: Apache-2.0 7# 8 9menu "Networking" 10 11config NET_BUF 12 bool "Network buffer support" 13 help 14 This option enables support for generic network protocol 15 buffers. 16 17if NET_BUF 18 19config NET_BUF_USER_DATA_SIZE 20 int "Size of user_data available in every network buffer" 21 default 4 22 range 4 65535 if BT 23 range 0 65535 24 help 25 Amount of memory reserved in each network buffer for user data. In 26 most cases this can be left as the default value. 27 28config NET_BUF_LOG 29 bool "Network buffer logging" 30 select SYS_LOG 31 help 32 Enable logs and checks for the generic network buffers. 33 34if NET_BUF_LOG 35config SYS_LOG_NET_BUF_LEVEL 36 int "Network buffer Logging level" 37 depends on SYS_LOG 38 default 1 39 range 0 4 40 help 41 Sets log level for network buffers. 42 Levels are: 43 0 OFF, do not write 44 1 ERROR, only write SYS_LOG_ERR 45 2 WARNING, write SYS_LOG_WRN in addition to previous level 46 3 INFO, write SYS_LOG_INF in addition to previous levels 47 4 DEBUG, write SYS_LOG_DBG in addition to previous levels 48 49config NET_BUF_WARN_ALLOC_INTERVAL 50 int "Interval of Network buffer allocation warnings" 51 default 1 52 range 0 60 53 help 54 Interval in seconds of Network buffer allocation warnings which are 55 generated when a buffer cannot immediately be allocated with K_FOREVER 56 which may lead to deadlocks. Setting it to 0 makes warnings to be 57 printed only once per allocation. 58 59config NET_BUF_SIMPLE_LOG 60 bool "Network buffer memory debugging" 61 select SYS_LOG 62 help 63 Enable extra debug logs and checks for the generic network buffers. 64 65endif # NET_BUF_LOG 66 67config NET_BUF_POOL_USAGE 68 bool "Network buffer pool usage tracking" 69 help 70 Enable network buffer pool tracking. This means that: 71 * amount of free buffers in the pool is remembered 72 * total size of the pool is calculated 73 * pool name is stored and can be shown in debugging prints 74 75endif # NET_BUF 76 77endmenu 78