tcp: Refactor bhash2 and remove sk_bind2_node.
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 · linked by author and title
- v2 Latest posting 2/212 patches 10 repliesApplied 12/12
- v2 posting 1/212 patches 4 repliesSuperseded
- v112 patches 2 repliesSuperseded
Patches in v2 posting 2/2 All 12 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | tcp: Use bhash2 for v4-mapped-v6 non-wildcard address.net/ net/ | +7 | 0 replies | Applied |
| 2/12 | tcp: Rearrange tests in inet_bind2_bucket_(addr_match|match_addr_any)().net/ | +12 | 1 reply | Applied |
| 3/12 | tcp: Save v4 address as v4-mapped-v6 in inet_bind2_bucket.v6_rcv_saddr.include/ include/ net/ | +21 | 0 replies | Applied |
| 4/12 | tcp: Save address type in inet_bind2_bucket.include/ net/ | +14 | 1 reply | Applied |
| 5/12 | tcp: Rename tb in inet_bind2_bucket_(init|create)().net/ | +16 | 1 reply | Applied |
| 6/12 | tcp: Link bhash2 to bhash.include/ net/ net/ | +15 | 1 reply | Applied |
| 7/12 | tcp: Rearrange tests in inet_csk_bind_conflict().net/ | +19 | 1 reply | Applied |
| 8/12 | tcp: Iterate tb->bhash2 in inet_csk_bind_conflict().net/ | +17 | 1 reply | Applied |
| 9/12 | tcp: Check hlist_empty(&tb->bhash2) instead of hlist_empty(&tb->owners).net/ net/ net/ | +8 | 1 reply | Applied |
| 10/12 | tcp: Unlink sk from bhash.include/ net/ net/ | +0 | 1 reply | Applied |
| 11/12 | tcp: Link sk and twsk to tb2->owners using skc_bind_node.include/ net/ net/ +2 more | +9 | 1 reply | Applied |
| 12/12 | tcp: Remove dead code and fields for bhash2.include/ include/ include/ +2 more | +1 | 1 reply | Applied |
Reviews trailers per patch
All 12 patches have a Reviewed-by or Acked-by.
| Patch | Eric Dumazet |
|---|---|
| 1/12 | R-b |
| 2/12 | R-b |
| 3/12 | R-b |
| 4/12 | R-b |
| 5/12 | R-b |
| 6/12 | R-b |
| 7/12 | R-b |
| 8/12 | R-b |
| 9/12 | R-b |
| 10/12 | R-b |
| 11/12 | R-b |
| 12/12 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RESEND v2 net-next 00/12] tcp: Refactor bhash2 and remove sk_bind2_node.
This series refactors code around bhash2 and remove some bhash2-specific fields; sock.sk_bind2_node, and inet_timewait_sock.tw_bind2_node.
patch 1 : optimise bind() for non-wildcard v4-mapped-v6 address
patch 2 - 4 : optimise bind() conflict tests
patch 5 - 12 : Link bhash2 to bhash and unlink sk from bhash2 to
remove sk_bind2_node
The patch 8 will trigger a false-positive error by checkpatch.
v2: resend of https://lore.kernel.org/netdev/[email protected]/
* Rebase on latest net-next
* Patch 11
* Add change in inet_diag_dump_icsk() for recent bhash dump patch
v1: https://lore.kernel.org/netdev/[email protected]/
Kuniyuki Iwashima (12):
tcp: Use bhash2 for v4-mapped-v6 non-wildcard address.
tcp: Rearrange tests in
inet_bind2_bucket_(addr_match|match_addr_any)().
tcp: Save v4 address as v4-mapped-v6 in
inet_bind2_bucket.v6_rcv_saddr.
tcp: Save address type in inet_bind2_bucket.
tcp: Rename tb in inet_bind2_bucket_(init|create)().
tcp: Link bhash2 to bhash.
tcp: Rearrange tests in inet_csk_bind_conflict().
tcp: Iterate tb->bhash2 in inet_csk_bind_conflict().
tcp: Check hlist_empty(&tb->bhash2) instead of
hlist_empty(&tb->owners). tcp: Unlink sk from bhash.
tcp: Link sk and twsk to tb2->owners using skc_bind_node.
tcp: Remove dead code and fields for bhash2.
include/net/inet_hashtables.h | 21 +++---- include/net/inet_timewait_sock.h | 4 -- include/net/ipv6.h | 5 -- include/net/sock.h | 14 ----- net/ipv4/inet_connection_sock.c | 73 +++++++++++------------- net/ipv4/inet_diag.c | 2 +- net/ipv4/inet_hashtables.c | 98 +++++++++++++++----------------- net/ipv4/inet_timewait_sock.c | 21 +------ 8 files changed, 92 insertions(+), 146 deletions(-)
Signature · 1 line
2.30.2