tcp: Clean up inet_hash() and inet_unhash().
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
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | tcp: Remove osk from __inet_hash() arg.include/ net/ net/ | +5 | 1 reply | Applied |
| 2/3 | tcp: Remove inet6_hash().include/ include/ net/ +2 more | +6 | 1 reply | Applied |
| 3/3 | tcp: Remove redundant sk_unhashed() in inet_unhash().net/ | +0 | 1 reply | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Eric Dumazet |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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