[dpdk-dev] [PATCH] ip_frag: free mbufs on reassembly table destroy

Legacy, Allain Allain.Legacy at windriver.com
Mon Jun 5 16:49:09 CEST 2017


> -----Original Message-----
> From: Ananyev, Konstantin [mailto:konstantin.ananyev at intel.com]
> Sent: Sunday, June 04, 2017 12:21 PM
<..>
> >
> > +/* delete fragmentation table */
> > +void
> > +rte_ip_frag_table_destroy(struct rte_ip_frag_tbl *tbl)
> > +{
> > +	uint32_t i;
> > +
> > +	for (i = 0; i < tbl->nb_entries; i++)
> > +		ip_frag_free_immediate(&tbl->pkt[i]);
> 
> 
> Looks ok, just one thought: wouldn't it be better(faster) in most cases to
> iterate over lru list?
> I suppose usually we wouldn't have nearly all entries filled in.
> Konstantin

Ok, I will send a v2 patch soon.




More information about the dev mailing list