)]}'
{
  "commit": "19764eae57946b28df024c638eeb28b803ec67ea",
  "tree": "6313fdfabefbee41c828b492fc432a9e8c87bf83",
  "parents": [
    "720a6f58c0ba987674043b9044137cc91f24de76"
  ],
  "author": {
    "name": "Zhiqi Zhang",
    "email": "zhiqizhangg@gmail.com",
    "time": "Wed Nov 18 10:28:12 2026 +0800"
  },
  "committer": {
    "name": "Jakub Kicinski",
    "email": "kuba@kernel.org",
    "time": "Sat Nov 21 14:37:25 2026 -0800"
  },
  "message": "tcp: roccet: do not restart from idle on RTO retransmission\n\nroccet sets .cong_control, so tcp_slow_start_after_idle_check() returns\nearly and roccet implements the idle restart in cwnd_event_tx_start().\n\nAn RTO retransmission also raises CA_EVENT_TX_START: tcp_enter_loss()\nmarks the outstanding packets lost, which drains the in-flight count\nwhile tp-\u003epackets_out stays non-zero.  If delta \u003e\u003d icsk_rto,\nroccet_cwnd_event_tx_start() then takes the idle restart and overwrites\ntp-\u003esnd_ssthresh with tcp_snd_cwnd() \u003d\u003d TCP_INIT_CWND.\n\nWhen a TLP probe was sent, the RTO timer is rearmed for a full icsk_rto\nat that point and the probe is the last transmit, so the first RTO is\naffected.  Without TLP, the first RTO can escape: the timer is armed\nwhen the first packet of the flight is sent, and pacing spreads the\nfollowing ones, so now - tp-\u003elsndtime \u003c icsk_rto.  The second RTO is\nalways affected, since it fires one backed-off icsk_rto after the first\nRTO retransmit.\n\nroccet_state(TCP_CA_Loss) calls roccet_reset(), which clears the private\nstate; ca-\u003estate is already LAUNCH and last_max_cwnd is already 0 when\nroccet_cwnd_event_tx_start() runs, with or without this fix.  The only\nfield the idle restart breaks is tp-\u003esnd_ssthresh: it overwrites the\nvalue preserved by roccet_state() with TCP_INIT_CWND.\n\nSkip the idle restart while packets are outstanding.  The packetdrill\ntest in the next patch fails at the first RTO without this fix\n(snd_ssthresh \u003d\u003d 10) and passes with it.\n\nFlagged by Sashiko (see Link).\n\nCc: stable+noautosel@kernel.org # LLM report + LLM fix\nFixes: 819d59638796 (\"tcp: Add TCP ROCCET congestion control module.\")\nLink: https://lore.kernel.org/all/179179785248.434549.16829837649351382748@kernel.org/\nSigned-off-by: Zhiqi Zhang \u003czhiqizhangg@gmail.com\u003e\nReviewed-by: Eric Dumazet \u003cedumazet@kernel.org\u003e\nLink: https://patch.msgid.link/20261118022813.9778-2-zhiqizhangg@gmail.com\nSigned-off-by: Jakub Kicinski \u003ckuba@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "04b9e524661264c11972c54f906406bd034cdf8a",
      "old_mode": 33188,
      "old_path": "net/ipv4/tcp_roccet.c",
      "new_id": "1769e4bbe3e53d4ba137f0aeab7bbcaa567e4b74",
      "new_mode": 33188,
      "new_path": "net/ipv4/tcp_roccet.c"
    }
  ]
}
