On 7/19/2018 5:32 PM, Stephen Hemminger wrote: > On Thu, 19 Jul 2018 17:45:56 +0100 > Ferruh Yigit <ferruh.yi...@intel.com> wrote: > >> Calling rte_eth_dev_info_get() on secondary process cause a crash >> because eth_dev->device is not set properly. >> >> Fixes: ee27edbe0c10 ("drivers/net: share vdev data to secondary process") >> Cc: sta...@dpdk.org >> >> Signed-off-by: Ferruh Yigit <ferruh.yi...@intel.com> > > Good catch. > > Maybe eth_dev should do this for the device drivers? > Better to make device drivers as simple and safe as possible.
Agreed, let me try to create a helper function for this. > > There seem to be a lot of bugs related to secondary process model. > Do we have a test suite for that. >