On 5/8/2020 12:00 PM, Ferruh Yigit wrote: > On 5/6/2020 7:09 PM, Gaetan Rivet wrote: >> When a net_ring device is allocated, its device pointer is not set >> before calling rte_eth_dev_probing_finish, which is incorrect. >> >> The following: >> commit: 96cb19521147 ("net/ring: use EAL APIs in PMD specific API") >> commit: a6992e961050 ("net/ring: set ethernet device field") >> >> already fixed the same issue in 17.08, which was fine at the time. >> Adding the hook rte_eth_dev_probing_finish() however created this bug, >> as the eth_dev exposed when this hook is executed is expected to be >> complete. >> >> Remove the prior attempts to fix the issue in rte_pmd_ring_probe() and >> write the pointer properly in do_eth_dev_ring_create(). >> >> Cc: sta...@dpdk.org >> Fixes: fbe90cdd776c ("ethdev: add probing finish function") >> Signed-off-by: Gaetan Rivet <gr...@u256.net> > > I would prefer moving the assignment up in the stack where 'device' is > available, instead of moving the variable down in the stack to assign it, but > both does the work ... > > Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com> >
Applied to dpdk-next-net/master, thanks.