use RCCE_IAM instead od RCCE_ue
This commit is contained in:
parent
4d8872bcfa
commit
3e6331913a
1 changed files with 4 additions and 5 deletions
|
@ -636,7 +636,7 @@ static void mmnif_rxbuff_free(void)
|
|||
uint32_t i, j;
|
||||
uint32_t rpos;
|
||||
|
||||
RCCE_acquire_lock(RCCE_ue());
|
||||
RCCE_acquire_lock(RCCE_IAM);
|
||||
rpos = b->dread;
|
||||
|
||||
for (i = 0, j = rpos; i < MMNIF_MAX_DESCRIPTORS; i++)
|
||||
|
@ -663,7 +663,7 @@ static void mmnif_rxbuff_free(void)
|
|||
break;
|
||||
}
|
||||
|
||||
RCCE_release_lock(RCCE_ue());
|
||||
RCCE_release_lock(RCCE_IAM);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1316,7 +1316,6 @@ static int mmnif_rx_bypass(struct netif *netif, int s, void *data, uint32_t len)
|
|||
*/
|
||||
if (b->desc_table[b->dread].stat == MMNIF_STATUS_FREE)
|
||||
{
|
||||
|
||||
// spinlock_unlock(&b->rlock);
|
||||
return -1;
|
||||
}
|
||||
|
@ -1385,10 +1384,10 @@ static int mmnif_rx_bypass(struct netif *netif, int s, void *data, uint32_t len)
|
|||
return length;
|
||||
|
||||
drop_packet:
|
||||
spinlock_lock(&mmnif->rx_buff->rlock);
|
||||
//spinlock_lock(&mmnif->rx_buff->rlock);
|
||||
|
||||
/*error handling */
|
||||
spinlock_unlock(&mmnif->rx_buff->rlock);
|
||||
//spinlock_unlock(&mmnif->rx_buff->rlock);
|
||||
LINK_STATS_INC(link.drop);
|
||||
mmnif->stats.rx_err++;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue