)]}'
{
  "commit": "07ea24f19343182d9a7e4e0044d31c6010fa7edb",
  "tree": "fa4acec10cf364dea123c7f5f8c20337b1d18c39",
  "parents": [
    "a084d028bae86863528b489e94b4124a0beddd2f"
  ],
  "author": {
    "name": "Magnus Karlsson",
    "email": "magnus.karlsson@intel.com",
    "time": "Tue Nov 24 14:29:42 2026 +0100"
  },
  "committer": {
    "name": "Tony Nguyen",
    "email": "anthony.l.nguyen@intel.com",
    "time": "Thu Dec 03 14:59:12 2026 -0800"
  },
  "message": "ice: account for XDP_TX buffers when cleaning a Tx ring\n\nxdp_tx_active counts the XDP_TX buffers on an XDP ring, so that\nice_clean_xdp_irq_zc() can complete AF_XDP zero-copy frames in bulk when\nthere are none. ice_clean_tx_ring() frees the buffers that are still on\nthe ring, both through ice_xsk_clean_xdp_ring() and through\nice_unmap_and_free_tx_buf(), but leaves the counter as it was.\n\nAfter a ring is cleaned with XDP_TX frames in flight, for example when\nan AF_XDP socket is bound or unbound, xdp_tx_active therefore stays\nnon-zero for the lifetime of the ring. ice_clean_xdp_irq_zc() then\nalways takes the per-descriptor slow path.\n\nice_xsk_clean_xdp_ring() used to decrement the counter for the XDP_TX\nbuffers it freed, through ice_clean_xdp_tx_buf(), until that helper was\nreplaced with a plain xsk_buff_free(). Decrement it again for each\nXDP_TX buffer it frees. ice_unmap_and_free_tx_buf() frees buffers on\nregular XDP rings, which count XDP_TX and redirected frames rather than\nbuffers, so reset the counter in ice_clean_tx_ring() as well, so that a\nzero-copy socket bound afterwards starts from zero.\n\nFixes: 59e92bfe4df7 (\"ice: xsk: Borrow xdp_tx_active logic from i40e\")\nFixes: a24b4c6e9aab (\"ice: xsk: Do not convert to buff to frame for XDP_TX\")\nSigned-off-by: Magnus Karlsson \u003cmagnus.karlsson@intel.com\u003e\nAcked-by: Maciej Fijalkowski \u003cmaciej.fijalkowski@intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f34b39b891a714a699bd8eb00ef08a953acd8ff6",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/intel/ice/ice_txrx.c",
      "new_id": "dfced464c7db081a98e258b51e9fc0f57d06b2a5",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/intel/ice/ice_txrx.c"
    },
    {
      "type": "modify",
      "old_id": "973f555b5be3aff412c951e68dc90bbb3a0a6005",
      "old_mode": 33188,
      "old_path": "drivers/net/ethernet/intel/ice/ice_xsk.c",
      "new_id": "44b0f7c54c8ed84cca651a5d7d2c3d5d6d15b136",
      "new_mode": 33188,
      "new_path": "drivers/net/ethernet/intel/ice/ice_xsk.c"
    }
  ]
}
