mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
gnrc_netif: move message queue to gnrc_netif_t
This commit is contained in:
parent
a097baee80
commit
56fc7c375f
@ -184,6 +184,10 @@ typedef struct {
|
||||
*/
|
||||
gnrc_netif_pktq_t send_queue;
|
||||
#endif
|
||||
/**
|
||||
* @brief Message queue for the netif thread
|
||||
*/
|
||||
msg_t msg_queue[GNRC_NETIF_MSG_QUEUE_SIZE];
|
||||
uint8_t cur_hl; /**< Current hop-limit for out-going packets */
|
||||
uint8_t device_type; /**< Device type */
|
||||
kernel_pid_t pid; /**< PID of the network interface's thread */
|
||||
|
@ -1834,7 +1834,6 @@ static void *_gnrc_netif_thread(void *args)
|
||||
netdev_t *dev;
|
||||
int res;
|
||||
msg_t reply = { .type = GNRC_NETAPI_MSG_TYPE_ACK };
|
||||
msg_t msg_queue[GNRC_NETIF_MSG_QUEUE_SIZE];
|
||||
|
||||
DEBUG("gnrc_netif: starting thread %i\n", thread_getpid());
|
||||
netif = ctx->netif;
|
||||
@ -1848,7 +1847,7 @@ static void *_gnrc_netif_thread(void *args)
|
||||
#endif /* MODULE_GNRC_NETIF_EVENTS */
|
||||
|
||||
/* setup the link-layer's message queue */
|
||||
msg_init_queue(msg_queue, GNRC_NETIF_MSG_QUEUE_SIZE);
|
||||
msg_init_queue(netif->msg_queue, ARRAY_SIZE(netif->msg_queue));
|
||||
/* initialize low-level driver */
|
||||
ctx->result = netif->ops->init(netif);
|
||||
/* signal that driver init is done */
|
||||
|
Loading…
Reference in New Issue
Block a user