1# Copyright (c) 2022 Nordic Semiconductor ASA
2# Copyright (c) 2023 Arm Limited (or its affiliates). All rights reserved.
3# SPDX-License-Identifier: Apache-2.0
4
5menuconfig NET_ZPERF
6	bool "zperf shell utility"
7	select NET_CONTEXT_RCVTIMEO if NET_NATIVE_UDP
8	select NET_SOCKETS_SERVICE
9	help
10	  This option enables zperf shell utility, which allows to generate
11	  network traffic and evaluate network bandwidth.
12
13if NET_ZPERF
14
15config ZPERF_WORK_Q_THREAD_PRIORITY
16	int "zperf work queue thread priority"
17	default NUM_PREEMPT_PRIORITIES
18	help
19	  Priority of the thread that handles zperf work queue.
20
21config ZPERF_WORK_Q_STACK_SIZE
22	int "zperf work queue thread stack size"
23	default 2048
24	help
25	  Stack size of the thread that handles zperf work queue.
26
27module = NET_ZPERF
28module-dep = NET_LOG
29module-str = Log level for zperf
30module-help = Enable debug message of zperf libray.
31source "subsys/net/Kconfig.template.log_config.net"
32
33config NET_ZPERF_MAX_PACKET_SIZE
34	int "Maximum packet size"
35	default 1024
36	help
37	  Upper size limit for packets sent by zperf.
38
39config NET_ZPERF_MAX_SESSIONS
40	int "Maximum number of zperf sessions"
41	default 4
42	help
43	  Upper size limit for connections handled by zperf.
44
45endif
46