solarflare: call networking_poll in polling mode
authorRoni Häcki <roni.haecki@inf.ethz.ch>
Thu, 20 Apr 2017 15:29:18 +0000 (17:29 +0200)
committerRoni Häcki <roni.haecki@inf.ethz.ch>
Thu, 20 Apr 2017 15:29:18 +0000 (17:29 +0200)
Signed-off-by: Roni Häcki <roni.haecki@inf.ethz.ch>

usr/drivers/solarflare/sfn5122f_cdriver.c

index a56d46b..3e47d97 100644 (file)
@@ -1616,7 +1616,11 @@ static void eventloop(void)
     ws = get_default_waitset();
     DEBUG("SFN5122F enter event loop \n");
     while (1) {
-        event_dispatch(ws);
+        if (use_interrupt) {
+            event_dispatch(ws);
+        } else {
+            networking_poll();
+        }
     }
 }
 
@@ -1628,6 +1632,7 @@ static void cd_main(void)
 
 int main(int argc, char** argv)
 {
+    //barrelfish_usleep(10*1000*1000);
     DEBUG("SFN5122F driver started \n");
     errval_t err;