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>
Wed, 19 Aug 2020 06:24:11 +0000 (08:24 +0200)
commited4a5c1f4a3ad11cdbcf6e2035ea7bf660c33c5c
treee1716f47cb156a324cd05bfb458d8e6df77784b6
parent024f05e30ca61fa92028ba9275ff7ea9ca5c71b3
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