> From: Maxime Leroy <maxime.leroy at 6wind.com> > > vdev ethdev can not be allocated on a numa socket that is not socket 0. > The reason comes from rte_eth_dev_allocate() which uses rte_socket_id() to > identify the socket on which vdev driver data should be allocated. > However, at this initialization step, rte_socket_id() always returns 0. > > Looking at rte_socket_id(), it needs rte_lcore_id() which uses the per-core > global _lcore_id variable. This variable is initialised by > eal_thread_init_master. > > So eal_thread_init_master should be called before rte_eal_vdev_init(). > > Signed-off-by: Maxime Leroy <maxime.leroy at 6wind.com>
Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com> Applied for version 1.6.0r2. Thanks -- Thomas