From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 81A21A0546; Sat, 1 May 2021 16:42:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B4454014F; Sat, 1 May 2021 16:42:12 +0200 (CEST) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id C3AF94013F for ; Sat, 1 May 2021 16:42:10 +0200 (CEST) Received: by mail-pj1-f53.google.com with SMTP id t13so594609pji.4 for ; Sat, 01 May 2021 07:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fplJ48Oa6Pojp2OyQAMHInbnAVFisWu0bZmCu3VP68U=; b=l5FBAAe2wSkL9Ns+4YYJlQQNYJzxTvWnJLBQrhDBb6+GrJzjoe88OOjY0DdS5Dl8xN 1ersCrxZ8OhUIyXCZJQTRLN+tzOy4lnZJDWnm1n4LuEXe45yI/gvXjEMi3jFD6YUyyzg +tksFKzpILzQZEhya4DNEq6/UtK3/uPON00+VfAY4ue4qZmh7KXpNsQ96iqxZGQZdNVv cIkLTXb83Ec5HkCh/58fWZg3L5j7z937xujPIGaA9QK05ZPo9L//V0zaeWOLgmKDNpEI bGSTUcCEDcFyEm7rnK+ok7zQCIyF+2AWfonY+X5Pi3wLkyguWXfYQ/MfFmE6O+4anXLr X9RA== 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=fplJ48Oa6Pojp2OyQAMHInbnAVFisWu0bZmCu3VP68U=; b=WaUrk/SqXI4npER0VHkbb0ATI43sAClTIjnSbAOlqnc8M6NvWYYyiJN7CrAZzV6nfT O4cc+3zoIK18BElm4h82Ev+ueFRS2IQ6txKAwUyLypEbU14LPUvNQqKL+YO+GVIILgny YKcHWq5RLDm8krsekEdROOOidfiYJaDxUt1vW0csvh0PKsepsqOnlonsCJIjMrkwBz6L KPwfFfHRlk9v0RWcxj/JfRFEnER06dzkijAwulXACcotuRdaudWgwEKFsJgx4qODJfXb 1dOwsR9ucOadI7syNoUXUOJTl7Kv/tLTNdnwjLSbdUdj9QhOlNoFS6Xe7CYnoRQSobg/ xn3Q== X-Gm-Message-State: AOAM533NvDDisFzzPWt2psMUMzNVRqj8SdnmdAr+0NXvzXkS/Fv/T/ST l10OCpSDr7bnYDcGrh0AE+T8DmF7GFHlcys3vZs= X-Google-Smtp-Source: ABdhPJwsXyoLuqDigbPbX2HUIfdDFqlNNvJ8XJ0VQytFGi2ZsZP+KTxtvezmuoP0+H/rq0EOOYYJ7zyW6cdxU3LqMgg= X-Received: by 2002:a17:90a:6e45:: with SMTP id s5mr21059990pjm.125.1619880129873; Sat, 01 May 2021 07:42:09 -0700 (PDT) MIME-Version: 1.0 References: <1619775278-25857-1-git-send-email-humin29@huawei.com> <1619775278-25857-3-git-send-email-humin29@huawei.com> In-Reply-To: From: Jerin Jacob Date: Sat, 1 May 2021 20:11:54 +0530 Message-ID: To: "Min Hu (Connor)" , "Jayatheerthan, Jay" Cc: dpdk-dev , Ferruh Yigit , Jerin Jacob Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 2/2] eventdev: fix memory leakage when create thread fail X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, May 1, 2021 at 6:08 PM Jerin Jacob wrote: > > On Fri, Apr 30, 2021 at 3:04 PM Min Hu (Connor) wrote: > > > > From: Chengwen Feng > > > > This patch fixes the issue that epoll_events memory is not released > > after the intr thread created fail. > > > > Fixes: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter") > > Cc: stable@dpdk.org > > > > Signed-off-by: Chengwen Feng > > Signed-off-by: Min Hu (Connor) > > Reviewed-by: Jerin Jacob Series applied to dpdk-next-eventdev/for-main. Thanks. > > > > --- > > lib/eventdev/rte_event_eth_rx_adapter.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c > > index d317e89..13dfb28 100644 > > --- a/lib/eventdev/rte_event_eth_rx_adapter.c > > +++ b/lib/eventdev/rte_event_eth_rx_adapter.c > > @@ -1436,6 +1436,7 @@ rxa_create_intr_thread(struct rte_event_eth_rx_adapter *rx_adapter) > > return 0; > > > > RTE_EDEV_LOG_ERR("Failed to create interrupt thread err = %d\n", err); > > + rte_free(rx_adapter->epoll_events); > > error: > > rte_ring_free(rx_adapter->intr_ring); > > rx_adapter->intr_ring = NULL; > > -- > > 2.7.4 > >