[dpdk-stable] [PATCH v4] net/ice: fix function pointer in multi-process

Wang, Haiyue haiyue.wang at intel.com
Mon Oct 25 07:47:14 CEST 2021


> -----Original Message-----
> From: Yu, DapengX <dapengx.yu at intel.com>
> Sent: Monday, October 25, 2021 13:40
> To: Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>
> Cc: dev at dpdk.org; Wang, Haiyue <haiyue.wang at intel.com>; Yu, DapengX <dapengx.yu at intel.com>;
> stable at dpdk.org
> Subject: [PATCH v4] net/ice: fix function pointer in multi-process
> 
> From: Dapeng Yu <dapengx.yu at 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: stable at dpdk.org
> 
> Signed-off-by: Dapeng Yu <dapengx.yu at 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.wang at intel.com>

> --
> 2.27.0



More information about the stable mailing list