diff options
author | Jesse Gross <jesse@nicira.com> | 2010-06-08 17:18:48 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2010-06-08 18:01:25 -0700 |
commit | c73814a3e6cbdf8c4083ef1d510377e41cb82f6a (patch) | |
tree | c6f3e8196f5156b2643900ec3763cabeb1d3c7bb /include | |
parent | c6f196a050aeae603f5d68ca065a72da9a8ec894 (diff) | |
download | openvswitch-c73814a3e6cbdf8c4083ef1d510377e41cb82f6a.tar.gz |
timeval: Use monotonic time where appropriate.
Most of the timekeeping needs of OVS are simply to measure intervals,
which means that it is sensitive to changes in the clock. This commit
replaces the existing clocks with monotonic timers. An additional set
of wall clock timers are added and used in locations that need absolute
time.
Bug #1858
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/datapath-protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openvswitch/datapath-protocol.h b/include/openvswitch/datapath-protocol.h index ff9291cab..f443000fb 100644 --- a/include/openvswitch/datapath-protocol.h +++ b/include/openvswitch/datapath-protocol.h @@ -206,7 +206,7 @@ struct odp_port_group { struct odp_flow_stats { uint64_t n_packets; /* Number of matched packets. */ uint64_t n_bytes; /* Number of matched bytes. */ - uint64_t used_sec; /* Time last used. */ + uint64_t used_sec; /* Time last used, in system monotonic time. */ uint32_t used_nsec; uint8_t tcp_flags; uint8_t ip_tos; |