diff options
| author | Jesse Gross <jesse@nicira.com> | 2009-09-16 11:03:42 -0700 |
|---|---|---|
| committer | Jesse Gross <jesse@nicira.com> | 2009-09-16 11:03:42 -0700 |
| commit | edaa959f6b5100361a6af2e5c68ca6abb94bf838 (patch) | |
| tree | 4e90d61d4907c553fdb4679e7a1a92847850c2f9 /lib/netdev-linux.c | |
| parent | 3f2c96d605ab2732ce2930bf6a747df5e8540613 (diff) | |
| download | openvswitch-edaa959f6b5100361a6af2e5c68ca6abb94bf838.tar.gz | |
netdev-linux: Set missing cache validity bit.
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.
Diffstat (limited to 'lib/netdev-linux.c')
| -rw-r--r-- | lib/netdev-linux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 7fde7e0a8..2faffa346 100644 --- 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) { |
