Skip to content

tcp: Clean up inet_hash() and inet_unhash().

Kuniyuki Iwashima 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 Latest3 patches 3 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3tcp: Remove osk from __inet_hash() arg.include/net/inet_hashtables.h net/ipv4/inet_hashtables.c net/ipv6/inet6_hashtables.c+5 -51 replyApplied
2/3tcp: Remove inet6_hash().include/net/inet6_hashtables.h include/net/inet_hashtables.h net/ipv4/inet_hashtables.c +2 more+6 -271 replyApplied
3/3tcp: Remove redundant sk_unhashed() in inet_unhash().net/ipv4/inet_hashtables.c+0 -91 replyApplied

Reviews trailers per patch

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

PatchEric Dumazet
1/3R-b
2/3R-b
3/3R-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 v1 net-next 0/3] tcp: Clean up inet_hash() and inet_unhash().

While reviewing the ehash fix series from Xuanqiang Luo [0], I noticed that inet_twsk_hashdance_schedule() checks the retval of __sk_nulls_del_node_init_rcu(), which looks confusing.

The test exists from the pre-git era:

  $ git blame -L:tcp_tw_hashdance net/ipv4/tcp_minisocks.c e48c414ee61f4~

Patch 3 is to clarify that the retval check is unnecessary in inet_twsk_hashdance_schedule(), but I'll delegate its removal to the Xuanqiang's series.

Patch 1 & 2 are minor cleanups.

[0]: https://lore.kernel.org/netdev/[email protected]/

Kuniyuki Iwashima (3):
tcp: Remove osk from __inet_hash() arg.
tcp: Remove inet6_hash().
tcp: Remove redundant sk_unhashed() in inet_unhash().

 include/net/inet6_hashtables.h |  2 --
 include/net/inet_hashtables.h  |  1 -
 net/ipv4/inet_hashtables.c     | 28 ++++++----------------------
 net/ipv6/inet6_hashtables.c    | 11 -----------
 net/ipv6/tcp_ipv6.c            |  2 +-
 5 files changed, 7 insertions(+), 37 deletions(-)
Signature · 1 line
2.51.0.470.ga7dc726c21-goog