From: Chia-Yu Chang chia-yu.chang@nokia-bell-labs.com
Hello,
Please find the v10 AccECN protocol patch series, which covers the core functionality of Accurate ECN, AccECN negotiation, AccECN TCP options, and AccECN failure handling. The Accurate ECN draft can be found in https://datatracker.ietf.org/doc/html/draft-ietf-tcpm-accurate-ecn-28
This patch series is part of the full AccECN patch series, which is available at https://github.com/L4STeam/linux-net-next/commits/upstream_l4steam/
Best Regards, Chia-Yu
--- v10 (03-Jul-2025) - Add new patch of separated header file include/net/tcp_ecn.h to include ECN and AccECN functions (Eric Dumazet edumazet@google.com) - Add comments on the AccECN helper functions in tcp_ecn.h (Eric Dumazet edumazet@google.com) - Add documentation of tcp_ecn, tcp_ecn_option, tcp_ecn_beacon in ip-sysctl.rst to the corresponding patch (Eric Dumazet edumazet@google.com) - Split wait third ACK functionality into a separated patch from AccECN negotiation patch (Eric Dumazet edumazet@google.com) - Add READ_ONCE() over every reads of sysctl for all patches in the series (Eric Dumazet edumazet@google.com) - Merge heuristics of AccECN option ceb/cep and ACE field multi-wrap into a single patch - Add a table of SACK block reduction and required AccECN field in patch #15 commit message (Eric Dumazet edumazet@google.com)
v9 (21-Jun-2025) - Use tcp_data_ecn_check() to set TCP_ECN_SEE flag only for RFC3168 ECN (Paolo Abeni pabeni@redhat.com) - Add comments about setting TCP_ECN_SEEN flag for RFC3168 and Accruate ECN (Paolo Abeni pabeni@redhat.com) - Restruct the code in the for loop of tcp_accecn_process_option() (Paolo Abeni pabeni@redhat.com) - Remove ecn_bytes and add use_synack_ecn_bytes flag to identify whether syn_ack_bytes or received_ecn_bytes is used (Paolo Abeni pabeni@redhat.com) - Replace leftover_bytes and leftover_size with leftover_highbyte and leftover_lowbyte and add comments in tcp_options_write() (Paolo Abeni pabeni@redhat.com) - Add comments and commit message about the 1st retx SYN still attempt AccECN negotiation (Paolo Abeni pabeni@redhat.com)
v8 (10-Jun-2025) - Add new helper function tcp_ecn_received_counters_payload() in #6 (Paolo Abeni pabeni@redhat.com) - Set opts->num_sack_blocks=0 to avoid potential undefined value in #8 (Paolo Abeni pabeni@redhat.com) - Reset leftover_size to 2 once leftover_bytes is used in #9 (Paolo Abeni pabeni@redhat.com) - Add new helper function tcp_accecn_opt_demand_min() in #10 (Paolo Abeni pabeni@redhat.com) - Add new helper function tcp_accecn_saw_opt_fail_recv() in #11 (Paolo Abeni pabeni@redhat.com) - Update tcp_options_fit_accecn() to avoid using recursion in #14 (Paolo Abeni pabeni@redhat.com)
v7 (14-May-2025) - Modify group sizes of tcp_sock_write_txrx and tcp_sock_write_rx in #3 based on pahole results (Paolo Abeni pabeni@redhat.com) - Fix the issue in #4 and #5 where the RFC3168 ECN behavior in tcp_ecn_send() is changed (Paolo Abeni pabeni@redhat.com) - Modify group size of tcp_sock_write_txrx in #4 and #6 based on pahole results (Paolo Abeni pabeni@redhat.com) - Update commit message for #9 to explain the increase in tcp_sock_write_rx group size - Modify group size of tcp_sock_write_tx in #10 based on pahole results
v6 (09-May-2025) - Add #3 to utilize exisintg holes of tcp_sock_write_txrx group for later patches (#4, #9, #10) with new u8 members (Paolo Abeni pabeni@redhat.com) - Add pahole outcomes before and after commit in #4, #5, #6, #9, #10, #15 (Paolo Abeni pabeni@redhat.com) - Define new helper function tcp_send_ack_reflect_ect() for sending ACK with reflected ECT in #5 (Paolo Abeni pabeni@redhat.com) - Add comments for function tcp_ecn_rcv_synack() in #5 (Paolo Abeni pabeni@redhat.com) - Add enum/define to be used by sysctl_tcp_ecn in #5, sysctl_tcp_ecn_option in #9, and sysctl_tcp_ecn_option_beacon in #10 (Paolo Abeni pabeni@redhat.com) - Move accecn_fail_mode and saw_accecn_opt in #5 and #11 to use exisintg holes of tcp_sock (Paolo Abeni pabeni@redhat.com) - Change data type of new members of tcp_request_sock and move them to the end of struct in #5 and #11 (Paolo Abeni pabeni@redhat.com) - Move new members of tcp_info to the end of struct in #6 (Paolo Abeni pabeni@redhat.com) - Merge previous #7 into #9 (Paolo Abeni pabeni@redhat.com) - Mask ecnfield with INET_ECN_MASK to remove WARN_ONCE in #9 (Paolo Abeni pabeni@redhat.com) - Reduce the indentation levels for reabability in #9 and #10 (Paolo Abeni pabeni@redhat.com) - Move delivered_ecn_bytes to the RX group in #9, accecn_opt_tstamp to the TX group in #10, pkts_acked_ewma to the RX group in #15 (Paolo Abeni pabeni@redhat.com) - Add changes in Documentation/networking/net_cachelines/tcp_sock.rst for new tcp_sock members in #3, #5, #6, #9, #10, #15
v5 (22-Apr-2025) - Further fix for 32-bit ARM alignment in tcp.c (Simon Horman horms@kernel.org)
v4 (18-Apr-2025) - Fix 32-bit ARM assertion for alignment requirement (Simon Horman horms@kernel.org)
v3 (14-Apr-2025) - Fix patch apply issue in v2 (Jakub Kicinski kuba@kernel.org)
v2 (18-Mar-2025) - Add one missing patch from the previous AccECN protocol preparation patch series to this patch series.
--- Chia-Yu Chang (6): tcp: reorganize tcp_sock_write_txrx group for variables later tcp: ecn functions in separated include file tcp: Add wait_third_ack flag for ECN negotiation in simultaneous connect tcp: accecn: AccECN option send control tcp: accecn: AccECN option failure handling tcp: accecn: try to fit AccECN option with SACK
Ilpo Järvinen (9): tcp: reorganize SYN ECN code tcp: fast path functions later tcp: AccECN core tcp: accecn: AccECN negotiation tcp: accecn: add AccECN rx byte counters tcp: accecn: AccECN needs to know delivered bytes tcp: sack option handling improvements tcp: accecn: AccECN option tcp: accecn: AccECN option ceb/cep and ACE field multi-wrap heuristics
Documentation/networking/ip-sysctl.rst | 55 +- .../networking/net_cachelines/tcp_sock.rst | 13 + include/linux/tcp.h | 33 +- include/net/netns/ipv4.h | 2 + include/net/tcp.h | 87 ++- include/net/tcp_ecn.h | 647 ++++++++++++++++++ include/uapi/linux/tcp.h | 7 + net/ipv4/syncookies.c | 4 + net/ipv4/sysctl_net_ipv4.c | 19 + net/ipv4/tcp.c | 29 +- net/ipv4/tcp_input.c | 371 ++++++++-- net/ipv4/tcp_ipv4.c | 8 +- net/ipv4/tcp_minisocks.c | 40 +- net/ipv4/tcp_output.c | 297 ++++++-- net/ipv6/syncookies.c | 2 + net/ipv6/tcp_ipv6.c | 1 + 16 files changed, 1428 insertions(+), 187 deletions(-) create mode 100644 include/net/tcp_ecn.h