ice: drop two params from ice_aq_alloc_free_res()
authorPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Mon, 31 Jul 2023 15:01:52 +0000 (11:01 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 17 Aug 2023 20:59:46 +0000 (13:59 -0700)
commit52da2fb2693a7525fc3a0474978b4441ee272492
treec627c4033aca84496a1e6d6a7ed29d53fcd376a1
parent1533b7743d35dc88808291b7f552697c8ee87f22
ice: drop two params from ice_aq_alloc_free_res()

Drop @num_entries and @cd params, latter of which was always NULL.

Number of entities to alloc is passed in internal buffer, the outer layer
(that @num_entries was assigned to) meaning is closer to "the number of
requests", which was =1 in all cases.
ice_free_hw_res() was always called with 1 as its @num arg.

Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_common.c
drivers/net/ethernet/intel/ice/ice_common.h
drivers/net/ethernet/intel/ice/ice_lag.c
drivers/net/ethernet/intel/ice/ice_switch.c