OSDN Git Service

ice: cleanup rules info
authorVictor Raj <victor.raj@intel.com>
Fri, 6 Aug 2021 08:49:03 +0000 (10:49 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 11 Oct 2021 15:49:55 +0000 (08:49 -0700)
commit8b8ef05b776e660a95d8347716b9b6c38ddf97c8
treeba3b97ccbcd6db5be34312581da2a0ce1ee97967
parent8bb98f33dead401daa5941abb357983362e0f6ca
ice: cleanup rules info

Change ICE_SW_LKUP_LAST to ICE_MAX_NUM_RECIPES as for now there also can
be recipes other than the default.

Free all structures created for advanced recipes in cleanup function.
Write a function to clean allocated structures on advanced rule info.

Signed-off-by: Victor Raj <victor.raj@intel.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Tested-by: Sandeep Penigalapati <sandeep.penigalapati@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