On 10/12/2018 10:34 AM, phil.y...@arm.com wrote: > The cmdline settings of port-numa-config and rxring-numa-config have been > flushed by the following init_config. If we don't configure the > port-numa-config, the virtual device will allocate the device ports to > socket 0. It will cause failure when the socket 0 is unavailable. > > eg: > testpmd -l <cores from socket 1> --vdev net_pcap0,iface=lo > --socket-mem=64 -- --numa --port-numa-config="(0,1)" > --ring-numa-config="(0,1,1),(0,2,1)" -i > > ... > Configuring Port 0 (socket 0) > Failed to setup RX queue:No mempool allocation on the socket 0 > EAL: Error - exiting with code: 1 > Cause: Start ports failed > > Fix by allocate the devices port to the first available socket or the > socket configured in port-numa-config. > > Fixes: 487f9a5 ("app/testpmd: fix NUMA structures initialization") > > Signed-off-by: Phil Yang <phil.y...@arm.com> > Reviewed-by: Gavin Hu <gavin...@arm.com>
Fixes: 487f9a592a27 ("app/testpmd: fix NUMA structures initialization") Fixes: 20a0286fd2c0 ("app/testpmd: check socket id validity") Cc: sta...@dpdk.org Reviewed-by: Ferruh Yigit <ferruh.yi...@intel.com> Applied to dpdk-next-net/master, thanks.