OSDN Git Service

ice: Fix FV offset searching
authorMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Fri, 4 Mar 2022 16:40:47 +0000 (17:40 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 11 Mar 2022 16:28:27 +0000 (08:28 -0800)
commite5dd661b8bb3751bfe65f4da45b4dec2bfe6d3b8
tree50f5eb60dfbb57556bf77983c20ee55340a5fcde
parent81dd9849fa4911f76a14f354a048865894b9751e
ice: Fix FV offset searching

Checking only protocol ids while searching for correct FVs can lead to a
situation, when incorrect FV will be added to the list. Incorrect means
that FV has correct protocol id but incorrect offset.

Call ice_get_sw_fv_list with ice_prot_lkup_ext struct which contains all
protocol ids with offsets.

With this modification allocating and collecting protocol ids list is
not longer needed.

Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.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_flex_pipe.c
drivers/net/ethernet/intel/ice/ice_flex_pipe.h
drivers/net/ethernet/intel/ice/ice_switch.c