> -----Original Message-----
> From: Yu, DapengX <[email protected]>
> Sent: Monday, October 25, 2021 13:40
> To: Yang, Qiming <[email protected]>; Zhang, Qi Z <[email protected]>
> Cc: [email protected]; Wang, Haiyue <[email protected]>; Yu, DapengX 
> <[email protected]>;
> [email protected]
> Subject: [PATCH v4] net/ice: fix function pointer in multi-process
> 
> From: Dapeng Yu <[email protected]>
> 
> 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: [email protected]
> 
> Signed-off-by: Dapeng Yu <[email protected]>
> ---
> 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 <[email protected]>

> --
> 2.27.0

Reply via email to