From: Giuseppe Lettieri Date: Thu, 24 Jan 2013 14:42:00 +0000 (+0100) Subject: remove nonfinalized pltaps from sync list X-Git-Tag: sliver-openvswitch-1.9.90-3~4 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=f31282b9c152d5e993c8fe0068b7a4ed8c8d98c8 remove nonfinalized pltaps from sync list This was causing 100% cpu usage due to immediate wake-ups of the main loop. --- diff --git a/lib/netdev-pltap.c b/lib/netdev-pltap.c index 4e544ef30..62f23f3fd 100644 --- a/lib/netdev-pltap.c +++ b/lib/netdev-pltap.c @@ -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,