[PATCH v2] eal: add destructor to unregister tailq on unload

Stephen Hemminger stephen at networkplumber.org
Wed Jun 10 17:57:49 CEST 2026


On Wed, 10 Jun 2026 09:19:42 +0800
fengchengwen <fengchengwen at huawei.com> wrote:

> >  
> > +RTE_EXPORT_SYMBOL(rte_eal_tailq_unregister)  
> 
> this should be with EXPERIMENTAL

Not possible, this is part of the EAL_REGISTER_TAILQ macro and usage
is under the covers. So if anything was marked experimental it would
fail code that did not allow experimental

> 
> > +void
> > +rte_eal_tailq_unregister(struct rte_tailq_elem *t)
> > +{
> > +	TAILQ_REMOVE(&rte_tailq_elem_head, t, next);  
> 
> We need first make sure it exist the tailq, just like TAILQ_FOREACH rte_eal_tailq_local_register()

Ok cheap scan since not in critical path.


More information about the dev mailing list