remove nonfinalized pltaps from sync list
authorGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 24 Jan 2013 14:42:00 +0000 (15:42 +0100)
committerGiuseppe Lettieri <g.lettieri@iet.unipi.it>
Thu, 24 Jan 2013 14:42:00 +0000 (15:42 +0100)
This was causing 100% cpu usage due to immediate
wake-ups of the main loop.

lib/netdev-pltap.c

index 4e544ef..62f23f3 100644 (file)
@@ -363,8 +363,10 @@ static void
 netdev_pltap_sync_flags(struct netdev_dev_pltap *dev)
 {
 
-    if (dev->fd < 0 || !netdev_pltap_finalized(dev))
+    if (dev->fd < 0 || !netdev_pltap_finalized(dev)) {
+       sync_done(dev);
        return;
+    }
     
     VLOG_DBG("sync_flags(%s): current: %s %s  target: %s %s",
         dev->real_name,