diff options
author | Tim Froidcoeur <tim.froidcoeur@tessares.net> | 2020-08-11 20:33:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-08-12 00:49:08 +0200 |
commit | 62ffc589abb176821662efc4525ee4ac0b9c3894 (patch) | |
tree | dbbaf4d9edd010ca68ccac28d82d8552936d67dd /include/net/inet_connection_sock.h | |
parent | net: phy: marvell10g: fix null pointer dereference (diff) | |
download | linux-62ffc589abb176821662efc4525ee4ac0b9c3894.tar.xz linux-62ffc589abb176821662efc4525ee4ac0b9c3894.zip |
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>
Diffstat (limited to 'include/net/inet_connection_sock.h')
-rw-r--r-- | include/net/inet_connection_sock.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index 1e209ce7d1bd..aa8893c68c50 100644 --- a/include/net/inet_connection_sock.h +++ b/include/net/inet_connection_sock.h @@ -304,6 +304,10 @@ void inet_csk_listen_stop(struct sock *sk); void inet_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr); +/* update the fast reuse flag when adding a socket */ +void inet_csk_update_fastreuse(struct inet_bind_bucket *tb, + struct sock *sk); + struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu); #define TCP_PINGPONG_THRESH 3 |