diff options
| author | Jakub Kicinski <kuba@kernel.org> | 2023-12-15 17:56:29 -0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2023-12-15 17:56:29 -0800 |
| commit | 358105ab92fc588aee0f37402f5705b031dc6f6f (patch) | |
| tree | dcf0343765740f75ebd2b1af6a36fca7c85d491f /include | |
| parent | 758a8d5b6a64ad63a8c0728f68dd3e21481013db (diff) | |
| parent | 207184853dbdb62d8b02c7a141d3297e94e33451 (diff) | |
Merge branch 'tcp-dccp-refine-source-port-selection'
Eric Dumazet says:
====================
tcp/dccp: refine source port selection
This patch series leverages IP_LOCAL_PORT_RANGE option
to no longer favor even source port selection at connect() time.
This should lower time taken by connect() for hosts having
many active connections to the same destination.
====================
Link: https://lore.kernel.org/r/20231214192939.1962891-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/ip.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index b31be912489a..de0c69c57e3c 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -356,7 +356,7 @@ static inline void inet_get_local_port_range(const struct net *net, int *low, in *low = range & 0xffff; *high = range >> 16; } -void inet_sk_get_local_port_range(const struct sock *sk, int *low, int *high); +bool inet_sk_get_local_port_range(const struct sock *sk, int *low, int *high); #ifdef CONFIG_SYSCTL static inline bool inet_is_local_reserved_port(struct net *net, unsigned short port) |
