]> git.droids-corp.org - dpdk.git/commit
net/ice: fix function pointer in multi-process
authorDapeng Yu <dapengx.yu@intel.com>
Tue, 26 Oct 2021 01:55:42 +0000 (09:55 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 27 Oct 2021 03:29:39 +0000 (05:29 +0200)
commit20b631efe785819eb77aabbf500b3352e5731bdb
tree440b66f9762da09d28b150d1f7c8cd8e3e34bfc3
parentb4f0d4ab66b083af79763c8e7d713104ab079367
net/ice: fix function pointer in multi-process

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@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ice/ice_rxtx.c
drivers/net/ice/ice_rxtx.h