> -----Original Message----- > From: Yu, DapengX <dapengx...@intel.com> > Sent: Monday, October 25, 2021 13:40 > To: Yang, Qiming <qiming.y...@intel.com>; Zhang, Qi Z <qi.z.zh...@intel.com> > Cc: dev@dpdk.org; Wang, Haiyue <haiyue.w...@intel.com>; Yu, DapengX > <dapengx...@intel.com>; > sta...@dpdk.org > Subject: [PATCH v4] net/ice: fix function pointer in multi-process > > From: Dapeng Yu <dapengx...@intel.com> > > This patch uses the index value to call the function, instead of the > function pointer assignment to save the selection of Receive Flex > Descriptor profile ID. > > Otherwise the secondary process will run with wrong function address > from primary process. > > Fixes: 7a340b0b4e03 ("net/ice: refactor Rx FlexiMD handling") > Cc: sta...@dpdk.org > > Signed-off-by: Dapeng Yu <dapengx...@intel.com> > --- > V2: > * Remove redundant code > V3: > * Fix incorrect switch statements in V2 > V4: > * Combine similar case statements > --- > drivers/net/ice/ice_rxtx.c | 32 ++++++++++++++++++-------------- > drivers/net/ice/ice_rxtx.h | 2 +- > 2 files changed, 19 insertions(+), 15 deletions(-) >
Acked-by: Haiyue Wang <haiyue.w...@intel.com> > -- > 2.27.0