projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f2c96d
)
netdev-linux: Set missing cache validity bit.
author
Jesse Gross
<jesse@nicira.com>
Wed, 16 Sep 2009 18:03:42 +0000
(11:03 -0700)
committer
Jesse Gross
<jesse@nicira.com>
Wed, 16 Sep 2009 18:03:42 +0000
(11:03 -0700)
Whether a port is internal is cached to avoid requerying the kernel
every time stats are requested. However, the cache vality bit was
never being set so the cache wasn't used. This corrects that
oversight.
Thanks to Ben Pfaff for noticing.
lib/netdev-linux.c
patch
|
blob
|
history
diff --git
a/lib/netdev-linux.c
b/lib/netdev-linux.c
index 7fde7e0a86ec380a43197185cca84568806718a7..2faffa346011d046b541e9b54b0419c6c512e09e 100644
(file)
--- a/
lib/netdev-linux.c
+++ b/
lib/netdev-linux.c
@@
-654,6
+654,8
@@
netdev_linux_get_stats(const struct netdev *netdev_, struct netdev_stats *stats)
"openvswitch");
}
}
+
+ netdev->cache->valid |= VALID_IS_INTERNAL;
}
if (netdev->cache->is_internal) {