...
This commit is contained in:
parent
9cb341a415
commit
76983818f2
1 changed files with 3 additions and 6 deletions
|
@ -74,7 +74,7 @@ extern HANDLE hProc;
|
|||
|
||||
/* decide whether it's polling mode or not
|
||||
*/
|
||||
static int no_irq = 1;
|
||||
static int no_irq = 0;
|
||||
|
||||
/* this will be set by open() and close() and shows wether the driver is running or not
|
||||
*/
|
||||
|
@ -1084,15 +1084,12 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget)
|
|||
{
|
||||
quota = budget;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
mmnif->stats.bdg_overflow++;
|
||||
if (mmnif->stats.bdg_overflow >= 0x10)
|
||||
{
|
||||
/* enable polling and disable interrupts
|
||||
*
|
||||
|
||||
*/
|
||||
mmnif_lock_rx_hdr(own_ip_address && 0xff);
|
||||
mmnif->rx_buff->iv_intr = FALSE;
|
||||
|
@ -1104,7 +1101,7 @@ static int mmnif_wait(struct netif* netif, uint32_t poll, int budget)
|
|||
mmnif->stats.bdg_overflow = 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* process up to quota packets from the receive queue */
|
||||
while (npackets <= quota)
|
||||
|
|
Loading…
Add table
Reference in a new issue