]> git.itanic.dy.fi Git - linux-stable/commit
net: refactor bind_bucket fastreuse into helper
authorTim Froidcoeur <tim.froidcoeur@tessares.net>
Tue, 11 Aug 2020 18:33:23 +0000 (20:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:48:14 +0000 (09:48 +0200)
commit6de6d1ca5f3e8383cb175777f0e9aba7a3c397f5
tree01e7f57039be0ba6c0c80e9267139b1c8272825a
parent980415fffec6952602edac586eb8c3a7d3f50b43
net: refactor bind_bucket fastreuse into helper

[ Upstream commit 62ffc589abb176821662efc4525ee4ac0b9c3894 ]

Refactor the fastreuse update code in inet_csk_get_port into a small
helper function that can be called from other places.

Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Tim Froidcoeur <tim.froidcoeur@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/inet_connection_sock.h
net/ipv4/inet_connection_sock.c