]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: use ktime_get_ts64() instead of ktime_get_ts()
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Nov 2017 11:41:38 +0000 (12:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:26:32 +0000 (09:26 -0500)
commitee7319aff7454194fa7f787b3b4c83cef9b256c1
tree9dc97dea04bbc8493830a0dd464f6620e5d09f96
parent60a986d6c445cd31726413ca21688ceacd50aa73
openvswitch: use ktime_get_ts64() instead of ktime_get_ts()

timespec is deprecated because of the y2038 overflow, so let's convert
this one to ktime_get_ts64(). The code is already safe even on 32-bit
architectures, since it uses monotonic times. On 64-bit architectures,
nothing changes, while on 32-bit architectures this avoids one
type conversion.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/flow.c