summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2014-03-27 07:19:19 -0700
committerDavid S. Miller <davem@davemloft.net>2014-03-28 16:43:14 -0400
commite2a1d3e47bb904082b758dec9d07edf241c45d05 (patch)
tree5ed95c32972d85fd1e452ca1572c261ad7e94f0e
parent4f647e0a3c37b8d5086214128614a136064110c3 (diff)
downloadop-kernel-dev-e2a1d3e47bb904082b758dec9d07edf241c45d05.zip
op-kernel-dev-e2a1d3e47bb904082b758dec9d07edf241c45d05.tar.gz
tcp: fix get_timewait4_sock() delay computation on 64bit
It seems I missed one change in get_timewait4_sock() to compute the remaining time before deletion of IPV4 timewait socket. This could result in wrong output in /proc/net/tcp for tm->when field. Fixes: 96f817fedec4 ("tcp: shrink tcp6_timewait_sock by one cache line") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv4/tcp_ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 3cf9765..1e4eac7 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2628,7 +2628,7 @@ static void get_timewait4_sock(const struct inet_timewait_sock *tw,
{
__be32 dest, src;
__u16 destp, srcp;
- long delta = tw->tw_ttd - jiffies;
+ s32 delta = tw->tw_ttd - inet_tw_time_stamp();
dest = tw->tw_daddr;
src = tw->tw_rcv_saddr;
OpenPOWER on IntegriCloud