)]}'
{
  "commit": "eaf2760665b49b5dd683bb3d4d73a551813b4b25",
  "tree": "3c3e51cd55ddadd530b51f923a1afc6592b66874",
  "parents": [
    "477f4b4d65f9c7df01dd90d0b8be0181770cda38"
  ],
  "author": {
    "name": "martinduke",
    "email": "martinduke@google.com",
    "time": "Tue Nov 12 14:34:40 2024 -0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Tue Nov 12 14:35:45 2024 -0800"
  },
  "message": "Change protection scheme for code that marks outgoing ECT.\n\nThe code that marks outgoing packets ECT(0) or ECT(1) was originally written to support tests of the code that receives and reports those marks, although we knew it would eventually be used to send them in production as well. The plan was to eventually experiment with sending ECT(1) from GFE, so most of the code was protected with quic_support_ect1.\n\nThe plan has changed. For multiple reasons, initial send-side experiments will occur in Chrome instead. As such, a GFE feature flag is a cumbersome means to manage a rollout.\n\nInstead, sending ECT marks will only be enabled when QUIC loads a congestion controller that supports it. There is no code path in Quiche or GFE that will do this. Any addition in this space can be flag-protected in case of unexpected bad effects.\n\nThe various QuicPacketWriter derived classes now simply report \u0027true\u0027 for ECN support since they are no longer dependent on the flag. This is necessary but not sufficient to send ECT marks, because the congestion controller also needs to return true for \u0027EnableECT1\u0027 or \u0027EnableECT0\u0027.\n\nAlso, fix inconsistent checking of the ECN setting before calling set_ecn_bits().\n\nThis CL dramatically reduces the footprint of the feature flag. Most new code is trivial when the connection is not sending ECT. There are two exceptions:\n\n1) Feature flag quic_preserve_dscp_with_ecn protects the code that reads the DSCP bits currently set from a socket and ORs them with whatever ECN setting it is propagating. This code is a bit more complex and therefore higher-risk. It is not used in Chrome, and I strongly suspect it is not used in other Quiche codepaths. (Only QuicDefaultPacketWriter sets the ECN info bit, and that class is only used or extended in fringy places).\n\n2) QuicSentPacketManager has some complex ECN validation code in its ACK processing. This is protected by a new boolean member ecn_queried_ so that it only executes if the QuicConnection has turned on ECN markings.\n\nProtected by FLAGS_quic_restart_flag_quic_preserve_dscp_with_ecn.\n\nPiperOrigin-RevId: 695874210\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dbdcb4b880ddcb9f6513cea642c1f45f9a62086c",
      "old_mode": 33261,
      "old_path": "quiche/common/quiche_feature_flags_list.h",
      "new_id": "6bbc38d22e3202ad773cf457632e373ec97c507e",
      "new_mode": 33261,
      "new_path": "quiche/common/quiche_feature_flags_list.h"
    },
    {
      "type": "modify",
      "old_id": "3009d1d18f98f39c8f2a5b76393ae99b19f06570",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/batch_writer/quic_gso_batch_writer.cc",
      "new_id": "1d5a80fb3ef941d648f5450348e5aa908ca0521d",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/batch_writer/quic_gso_batch_writer.cc"
    },
    {
      "type": "modify",
      "old_id": "96a46eca9ac0771c44b0d6d08a0516f26b7ad7d3",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/batch_writer/quic_gso_batch_writer.h",
      "new_id": "5e829524a518974eabc142372e016f03d5517f4f",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/batch_writer/quic_gso_batch_writer.h"
    },
    {
      "type": "modify",
      "old_id": "4f3bfd6d52dde8348e75b1e416a43ca712d3e478",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/http/end_to_end_test.cc",
      "new_id": "b6321d22acef150a6364485073f618ecb2e603e2",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/http/end_to_end_test.cc"
    },
    {
      "type": "modify",
      "old_id": "7df66634604335b6c1c8428a56d725ad34d5513f",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_connection.cc",
      "new_id": "92a9e512f062f30d7235bffb6ea64ddf1fb38a45",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_connection.cc"
    },
    {
      "type": "modify",
      "old_id": "007f422e1ed5ee85dc084418926e94e3c68df6bc",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_connection_test.cc",
      "new_id": "68f8594d1baa9a294f7bfc04bf9808ceaef7714c",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_connection_test.cc"
    },
    {
      "type": "modify",
      "old_id": "c2ed31ef0eee0c72774d36d5b0097973e4f99cd7",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_dispatcher_test.cc",
      "new_id": "9585a155ec6ed9ef7c6445d620112b0cdf245b01",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_dispatcher_test.cc"
    },
    {
      "type": "modify",
      "old_id": "c71335004badf97ab73d1e6e274124e01118298f",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_sent_packet_manager.cc",
      "new_id": "7b270f263e84c77b72478b179dc8a1834c35dc6f",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_sent_packet_manager.cc"
    },
    {
      "type": "modify",
      "old_id": "43176c3adc30b414a5a7c9f77afa859a6d0876fb",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_sent_packet_manager.h",
      "new_id": "2a9474e8745d3b5a70376bf965df3cf30db6772f",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_sent_packet_manager.h"
    },
    {
      "type": "modify",
      "old_id": "9efbf9a51dcd63bbb554f457de4655874bbe98f0",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_sent_packet_manager_test.cc",
      "new_id": "cbe8861542b7174fdebdd65596f964e77c80c267",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_sent_packet_manager_test.cc"
    },
    {
      "type": "modify",
      "old_id": "1b442032e82686df17cf89e4500ad531c750b53f",
      "old_mode": 33188,
      "old_path": "quiche/quic/core/quic_udp_socket_posix.inc",
      "new_id": "cbcfbbdfbabf89fba254fd69f6e6c8c14c5e573d",
      "new_mode": 33188,
      "new_path": "quiche/quic/core/quic_udp_socket_posix.inc"
    },
    {
      "type": "modify",
      "old_id": "7037c921029dd67f6dd20aa2cbc69776fe1ef7c3",
      "old_mode": 33188,
      "old_path": "quiche/quic/test_tools/quic_connection_peer.cc",
      "new_id": "ccee6ebb74175899359fcbc309238db44a3ffdfb",
      "new_mode": 33188,
      "new_path": "quiche/quic/test_tools/quic_connection_peer.cc"
    },
    {
      "type": "modify",
      "old_id": "a5a8cbd04101c2533536359ee64cb25c3320e705",
      "old_mode": 33188,
      "old_path": "quiche/quic/test_tools/quic_sent_packet_manager_peer.cc",
      "new_id": "2120466983e65483bf9c2c41d0a3331c134ac79a",
      "new_mode": 33188,
      "new_path": "quiche/quic/test_tools/quic_sent_packet_manager_peer.cc"
    },
    {
      "type": "modify",
      "old_id": "a2b39dab62a2d7a9d762f4bdb12324c07cbaf337",
      "old_mode": 33188,
      "old_path": "quiche/quic/test_tools/quic_sent_packet_manager_peer.h",
      "new_id": "7a64fafd29c37ab261813699f4181cf0acf0a111",
      "new_mode": 33188,
      "new_path": "quiche/quic/test_tools/quic_sent_packet_manager_peer.h"
    }
  ]
}
