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:
bc098fd
)
pltap: do not try to get flags until finalized
author
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Thu, 20 Dec 2012 14:32:43 +0000
(15:32 +0100)
committer
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Thu, 20 Dec 2012 14:45:41 +0000
(15:45 +0100)
lib/netdev-pltap.c
patch
|
blob
|
history
diff --git
a/lib/netdev-pltap.c
b/lib/netdev-pltap.c
index
b7ebed9
..
9158977
100644
(file)
--- a/
lib/netdev-pltap.c
+++ b/
lib/netdev-pltap.c
@@
-668,7
+668,9
@@
netdev_pltap_update_flags(struct netdev *netdev,
return EINVAL;
}
- error = get_flags(dev, &dev->flags);
+ if (netdev_pltap_finalized(dev)) {
+ error = get_flags(dev, &dev->flags);
+ }
*old_flagsp = dev->flags;
dev->new_flags |= on;
dev->new_flags &= ~off;