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: [email protected]
>>
>> Signed-off-by: David Marchand <[email protected]>
>
> Acked-by: Aman Singh <[email protected]>
>
Applied to dpdk-next-net/main, thanks.