devlink: Add method for time-stamp on reporter's dump
authorAya Levin <ayal@mellanox.com>
Sun, 10 Nov 2019 12:11:56 +0000 (14:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Nov 2019 00:04:21 +0000 (16:04 -0800)
commitd279505b723cba058b604ed8cf9cd4c854e2a041
tree4c41ef1ebb2626c4943aea2de2152f3e832b2c64
parent40a1dcee2d1846a24619fe9ca45c661ca0db7dda
devlink: Add method for time-stamp on reporter's dump

When setting the dump's time-stamp, use ktime_get_real in addition to
jiffies. This simplifies the user space implementation and bypasses
some inconsistent behavior with translating jiffies to current time.
The time taken is transformed into nsec, to comply with y2038 issue.

Fixes: c8e1da0bf923 ("devlink: Add health report functionality")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/devlink.h
net/core/devlink.c