tcp: switch pacing timer to softirq based hrtimer
authorEric Dumazet <edumazet@google.com>
Thu, 10 May 2018 21:59:43 +0000 (14:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 May 2018 16:24:37 +0000 (12:24 -0400)
commit73a6bab5aa2a83cb7df85805e08bc03b4065aea7
tree7f542e5b0873c4dc56003c784c2df12fed79364c
parent4cbd7a7d3c0fb1373bf981c5498b51c050668acc
tcp: switch pacing timer to softirq based hrtimer

linux-4.16 got support for softirq based hrtimers.
TCP can switch its pacing hrtimer to this variant, since this
avoids going through a tasklet and some atomic operations.

pacing timer logic looks like other (jiffies based) tcp timers.

v2: use hrtimer_try_to_cancel() in tcp_clear_xmit_timers()
    to correctly release reference on socket if needed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c