git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb857b4
)
remove nonfinalized pltaps from sync list
author
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Thu, 24 Jan 2013 14:42:00 +0000
(15:42 +0100)
committer
Giuseppe 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
patch
|
blob
|
history
diff --git
a/lib/netdev-pltap.c
b/lib/netdev-pltap.c
index
4e544ef
..
62f23f3
100644
(file)
--- 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,