netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] tcp/dccp: refine source port selection
@ 2023-12-14 19:29 Eric Dumazet
  2023-12-14 19:29 ` [PATCH net-next 1/2] inet: returns a bool from inet_sk_get_local_port_range() Eric Dumazet
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Eric Dumazet @ 2023-12-14 19:29 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Jakub Sitnicki, netdev, eric.dumazet, Eric Dumazet

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.

Eric Dumazet (2):
  inet: returns a bool from inet_sk_get_local_port_range()
  tcp/dccp: change source port selection at connect() time

 include/net/ip.h                |  2 +-
 net/ipv4/inet_connection_sock.c | 21 ++++++++++++++++-----
 net/ipv4/inet_hashtables.c      | 27 ++++++++++++++++-----------
 3 files changed, 33 insertions(+), 17 deletions(-)

-- 
2.43.0.472.g3155946c3a-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-01-03 16:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 19:29 [PATCH net-next 0/2] tcp/dccp: refine source port selection Eric Dumazet
2023-12-14 19:29 ` [PATCH net-next 1/2] inet: returns a bool from inet_sk_get_local_port_range() Eric Dumazet
2023-12-15  1:50   ` Kuniyuki Iwashima
2023-12-14 19:29 ` [PATCH net-next 2/2] tcp/dccp: change source port selection at connect() time Eric Dumazet
2023-12-15  1:58   ` Kuniyuki Iwashima
2023-12-15  2:26   ` Jason Xing
2023-12-16  2:10 ` [PATCH net-next 0/2] tcp/dccp: refine source port selection patchwork-bot+netdevbpf
2024-01-03 14:17 ` Jakub Sitnicki
2024-01-03 16:48   ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).