Skip to content

tcp/dccp: refine source port selection

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2inet: returns a bool from inet_sk_get_local_port_range()include/net/ip.h net/ipv4/inet_connection_sock.c+17 -61 replyApplied
2/2tcp/dccp: change source port selection at connect() timenet/ipv4/inet_hashtables.c+16 -112 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKuniyuki IwashimaJason Xing
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/2] 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.

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(-)
Signature · 1 line
2.43.0.472.g3155946c3a-goog