Make sure all resource allocations are completed by
switch_packet_driver_thread before exiting the parent.
From OpenSwitch context, this was resulting in occasional crashes
inside switch_api_hostif_create() when returning parent triggred
other operations related CPU interface, which was still being worked
upon by switch_packet_driver_thread.
Make sure all resource allocations are completed by switch_packet_driver_thread before exiting the parent.
From OpenSwitch context, this was resulting in occasional crashes inside switch_api_hostif_create() when returning parent triggred other operations related CPU interface, which was still being worked upon by switch_packet_driver_thread.
Signed-off-by: Aniketa aniketa.kod.sreedhar@hpe.com