[dpdk-dev] [PATCH 05/14] eal: intr: cleanup resources

Stephen Hemminger stephen at networkplumber.org
Sun Apr 26 18:24:10 CEST 2020


On Sat, 25 Apr 2020 18:49:23 +0200
David Marchand <david.marchand at redhat.com> wrote:

> >
> > +void
> > +rte_eal_intr_cleanup(void)
> > +{
> > +       pthread_cancel(intr_thread);
> > +       pthread_join(intr_thread, NULL);
> > +       close(intr_pipe.readfd);
> > +       close(intr_pipe.writefd);  
> 
> What happens to the intr_sources callbacks?
> I am unsure we can expect the application to clean this before the eal cleanup.
> 
> It would be worth a followup patch.

The callbacks should be not run after cleanup.
The goal was to cleanup outstanding system resources (as reported by valgrind)
on eal_cleanup


More information about the dev mailing list