Re: [dpdk-dev] [PATCH v2 1/3] net/mlx4: change device reference for secondary process

2019-03-26 Thread Shahaf Shuler
Monday, March 25, 2019 9:18 PM, Yongseok Koh: > Subject: [dpdk-dev] [PATCH v2 1/3] net/mlx4: change device reference for > secondary process > > rte_eth_devices[] is not shared between primary and secondary process, > but a static array to each process. The reverse pointer of de

[dpdk-dev] [PATCH v2 1/3] net/mlx4: change device reference for secondary process

2019-03-25 Thread Yongseok Koh
rte_eth_devices[] is not shared between primary and secondary process, but a static array to each process. The reverse pointer of device (priv->dev) becomes invalid if mlx4 supports secondary process. Instead, priv has the pointer to shared data of the device, struct rte_eth_dev_data *dev_data;