-----Original Message-----
From: Intel-wired-lan <intel-wired-lan-bounces(a)osuosl.org> On Behalf Of
Marcin Szycik
Sent: Friday, March 4, 2022 10:11 PM
To: netdev(a)vger.kernel.org
Cc: jiri(a)resnulli.us; xiyou.wangcong(a)gmail.com; osmocom-net-
gprs(a)lists.osmocom.org; jhs(a)mojatatu.com; laforge(a)gnumonks.org; intel-
wired-lan(a)lists.osuosl.org; kuba(a)kernel.org; davem(a)davemloft.net;
pablo(a)netfilter.org
Subject: [Intel-wired-lan] [PATCH net-next v10 6/7] ice: Fix FV offset searching
From: Michal Swiatkowski <michal.swiatkowski(a)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(a)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(a)intel.com>