From 6ff97e40c4b2e1bbf4add78fc5e5973f2011e6ea Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Tue, 7 Mar 2017 12:32:48 +0200 Subject: [PATCH] net: core: Use K_NO_WAIT when spawning RX and TX threads Instead of magic constant (0) use the K_NO_WAIT when spawning a thread. Change-Id: Ib3a181fdfa246843d9c708592ccc754e54bc6005 Signed-off-by: Jukka Rissanen --- subsys/net/ip/net_core.c | 2 +- subsys/net/ip/net_if.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/net/ip/net_core.c b/subsys/net/ip/net_core.c index 29ee75aed10..8bb489b06af 100644 --- a/subsys/net/ip/net_core.c +++ b/subsys/net/ip/net_core.c @@ -565,7 +565,7 @@ static void init_rx_queue(void) rx_tid = k_thread_spawn(rx_stack, sizeof(rx_stack), (k_thread_entry_t)net_rx_thread, NULL, NULL, NULL, K_PRIO_COOP(8), - K_ESSENTIAL, 0); + K_ESSENTIAL, K_NO_WAIT); } #if defined(CONFIG_NET_IP_ADDR_CHECK) diff --git a/subsys/net/ip/net_if.c b/subsys/net/ip/net_if.c index 838b9c321ef..420a5141fb9 100644 --- a/subsys/net/ip/net_if.c +++ b/subsys/net/ip/net_if.c @@ -175,7 +175,7 @@ static inline void init_tx_queue(struct net_if *iface) k_thread_spawn(iface->tx_stack, sizeof(iface->tx_stack), (k_thread_entry_t)net_if_tx_thread, iface, NULL, NULL, K_PRIO_COOP(7), - K_ESSENTIAL, 0); + K_ESSENTIAL, K_NO_WAIT); } enum net_verdict net_if_send_data(struct net_if *iface, struct net_buf *buf)