2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

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.
This commit is contained in:
Jesse Gross
2009-09-16 11:03:42 -07:00
parent 3f2c96d605
commit edaa959f6b

View File

@@ -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) {