]> git.droids-corp.org - dpdk.git/commit
net/iavf: fix shared data in multi-process
authorDapeng Yu <dapengx.yu@intel.com>
Wed, 27 Oct 2021 08:28:39 +0000 (16:28 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 27 Oct 2021 23:52:05 +0000 (01:52 +0200)
commit627b3c5a39eb5c5461bdf0f0013817c34be98944
tree19148bd7f64e30224b99ff8ba784f52662d1fbb8
parent20b631efe785819eb77aabbf500b3352e5731bdb
net/iavf: fix shared data in multi-process

The shared pointer is initialized to a static local array defined in the
primary process and it shall not be accessed in the secondary process.

This patch copies the local data to shared data, to avoid data access
violation.

Fixes: 040b44551f77 ("net/iavf: unify Rx packet type table")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf.h
drivers/net/iavf/iavf_ethdev.c
drivers/net/iavf/iavf_rxtx.c
drivers/net/iavf/iavf_rxtx.h