dccp/tcp: constify listener sock
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest17 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | tcp: constify listener socket in tcp_v[46]_init_req()include/ net/ net/ | +9 | 0 replies | |
| 2/17 | tcp: constify tcp_openreq_init_rwin()include/ net/ | +20 | 0 replies | |
| 3/17 | inet: constify ip_route_output_flow() socket argumentinclude/ include/ net/ +1 more | +10 | 0 replies | |
| 4/17 | inet: constify inet_csk_route_req() socket argumentinclude/ net/ | +2 | 0 replies | |
| 5/17 | ipv6: constify ip6_dst_lookup_{flow|tail}() sock argumentsinclude/ net/ | +3 | 0 replies | |
| 6/17 | ipv6: constify inet6_csk_route_req() socket argumentinclude/ net/ | +2 | 0 replies | |
| 7/17 | inet: constify ip_dont_fragment() argumentsinclude/ | +5 | 0 replies | |
| 8/17 | tcp: md5: constify tcp_md5_do_lookup() socket argumentinclude/ net/ net/ | +10 | 0 replies | |
| 9/17 | ip: constify ip_build_and_send_pkt() socket argumentinclude/ net/ | +9 | 0 replies | |
| 10/17 | tcp: remove tcp_synack_options() socket argumentnet/ | +7 | 0 replies | |
| 11/17 | tcp: remove tcp_ecn_make_synack() socket argumentnet/ net/ | +13 | 0 replies | |
| 12/17 | tcp: constify tcp_make_synack() socket argumentinclude/ net/ | +16 | 0 replies | |
| 13/17 | ipv6: constify ip6_xmit() sock argumentinclude/ net/ net/ | +21 | 0 replies | |
| 14/17 | tcp: constify tcp_v{4|6}_send_synack() socket argumentinclude/ net/ net/ | +3 | 0 replies | |
| 15/17 | dccp: constify dccp_make_response() socket argumentnet/ net/ | +12 | 0 replies | |
| 16/17 | tcp/dccp: constify rtx_synack() and friendsinclude/ include/ net/ +2 more | +5 | 0 replies | |
| 17/17 | inet: constify inet_rtx_syn_ack() sock argumentinclude/ net/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 00/17] dccp/tcp: constify listener sock
Another patch bomb to prepare lockless TCP/DCCP LISTEN handling.
SYNACK retransmits are built and sent without listener socket being locked. Soon, initial SYNACK packets will have same property.
This series makes sure we did not something wrong with this model, by adding a const qualifier in all the paths taken from synack building and transmit, for IPv4/IPv6 and TCP/dccp.
The only potential problem was the rewrite of ecn bits for connections with DCTCP as congestion module, but this was a very minor one.
Eric Dumazet (17):
tcp: constify listener socket in tcp_v[46]_init_req()
tcp: constify tcp_openreq_init_rwin()
inet: constify ip_route_output_flow() socket argument
inet: constify inet_csk_route_req() socket argument
ipv6: constify ip6_dst_lookup_{flow|tail}() sock arguments
ipv6: constify inet6_csk_route_req() socket argument
inet: constify ip_dont_fragment() arguments
tcp: md5: constify tcp_md5_do_lookup() socket argument
ip: constify ip_build_and_send_pkt() socket argument
tcp: remove tcp_synack_options() socket argument
tcp: remove tcp_ecn_make_synack() socket argument
tcp: constify tcp_make_synack() socket argument
ipv6: constify ip6_xmit() sock argument
tcp: constify tcp_v{4|6}_send_synack() socket argument
dccp: constify dccp_make_response() socket argument tcp/dccp: constify rtx_synack() and friends
inet: constify inet_rtx_syn_ack() sock argument
---
David, to apply these patches you'll need to merge net tree into net-next first. Thanks !
include/net/dst.h | 9 ++++--- include/net/inet6_connection_sock.h | 2 +- include/net/inet_connection_sock.h | 2 +- include/net/ip.h | 10 +++++--- include/net/ipv6.h | 4 +-- include/net/request_sock.h | 4 +-- include/net/route.h | 2 +- include/net/tcp.h | 22 ++++++++-------- net/dccp/dccp.h | 2 +- net/dccp/ipv4.c | 2 +- net/dccp/ipv6.c | 2 +- net/dccp/output.c | 17 ++++++++----- net/ipv4/inet_connection_sock.c | 4 +-- net/ipv4/ip_output.c | 14 +++++----- net/ipv4/route.c | 2 +- net/ipv4/tcp_cong.c | 12 +++++++-- net/ipv4/tcp_ipv4.c | 11 ++++---- net/ipv4/tcp_minisocks.c | 28 ++++++++++++-------- net/ipv4/tcp_output.c | 51 +++++++++++++++++++------------------ net/ipv6/datagram.c | 2 +- net/ipv6/inet6_connection_sock.c | 2 +- net/ipv6/ip6_output.c | 30 +++++++++++++++------- net/ipv6/tcp_ipv6.c | 15 ++++++----- net/xfrm/xfrm_policy.c | 6 ++--- 24 files changed, 149 insertions(+), 106 deletions(-)
Signature · 1 line
2.6.0.rc2.230.g3dd15c0