zhhyu7 commented on code in PR #17465:
URL: https://github.com/apache/nuttx/pull/17465#discussion_r2612664327
##########
drivers/net/netdev_upperhalf.c:
##########
@@ -1437,22 +1474,21 @@ int netdev_lower_unregister(FAR struct
netdev_lowerhalf_s *dev)
return ret;
}
-#ifdef CONFIG_NETDEV_WORK_THREAD
- for (i = 0; i < NETDEV_THREAD_COUNT; i++)
+ switch (dev->rxtype)
{
- if (upper->tid[i] > 0)
- {
- /* Try to tear down the dedicated thread for work. */
-
- upper->tid[i] = INVALID_PROCESS_ID;
- nxsem_post(&upper->sem[i]);
- nxsem_wait(&upper->sem_exit[i]);
- }
+ case NETDEV_RX_THREAD_RSS:
+ cpu = CONFIG_SMP_NCPUS;
+ case NETDEV_RX_THREAD:
+ netdev_upper_exit_thread(upper);
Review Comment:
done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]