ethdev: fix secondary process memory overwrite
authorFang TongHao <fangtonghao@sangfor.com.cn>
Fri, 17 Jan 2020 02:08:04 +0000 (10:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:59:19 +0000 (19:59 +0100)
commit99ef90317da69a5e6ecc831ad05c6d2053e2b065
treed548fab8566f87a53980515cc5df949f1f0ee226
parent39c09c22e5b5c46cf8f44826a1c759e036f3af3a
ethdev: fix secondary process memory overwrite

Avoid overwriting device flags and other information in device
data stored in shared memory when a secondary process
probes PCI device.

Fixes: 494adb7f63f2 ("ethdev: add device fields from PCI layer")
Cc: stable@dpdk.org
Signed-off-by: Fang TongHao <fangtonghao@sangfor.com.cn>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_ethdev/rte_ethdev_pci.h