]> git.baikalelectronics.ru Git - kernel.git/commit
ice: replay advanced rules after reset
authorVictor Raj <victor.raj@intel.com>
Tue, 26 Oct 2021 10:38:39 +0000 (12:38 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 6 Jan 2022 17:19:40 +0000 (09:19 -0800)
commit630831e79ef4b58b73c721dd75412fb58c7af537
tree62bf4905eb86c0c56e14080ffe13094fc98efdbf
parent7805ff8babbbd06d7acf7e49e3c133ebfe4377df
ice: replay advanced rules after reset

ice_replay_vsi_adv_rule will replay advanced rules for a given VSI.
Exit this function when list of rules for given recipe is empty.
Do not add rule when given vsi_handle does not match vsi_handle
from the rule info.

Use ICE_MAX_NUM_RECIPES instead of ICE_SW_LKUP_LAST in order to find
advanced rules as well.

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