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 DD95C42CBC for ; Thu, 15 Jun 2023 03:33:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D874640E0F; Thu, 15 Jun 2023 03:33:52 +0200 (CEST) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mails.dpdk.org (Postfix) with ESMTP id D7D7740DDA for ; Thu, 15 Jun 2023 03:33:50 +0200 (CEST) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-3f8d2bfec3bso13738175e9.2 for ; Wed, 14 Jun 2023 18:33:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686792830; x=1689384830; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mt/HqHkA2bw5vEKKyVGFvDqR/nkohWTtOwhn29CrFxc=; b=YER2CfT3B3oAyps10OHUaEiX69BYsyG2ecTzZ043INrkuhzKic5tyTBSV56aCNkBmS DTghSZTKTmK1CIsZ47+5xztLlNDqdZPi23G0rt/lLw4g9vxjSpjKEF7f6xTFHymbJAea PIJnIMmkSYICcHtQwqAiaJjx9+oIIwciKRCBFwxfidbLdvh25GyL71kiDqBtQOzWleXe JruY24PlrHUzFiVYHBNwVhDoZewmfe1M2tA/PtgzHOBXb/W8wbzh/5DEsHFFqepTAXHV FDoCrvbow7neX5NvubCU6ajtCuOBpo/yRTq1y0nnFlIv9Km6jwyJPwo6O0iHDcXbLNbp yiBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686792830; x=1689384830; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mt/HqHkA2bw5vEKKyVGFvDqR/nkohWTtOwhn29CrFxc=; b=Sj+k2+iaAujHrnoW4+BrSiA0LzxfQTELr1zxv4K8uAAS7MZBF6g2k+UDhcJ9xxQwun KHCbe+OBikWl4RHrlLLWQpsjGf59yISU+3d/7ePUCfm7p5w9NA9D51tTb+QhLnMQ+FYB PxOpTL1R/VVWgwit6Cuv2CqorD26T+/Bv6WKRkrQfXl7bN2NYD5WuLb66trLIJnzt3q5 bxAkgn159wG5oU8jGnCPtghmwNj29n6DqQzy8rcskeq5ZXC1YUx8v530HkU7z26J/SNX Fqgz7DocN9mNAfVP+nFC8NKP8pCKizKi+OcZuGmOptpaFYi1FPutHXcfnsZJOSNg2DJY qI/A== X-Gm-Message-State: AC+VfDwg7XUbui9z/3rpSWTs3GLQRz7Uu0aGLQtFU+pq1WZR93fFu5Qn taBeBwHClJYr209178iWm9AMTQL3ozgEAA== X-Google-Smtp-Source: ACHHUZ4AXGFM3KEeG7ccC6HB6qkV9PmY2gYW3zK5LlmkU1icyXHOGtjm+KO82QKeSdoc0PbqP2zfLA== X-Received: by 2002:a05:600c:2059:b0:3f7:678a:cf20 with SMTP id p25-20020a05600c205900b003f7678acf20mr14135272wmg.16.1686792830447; Wed, 14 Jun 2023 18:33:50 -0700 (PDT) Received: from localhost ([137.220.119.58]) by smtp.gmail.com with ESMTPSA id 4-20020a05600c024400b003f60101074dsm18838907wmj.33.2023.06.14.18.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jun 2023 18:33:50 -0700 (PDT) From: luca.boccassi@gmail.com To: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Cc: dpdk stable Subject: patch 'event/dsw: free rings on close' has been queued to stable release 20.11.9 Date: Thu, 15 Jun 2023 02:32:11 +0100 Message-Id: <20230615013258.1439718-16-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615013258.1439718-1-luca.boccassi@gmail.com> References: <20230615013258.1439718-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 20.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/17/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/a9e8f6d68060f695e2482350e39725077c6df1b6 Thanks. Luca Boccassi --- >From a9e8f6d68060f695e2482350e39725077c6df1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Date: Thu, 11 May 2023 08:40:29 +0200 Subject: [PATCH] event/dsw: free rings on close MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 61e4cd6d0ad118c6f4d2724a840b651af9e9ec98 ] The per-port data and control rings were not freed when the event device was closed. Fixes: 1c8e3caa3bfb ("event/dsw: add event scheduling and device start/stop") Signed-off-by: Mattias Rönnblom --- drivers/event/dsw/dsw_evdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/event/dsw/dsw_evdev.c b/drivers/event/dsw/dsw_evdev.c index 933a5a559b..ee3f441c5a 100644 --- a/drivers/event/dsw/dsw_evdev.c +++ b/drivers/event/dsw/dsw_evdev.c @@ -366,6 +366,10 @@ static int dsw_close(struct rte_eventdev *dev) { struct dsw_evdev *dsw = dsw_pmd_priv(dev); + uint16_t port_id; + + for (port_id = 0; port_id < dsw->num_ports; port_id++) + dsw_port_release(&dsw->ports[port_id]); dsw->num_ports = 0; dsw->num_queues = 0; -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-06-15 01:56:35.597494963 +0100 +++ 0016-event-dsw-free-rings-on-close.patch 2023-06-15 01:56:34.527540429 +0100 @@ -1 +1 @@ -From 61e4cd6d0ad118c6f4d2724a840b651af9e9ec98 Mon Sep 17 00:00:00 2001 +From a9e8f6d68060f695e2482350e39725077c6df1b6 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit 61e4cd6d0ad118c6f4d2724a840b651af9e9ec98 ] + @@ -13 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index ffabf0d23d..6c5cde2468 100644 +index 933a5a559b..ee3f441c5a 100644 @@ -24 +25 @@ -@@ -363,6 +363,10 @@ static int +@@ -366,6 +366,10 @@ static int