]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: use ktime_t for internal timestamps
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 Sep 2015 11:26:39 +0000 (13:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Oct 2015 10:16:47 +0000 (03:16 -0700)
commit666869780400929503894819024501794b59155e
tree3404c02718e7fcbb04a6c1594bbeede886a8d8d5
parent263a0a9102bf5816c69c29c337ae9c2808bcaefb
ipv6: use ktime_t for internal timestamps

The ipv6 mip6 implementation is one of only a few users of the
skb_get_timestamp() function in the kernel, which is both unsafe
on 32-bit architectures because of the 2038 overflow, and slightly
less efficient than the skb_get_ktime() based approach.

This converts the function call and the mip6_report_rate_limiter
structure that stores the time stamp, eliminating all uses of
timeval in the ipv6 code.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: James Morris <jmorris@namei.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mip6.c