benchmarking
This commit is contained in:
parent
8c08e17770
commit
5af3077386
1 changed files with 6 additions and 2 deletions
|
@ -71,7 +71,7 @@ extern HANDLE hProc;
|
|||
#define MMNIF_RX_BUFFERLEN 1792
|
||||
#define MMNIF_TX_BUFFERLEN 1792
|
||||
|
||||
#define MMNIF_CORES 2
|
||||
#define MMNIF_CORES 2
|
||||
|
||||
#define MMNIF_WORKER_BUDGET 4
|
||||
|
||||
|
@ -517,6 +517,7 @@ void* mmnif_retrigger(void* e)
|
|||
while(active)
|
||||
{
|
||||
sleep(1);
|
||||
DEBUGPRINTF("mmnif_retrigger(): \n");
|
||||
mmnif_irqhandler();
|
||||
}
|
||||
return NULL;
|
||||
|
@ -1178,7 +1179,10 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget)
|
|||
{
|
||||
/* if there is no data return immeadieatly */
|
||||
if (mailbox_ptr_tryfetch(&(mmnif->mbox), (void**) &p))
|
||||
return err;
|
||||
{
|
||||
DEBUGPRINTF("mmnif_wait(): fetched empty mailbox\n");
|
||||
return err;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue