...
This commit is contained in:
parent
1f5a6ea93c
commit
cfb1c30bb6
1 changed files with 7 additions and 7 deletions
|
@ -830,8 +830,6 @@ err_t mmnif_init(struct netif* netif)
|
|||
}
|
||||
memset(mmnif, 0, sizeof(mmnif_t));
|
||||
|
||||
DEBUGPRINTF("BARBARBARBARBARBARBARBARBARBARBARBARBAR");
|
||||
|
||||
/* Alloc and clear shared memory for rx_buff
|
||||
*/
|
||||
mmnif->rx_buff = mmnif_shmalloc((sizeof(mm_rx_buffer_t) + MMNIF_RX_QUEUELEN * MMNIF_RX_BUFFERLEN) * (MMNIF_CORES-1));
|
||||
|
@ -919,7 +917,9 @@ err_t mmnif_init(struct netif* netif)
|
|||
|
||||
active = TRUE;
|
||||
|
||||
DEBUGPRINTF("[+] mmnif init complete\n");
|
||||
#ifdef MMNIF_DEBUG
|
||||
DEBUGPRINTF("mmnif init complete\n");
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1173,10 +1173,6 @@ int mmnif_open()
|
|||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
|
||||
#ifdef DEBUG_MMNIF
|
||||
DEBUGPRINTF("mmnif_dev is open\n");
|
||||
#endif
|
||||
|
||||
/* calculate my own ip address from core number
|
||||
* Note: core 1 is the router core
|
||||
*/
|
||||
|
@ -1236,6 +1232,10 @@ int mmnif_open()
|
|||
*/
|
||||
mmnif_worker_schedule();
|
||||
|
||||
#ifdef DEBUG_MMNIF
|
||||
DEBUGPRINTF("mmnif_dev is open\n");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue