[dpdk-dev] [PATCH v3] Fixes: ethdev: secondary process change shared memory

2020-01-16 Thread Fang TongHao
Fixes the secondary process changed shared memory in "rte_eth_copy_pci_info" function.In that function only primary can update the value of "eth_dev->data" which shared by primary and secondary. Signed-off-by: Fang TongHao --- lib/librte_ethdev/rte_ethdev_pci.h | 18 +++

[dpdk-dev] [PATCH v2] Fixes: ethdev: secondary process change shared memory

2020-01-12 Thread Fang TongHao
,by adding an if-statement to forbid the secondaryprocess changing the above-mentioned value. Signed-off-by: Fang TongHao --- lib/librte_ethdev/rte_ethdev_pci.h | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev_pci.h b/lib/lib

[dpdk-dev] [PATCH] ethdev: fix secondary process change share memory

2020-01-10 Thread Fang TongHao
memory. I fixed this bug by adding an if-statement to forbid the secondary process changing the above-mentioned value. Thansk, All. Signed-off-by: Fang TongHao --- lib/librte_ethdev/rte_ethdev_pci.h | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/librte_ethd

[dpdk-dev] [PATCH] ethdev: fix secondary process change share memory

2020-01-10 Thread Fang TongHao
memory. I fixed this bug by adding an if-statement to forbid the secondary process changing the above-mentioned value. Thansk, All. Cc: sta...@dpdk.org Signed-off-by: Fang TongHao --- lib/librte_ethdev/rte_ethdev_pci.h | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --

[dpdk-dev] [PATCH] ethdev: fix secondary process change share memory

2020-01-09 Thread Fang TongHao
memory. I fixed this bug by adding an if-statement to forbid the secondary process changing the above-mentioned value. Thansk, All. Signed-off-by: Fang TongHao --- lib/librte_ethdev/rte_ethdev_pci.h | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/librte_ethd