[dpdk-dev] [v3 PATCH] test_distributor: prevent memory leakages from the pool

David Marchand david.marchand at redhat.com
Mon Oct 19 10:34:12 CEST 2020


On Fri, Sep 25, 2020 at 5:27 PM David Hunt <david.hunt at intel.com> wrote:
> On 8/9/2020 11:22 AM, Sarosh Arif wrote:
> > rte_mempool_get_bulk is used to get bufs/many_bufs from the pool,
> > but at some locations when test fails the bufs/many_bufs are
> > not returned back to the pool.
> > Due to this, multiple executions of distributor_autotest gives the
> > following error message: Error getting mbufs from pool.
> > To resolve this issue rte_mempool_put_bulk is used whenever the test
> > fails and returns.
> >

Fixes: c3eabff124e6 ("distributor: add unit tests")
Cc: stable at dpdk.org

> > Signed-off-by: Sarosh Arif <sarosh.arif at emumba.com>
Acked-by: Lukasz Wojciechowski <l.wojciechow at partner.samsung.com>
> Reviewed-by: David Hunt <david.hunt at intel.com>

Applied, thanks Sarosh.


-- 
David Marchand



More information about the dev mailing list