net/hinic: fix crash in secondary process
authorGuoyang Zhou <zhouguoyang@huawei.com>
Tue, 23 Mar 2021 13:17:51 +0000 (21:17 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Mar 2021 13:05:47 +0000 (15:05 +0200)
commit4c670dfaa417bc5604c9c58b505a74e2725acdb2
treeab3fa374bec0c171df8597dc3f7e9c9a1fc50341
parent19cc526d6c792cb08ab544ff680a0d0c7b92c291
net/hinic: fix crash in secondary process

Some apps, such as fstack, will use secondary process to access the
memory of eth_dev_ops, and they want to get the info of dev, but hinic
driver does not initialized it when in secondary process.

Fixes: 66f64dd6dc86 ("net/hinic: fix secondary process")
Cc: stable@dpdk.org
Signed-off-by: Guoyang Zhou <zhouguoyang@huawei.com>
drivers/net/hinic/base/hinic_compat.h
drivers/net/hinic/hinic_pmd_ethdev.c