]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7ecce1d3421e6d114797fa1e96e9ada85bcdb5e
treeba3b97ccbcd6db5be34312581da2a0ce1ee97967
parent4239d2c9b64292078b1e04beab48f28189038a17
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