diff --git a/drivers/net/mmnif.c b/drivers/net/mmnif.c index c07db0b5..3b4e6f87 100644 --- a/drivers/net/mmnif.c +++ b/drivers/net/mmnif.c @@ -78,7 +78,7 @@ extern HANDLE hProc; /* decide whether it's polling mode or not */ -static int no_irq = 0; +static int no_irq = 1; /* this will be set by open() and close() and shows wether the driver is running or not */ @@ -1197,7 +1197,8 @@ int mmnif_poll(void* e) { while (!mmnif->rx_buff->queued) { - mmnif->stats.pll_empty++; + // mmnif->stats.pll_empty++; + mmnif->stats.pll_empty = 0; if (mmnif->stats.pll_empty >= MMNIF_POLL_BUDGET) { /* enable interrupts and suspend polling diff --git a/include/metalsvm/config.h b/include/metalsvm/config.h index 15a222af..f70fdd4c 100644 --- a/include/metalsvm/config.h +++ b/include/metalsvm/config.h @@ -35,7 +35,7 @@ extern "C" { #define PAGE_SHIFT 12 #define CACHE_LINE 64 #define MAILBOX_SIZE 8 -#define TIMER_FREQ 1000 /* in HZ */ +#define TIMER_FREQ 100 /* in HZ */ #define CLOCK_TICK_RATE 1193182 /* 8254 chip's internal oscillator frequency */ #define INT_SYSCALL 0x80 #define KERNEL_SPACE (1*1024*1024*1024)