net: refactor bind_bucket fastreuse into helper
authorTim Froidcoeur <tim.froidcoeur@tessares.net>
Tue, 11 Aug 2020 18:33:23 +0000 (20:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Aug 2020 22:49:08 +0000 (15:49 -0700)
commit62ffc589abb176821662efc4525ee4ac0b9c3894
treedbbaf4d9edd010ca68ccac28d82d8552936d67dd
parent1b8ef1423dbfd34de2439a2db457b84480b7c8a8
net: refactor bind_bucket fastreuse into helper

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>
include/net/inet_connection_sock.h
net/ipv4/inet_connection_sock.c