On 2/17/2023 7:14 AM, Singh, Aman Deep wrote: > > On 2/6/2023 9:19 PM, David Marchand wrote: >> If allocating the ports[] array fails, a crash will occur when shutting >> down testpmd since ethdev emits RTE_ETH_EVENT_DESTROY events. >> Move init_port() before registering ethdev event handler. > > Looks ok to me. Avoids seg_fault, due to Null pointer access. > >> >> Fixes: 85c6571c9103 ("app/testpmd: reset port status on close >> notification") >> Cc: sta...@dpdk.org >> >> Signed-off-by: David Marchand <david.march...@redhat.com> > > Acked-by: Aman Singh <aman.deep.si...@intel.com> >
Applied to dpdk-next-net/main, thanks.