From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 57BBAA09DF for ; Wed, 2 Dec 2020 18:16:52 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1A25FC988; Wed, 2 Dec 2020 18:16:51 +0100 (CET) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id 71C2AC988 for ; Wed, 2 Dec 2020 18:16:49 +0100 (CET) Received: by mail-wr1-f66.google.com with SMTP id u12so4900540wrt.0 for ; Wed, 02 Dec 2020 09:16:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=Tc86o79Cg6zJw6JOF3aanAWpAlanrAcC3EA2pNWv9pM=; b=oTrWWpigmeK2OHBim4v6Aw3lPDE5broZNaL57bTBy8Pc6clG2XYT9jLoGTcHjfWKQo 932btpVrBJJs2VpzniIOjOkhh1PBsoKn0hGJLgpzNu0BbQkH/ysVUS7YkE+hap3Pim+g YEBOmWExrWk33JAG4ur49GX2gekBj7yzNCpenvx41CsbF0UQzSZC3xMGRcciVl5V0SbC BMCzuSN6Vtd0AkD/sr073gIEUFMdkoLeAlhL0CeVQVr87Q/tWaFA0ODOtcoU7aQLloJp TFujP3A8yDn1w/U9oGiSsivvnULQQMRlvZAnEyAx2nX+P93auDZ/BrBYB7/vBQnNJCJD mBVA== X-Gm-Message-State: AOAM533TarnX/Cm0QFg/qX/Rq0Sxnh2MPP+mD4+LhRPwhd7tJSwwlBPv Y3aRw8P5WAH9nXNMqMIvzy7X+qf2w/UmVg== X-Google-Smtp-Source: ABdhPJyOydN+J455Ut6USSKEkUS+zZ4oXPvEiAJA9syLjer4s4LcNK1nObDzpNLJPMbAi1gmLvm6ng== X-Received: by 2002:a5d:6744:: with SMTP id l4mr4544311wrw.378.1606929408035; Wed, 02 Dec 2020 09:16:48 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id e4sm2822765wrr.32.2020.12.02.09.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 09:16:47 -0800 (PST) Message-ID: <0915b37af8170af2450d1a57b9541c0bd937d9f7.camel@debian.org> From: Luca Boccassi To: Rahul Lakkireddy , stable@dpdk.org Date: Wed, 02 Dec 2020 17:16:46 +0000 In-Reply-To: <1606927495-27287-1-git-send-email-rahul.lakkireddy@chelsio.com> References: <1606927495-27287-1-git-send-email-rahul.lakkireddy@chelsio.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH 19.11] net/cxgbe: fix queue DMA ring leaks during port close X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" On Wed, 2020-12-02 at 22:14 +0530, Rahul Lakkireddy wrote: > [ upstream commit 6b78a629954c3857d4bc651a673fe102958a12db ] >=20 > Free up the DMA memzones properly for all the port's queues during > port close. So, rework DMA ring allocation/free logic to use > rte_eth_dma_zone_reserve()/rte_eth_dma_zone_free() helper functions > for allocating/freeing the memzones. >=20 > The firmware event queue doesn't have an associated freelist queue. > So, remove check that tries to give memzone name for a non-existent > freelist queue. >=20 > Also, add a missing free for the control queue mempools. >=20 > Fixes: 0462d115441d ("cxgbe: add device related operations") >=20 > Signed-off-by: Rahul Lakkireddy > --- > drivers/net/cxgbe/base/adapter.h | 1 + > drivers/net/cxgbe/cxgbe_ethdev.c | 7 +- > drivers/net/cxgbe/sge.c | 175 +++++++++++++++++-------------- > 3 files changed, 101 insertions(+), 82 deletions(-) Acked-by: Luca Boccassi Thanks, applied. --=20 Kind regards, Luca Boccassi