summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/net_dropmon.h
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2019-08-23 18:47:21 +0300
committerDavid S. Miller <davem@davemloft.net>2019-08-23 14:58:07 -0700
commitbd1200b79510a68554890af2f48d92be6eb1daf8 (patch)
treeb0197551de3751c819ab54940fea0c6dd818bf76 /include/uapi/linux/net_dropmon.h
parentbf1867db9b850fff2dd54a1a117a684a10b8cd90 (diff)
downloadlinux-bd1200b79510a68554890af2f48d92be6eb1daf8.tar.gz
linux-bd1200b79510a68554890af2f48d92be6eb1daf8.tar.bz2
linux-bd1200b79510a68554890af2f48d92be6eb1daf8.zip
drop_monitor: Make timestamps y2038 safe
Timestamps are currently communicated to user space as 'struct timespec', which is not considered y2038 safe since it uses a 32-bit signed value for seconds. Fix this while the API is still not part of any official kernel release by using 64-bit nanoseconds timestamps instead. Fixes: ca30707dee2b ("drop_monitor: Add packet alert mode") Fixes: 5e58109b1ea4 ("drop_monitor: Add support for packet alert mode for hardware drops") Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/net_dropmon.h')
-rw-r--r--include/uapi/linux/net_dropmon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/net_dropmon.h b/include/uapi/linux/net_dropmon.h
index 75a35dccb675..8bf79a9eb234 100644
--- a/include/uapi/linux/net_dropmon.h
+++ b/include/uapi/linux/net_dropmon.h
@@ -75,7 +75,7 @@ enum net_dm_attr {
NET_DM_ATTR_PC, /* u64 */
NET_DM_ATTR_SYMBOL, /* string */
NET_DM_ATTR_IN_PORT, /* nested */
- NET_DM_ATTR_TIMESTAMP, /* struct timespec */
+ NET_DM_ATTR_TIMESTAMP, /* u64 */
NET_DM_ATTR_PROTO, /* u16 */
NET_DM_ATTR_PAYLOAD, /* binary */
NET_DM_ATTR_PAD,