datapath: fix flow used time stats
authorHao Zheng <hzheng@nicira.com>
Fri, 8 Oct 2010 23:26:15 +0000 (16:26 -0700)
committerHao Zheng <hzheng@nicira.com>
Mon, 11 Oct 2010 20:55:31 +0000 (13:55 -0700)
commit65d042a1b4e3169c44bbb0fca5f0746e04ae6a4e
tree8f2f634a5eeeddec5e147d8f6855607fe345b3de
parent7956695a6c2f8fb3b69888f72a720c25af75e23b
datapath: fix flow used time stats

This commit fixes a problem where datapath flow used stats can report
incorrent value, thus may result in flow expirations being incorrect.
This happens when a kernel jiffies rollover occurs between the last time
a flow is hit and the flow stats is queried.

Acked-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: Hao Zheng <hzheng@nicira.com>
datapath/datapath.c