net: core: Mark RX and TX threads essential
As the networking cannot work without RX or TX threads, mark them as essential. Change-Id: Icb52c77fcdcef35d77c36e5ec855fed438a38407 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
df19a423b0
commit
2e552b2b59
@ -564,7 +564,8 @@ 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), 0, 0);
|
||||
NULL, NULL, NULL, K_PRIO_COOP(8),
|
||||
K_ESSENTIAL, 0);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_NET_IP_ADDR_CHECK)
|
||||
|
||||
@ -174,7 +174,8 @@ 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), 0, 0);
|
||||
iface, NULL, NULL, K_PRIO_COOP(7),
|
||||
K_ESSENTIAL, 0);
|
||||
}
|
||||
|
||||
enum net_verdict net_if_send_data(struct net_if *iface, struct net_buf *buf)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user