RE: [Intel-wired-lan] [PATCH iwl-next 1/6] ice: convert hw->agg_list from linked list to xarray
From: Rinitha, SX <hidden>
Date: 2026-06-15 16:06:14
Also in:
intel-wired-lan
-----Original Message----- From: Intel-wired-lan <redacted> On Behalf Of Jacob Keller Sent: 02 June 2026 05:44 To: Intel Wired LAN <redacted>; netdev@vger.kernel.org; Nguyen, Anthony L <anthony.l.nguyen@intel.com> Cc: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; Loktionov, Aleksandr <redacted>; Keller, Jacob E <jacob.e.keller@intel.com>; Loktionov, Aleksandr <redacted> Subject: [Intel-wired-lan] [PATCH iwl-next 1/6] ice: convert hw->agg_list from linked list to xarray The scheduler code saves information about the aggregator nodes in a linked list in the hw->agg_list structure. This choice of data structure is not ideal. Indeed, several places in the code iterate the list searching to see if a given ID is present. Convert the linked list into an xarray. Where possible, simplify aggregator info lookup to use xa_load instead of iterating over all the entries. Switching to xarray data structure better matches the existing usage pattern. In addition, it prepares the code to allow removal of the ice_agg_node wrapping structure used by ice_vsi, which will be completed in following changes. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Aleksandr Loktionov <redacted> --- drivers/net/ethernet/intel/ice/ice_sched.h | 1 - drivers/net/ethernet/intel/ice/ice_type.h | 2 +- drivers/net/ethernet/intel/ice/ice_common.c | 4 +- drivers/net/ethernet/intel/ice/ice_sched.c | 58 ++++++++++++----------------- 4 files changed, 27 insertions(+), 38 deletions(-)
Tested-by: Rinitha S <redacted> (A Contingent worker at Intel)