]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: Remove reading all recipes before adding a new one
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Thu, 27 Jun 2024 14:55:42 +0000 (16:55 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 11 Jul 2024 15:50:34 +0000 (08:50 -0700)
commitc563908494e9578da70a11d49f6ad75c56fe8d48
tree283c6f82ff488d749977d4de69a86ab857a5c4d4
parente247267bbeaf0d904b95765b2721495f6581eb65
ice: Remove reading all recipes before adding a new one

The content of the first read recipe is used as a template when adding a
recipe. It isn't needed - only prune index is directly set from there. Set
it in the code instead. Also, now there's no need to set rid and lookup
indexes to 0, as the whole recipe buffer is initialized to 0.

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_switch.c