]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Make xfrm_state timer monotonic
authorFan Du <fan.du@windriver.com>
Thu, 15 Aug 2013 07:49:06 +0000 (15:49 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 16 Aug 2013 04:53:28 +0000 (06:53 +0200)
commit042f1252c0e0765bd8e8e83e436174dbf682a8fa
treeb47ff54a2eb470330980847e5e312979ac153bcf
parentf9ffd549cd68a760fdfa8df54b8265355bbede66
xfrm: Make xfrm_state timer monotonic

xfrm_state timer should be independent of system clock change,
so switch to CLOCK_BOOTTIME base which is not only monotonic but
also counting suspend time.

Thus issue reported in commit: a5f0f5c3de5515ef9a5a47aafebf618559ba9952
("xfrm: SAD entries do not expire correctly after suspend-resume")
could ALSO be avoided.

v2: Use CLOCK_BOOTTIME to count suspend time, but still monotonic.

Signed-off-by: Fan Du <fan.du@windriver.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_state.c