-----Original Message----- From: Intel-wired-lan intel-wired-lan-bounces@osuosl.org On Behalf Of Marcin Szycik Sent: Friday, March 4, 2022 10:11 PM To: netdev@vger.kernel.org Cc: jiri@resnulli.us; xiyou.wangcong@gmail.com; osmocom-net- gprs@lists.osmocom.org; jhs@mojatatu.com; laforge@gnumonks.org; intel- wired-lan@lists.osuosl.org; kuba@kernel.org; davem@davemloft.net; pablo@netfilter.org Subject: [Intel-wired-lan] [PATCH net-next v10 6/7] ice: Fix FV offset searching
From: Michal Swiatkowski michal.swiatkowski@linux.intel.com
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
v7: Fix ice_get_sw_fv_list kernel-doc v10: Fix 80 char line limit
.../net/ethernet/intel/ice/ice_flex_pipe.c | 22 +++++------ .../net/ethernet/intel/ice/ice_flex_pipe.h | 2 +- drivers/net/ethernet/intel/ice/ice_switch.c | 39 +------------------ 3 files changed, 12 insertions(+), 51 deletions(-)
Tested-by: Sandeep Penigalapati sandeep.penigalapati@intel.com