Commit 36c46afb authored by Krishna T's avatar Krishna T Committed by Fabio Baltieri
Browse files

net: zperf: Make Zperf worker thread stack size configurable

All stack sizes should be configurable for memory adjustements.

Signed-off-by: default avatarKrishna T <krishna.t@nordicsemi.no>
parent d6e54a41
Loading
Loading
Loading
Loading
+6 −0
Changes for subsys/net/lib/zperf/Kconfig: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -17,6 +17,12 @@ config ZPERF_WORK_Q_THREAD_PRIORITY
	help
	  Priority of the thread that handles zperf work queue.

config ZPERF_WORK_Q_STACK_SIZE
	int "zperf work queue thread stack size"
	default 2048
	help
	  Stack size of the thread that handles zperf work queue.

module = NET_ZPERF
module-dep = NET_LOG
module-str = Log level for zperf
+1 −2
Changes for subsys/net/lib/zperf/zperf_common.c: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@

LOG_MODULE_REGISTER(net_zperf, CONFIG_NET_ZPERF_LOG_LEVEL);

#define ZPERF_WORK_Q_STACK_SIZE 2048
/* Get some useful debug routings from net_private.h, requires
 * that NET_LOG_ENABLED is set.
 */
@@ -41,7 +40,7 @@ struct sockaddr_in *zperf_get_sin(void)
	return &in4_addr_my;
}

K_THREAD_STACK_DEFINE(zperf_work_q_stack, ZPERF_WORK_Q_STACK_SIZE);
K_THREAD_STACK_DEFINE(zperf_work_q_stack, CONFIG_ZPERF_WORK_Q_STACK_SIZE);

static struct k_work_q zperf_work_q;