]> git.baikalelectronics.ru Git - kernel.git/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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Aug 2020 22:49:08 +0000 (15:49 -0700)
commit149254b0ac04c5d58f7472662a652afe8bd864a3
treedbbaf4d9edd010ca68ccac28d82d8552936d67dd
parent1a0912562e5c7e0a15f2d793fe6f5cbae33987be
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