From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0D630A04DC; Mon, 19 Oct 2020 10:34:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D8E11BE87; Mon, 19 Oct 2020 10:34:30 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id DBA89BE87 for <dev@dpdk.org>; Mon, 19 Oct 2020 10:34:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603096466; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Szdq9zCbvFQhhOudyT1hTPWB2hzF7pvYU/79vs60d4Y=; b=H68zPUT6i9xA9GR7YHwloCDlKSg0iPUZP28bAdafxgHXblTRwjBgiVcrj4B+o8HZ/3d058 AKUrp7eirK9vcUvrXrSUnpaPCECxJxwl3i4eZ+kYqzXmYrIqDfpcdg9szgpB/YdDdRYO9N /3PA4jfn5iRTrDpZ43GshWSE2HhReHE= Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-38-R9ODdR8CMDiYXwsmZ5-kyA-1; Mon, 19 Oct 2020 04:34:24 -0400 X-MC-Unique: R9ODdR8CMDiYXwsmZ5-kyA-1 Received: by mail-ua1-f72.google.com with SMTP id k5so1261143uag.1 for <dev@dpdk.org>; Mon, 19 Oct 2020 01:34:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Szdq9zCbvFQhhOudyT1hTPWB2hzF7pvYU/79vs60d4Y=; b=IGLET3DT1Xz2wX3vxe7leUSVEkmynmAApcWHaUJkLzHwsbZRdQmOTMCK8e4FqHoG8L CKKiIxYa+4uQJf8ACQaEtJsNIEAZyRwb+Op+8gh6ch5NgkB2FFkSvEYvF/UViBgIwEkt xyDNOV5/WYKZuFXWG/yqDuGgWyxTIgOmismPRacIO9WNTou+3E9Yx04AQj0ZBXLajZpm QXjSAw94OQns1xdpyayPggZGx8qfKLTsDPiLNl0isx6pRojaPT464H6WmBiRk1w09Ykq W7Yr/WjfSDp3MnDFkjgFKCHxYiXpapzvma9wUUwljyoW6YFHMv2eaPcLT/CethGS6Cgq kj/A== X-Gm-Message-State: AOAM5330XzuGCYLyne3u2ecghoQuz/Obk42FPBo0D2P3ILf1jkp67vuU 0Tv0rTkCk9tBrjJK1nLo2sCe7R4kJkMza8Jikh43YT5X8xMQrprtBboMANSIZhg34ofHv3C1C1o t71v8TBIJGnQz4YDFFfw= X-Received: by 2002:a1f:9381:: with SMTP id v123mr7516043vkd.20.1603096464067; Mon, 19 Oct 2020 01:34:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKQCpy3DV3Uhsrvdfk/rSXFb8QgU/OJHk/K/M7FqNiv9lhGvTyf8XaJd2IatvmDpGfMW/Ji6F3SCwj2KPj4qs= X-Received: by 2002:a1f:9381:: with SMTP id v123mr7516037vkd.20.1603096463868; Mon, 19 Oct 2020 01:34:23 -0700 (PDT) MIME-Version: 1.0 References: <20200415064238.24012-1-sarosh.arif@emumba.com> <20200908102204.727240-1-sarosh.arif@emumba.com> <da6602d2-ec2f-78b9-66b4-f43842fc18b8@intel.com> In-Reply-To: <da6602d2-ec2f-78b9-66b4-f43842fc18b8@intel.com> From: David Marchand <david.marchand@redhat.com> Date: Mon, 19 Oct 2020 10:34:12 +0200 Message-ID: <CAJFAV8yvnSXEpKxNiYOLjobUiEQRA8EK97DbS29bsgomoG_HQg@mail.gmail.com> To: Sarosh Arif <sarosh.arif@emumba.com> Cc: David Hunt <david.hunt@intel.com>, Lukasz Wojciechowski <l.wojciechow@partner.samsung.com>, dev <dev@dpdk.org> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [v3 PATCH] test_distributor: prevent memory leakages from the pool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> On Fri, Sep 25, 2020 at 5:27 PM David Hunt <david.hunt@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@dpdk.org > > Signed-off-by: Sarosh Arif <sarosh.arif@emumba.com> Acked-by: Lukasz Wojciechowski <l.wojciechow@partner.samsung.com> > Reviewed-by: David Hunt <david.hunt@intel.com> Applied, thanks Sarosh. -- David Marchand