> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Marcin Szycik
> Sent: Thursday, June 27, 2024 8:26 PM
> To: [email protected]
> Cc: [email protected]; [email protected]; Lobakin, Aleksander
> <[email protected]>; Marcin Szycik
> <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>; [email protected]
> Subject: [Intel-wired-lan] [PATCH iwl-next v3 4/7] ice: remove unused recipe
> bookkeeping data
> 
> From: Michal Swiatkowski <[email protected]>
> 
> Remove root_buf from recipe struct. Its only usage was in ice_find_recp(),
> where if recipe had an inverse action, it was skipped, but actually the driver
> never adds inverse actions, so effectively it was pointless.
> 
> Without root_buf, the recipe data element in ice_add_sw_recipe() does not
> need to be persistent and can also be automatically deallocated with __free,
> which nicely simplifies unroll.
> 
> Signed-off-by: Michal Swiatkowski <[email protected]>
> Reviewed-by: Przemek Kitszel <[email protected]>
> Signed-off-by: Marcin Szycik <[email protected]>
> ---
>  drivers/net/ethernet/intel/ice/ice_common.c |  1 -
> drivers/net/ethernet/intel/ice/ice_switch.c | 55 ++++++---------------
> drivers/net/ethernet/intel/ice/ice_switch.h |  2 -
>  3 files changed, 15 insertions(+), 43 deletions(-)
> 
Tested-by: Sujai Buvaneswaran <[email protected]>

Reply via email to