]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: remove unused recipe bookkeeping data
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Thu, 27 Jun 2024 14:55:44 +0000 (16:55 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 11 Jul 2024 15:57:40 +0000 (08:57 -0700)
commit589dd7145a8ea6bcc6faa286205e467ba5403f79
tree31df74608d4fb2c3d6fa45b7e01675cabd41a2d3
parent3125eb5595904c41f93587e35712acffa51e14c8
ice: remove unused recipe bookkeeping data

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 <michal.swiatkowski@linux.intel.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Marcin Szycik <marcin.szycik@linux.intel.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.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_switch.c
drivers/net/ethernet/intel/ice/ice_switch.h