net/fm10k: fix stats crash in multi-process
authorLu Qiuwen <luqiuwen@iie.ac.cn>
Wed, 7 Aug 2019 08:24:22 +0000 (16:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Aug 2019 10:43:23 +0000 (12:43 +0200)
commit61874d3c0663504f83d93a4701627a5949160a0f
tree017edeb44f02b941a7d2b0ce73ee17d8a5a5d5d7
parent2da3ba7467955bce812f5f2c79c6c57859689bb6
net/fm10k: fix stats crash in multi-process

The ops pointers in fm10k_stats_get() are set up from primary
process, when secondary process calls these ops pointers,
a segment fault will happen.

Fixes: 7223d200c227 ("fm10k: add base driver")
Cc: stable@dpdk.org
Signed-off-by: Lu Qiuwen <luqiuwen@iie.ac.cn>
Acked-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/fm10k/base/fm10k_api.c
drivers/net/fm10k/base/fm10k_pf.c
drivers/net/fm10k/base/fm10k_pf.h
drivers/net/fm10k/base/fm10k_vf.c
drivers/net/fm10k/base/fm10k_vf.h