]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add tcp_ld_RTO_revert() helper
authorEric Dumazet <edumazet@google.com>
Wed, 27 May 2020 02:48:49 +0000 (19:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 21:57:27 +0000 (14:57 -0700)
commit97f5cb640cc002f236c5458eaf5de238d728c28d
treed7fa7acb4de7f00d0d8385dc1512069d9ff0dfde
parent32e50aed78c85c3488ce8f2d44cbcd5c141f3d9b
tcp: add tcp_ld_RTO_revert() helper

RFC 6069 logic has been implemented for IPv4 only so far,
right in the middle of tcp_v4_err() and was error prone.

Move this code to one helper, to make tcp_v4_err() more
readable and to eventually expand RFC 6069 to IPv6 in
the future.

Also perform sock_owned_by_user() check a bit sooner.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Tested-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c