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 B30F042802 for ; Wed, 22 Mar 2023 01:42:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43BCD42BC9; Wed, 22 Mar 2023 01:42:49 +0100 (CET) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id 4DEA740E09 for ; Wed, 22 Mar 2023 01:42:47 +0100 (CET) Received: by mail-wr1-f54.google.com with SMTP id r29so15405188wra.13 for ; Tue, 21 Mar 2023 17:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679445767; 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=/F9WpchZwDy8r4lJCxH0qvEL9Q40H83xtljBMDk981Q=; b=dAIpToun8DFSK8K/LduhtQtTOAAeHl187ee/T2CS8e1lIQzKotLmOl8jdZZXg7rq4N uRP5InBDbSr/SznKK4S5DileHSK88t7qEqH1ItPXRtaru2fGdodJkdzqLpMnY0qOcIEG A6mJEHHIuW7hiKc7wGsh2RoaCYz8NezuIswGzEtWaKsOX9HU98gKcUY3vzzrpsAiXwSo MlqhKSc53HqC89Gyq2O8RPVPF9rSHi7DjMzmz9jTDZGt7KRm5bDLnquds/RbrL+KFnv8 y5F6k16p9WXU9yhMt4YtlkGdjTlJDJx6pNtnx3bgxQUSpTGwNsc5g7qbyoVKMbvMRLIZ eFCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679445767; 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=/F9WpchZwDy8r4lJCxH0qvEL9Q40H83xtljBMDk981Q=; b=pGRlbPcLjXJaQwBORLj0RhRFMhoeCeVOxEVRCmiBHYlIBiXYPiG3NK5pKX0oGa6dYY FXsk/sCohqyDl0J7FNG1jse+iM1+TJzcmSDJHS7VKTfz2jAQZLsb/oMmuB/ZvCQYJYUo WWjon4zyWz+4oNizmb9d/+NbJOm30H0feGkoa84chIjcNRyAQiDBwLX0RCBGRI6Ec1iC M7uc5it37ELLMSAOO4VAzCEqRfywQzMQNPlCBk99GbydH+qyeCxwN3jX1PC/I5E6DLq7 qtVdpjgg5p6UYpRMezjDT3Dyy0dG8cbRIRvGf37AIUbt7wHI/cya69PNQ4ar17mIN9ny fmBA== X-Gm-Message-State: AO0yUKUb3fORgsyxSp25/j/1sWhiRVFJk4eqj4HQQZePwCeZs8wn4tiZ 252I9DtLFypL/n20OL3T9kc= X-Google-Smtp-Source: AK7set9rFCcX61j88BJaOucx5YraTSxr+FCElAWRYIIZbO2uqbzKduG2uwJPscS4qLwjRkZj1OcHjg== X-Received: by 2002:a05:6000:1081:b0:2ce:ae2b:cfe1 with SMTP id y1-20020a056000108100b002ceae2bcfe1mr3304334wrw.4.1679445766977; Tue, 21 Mar 2023 17:42:46 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:f1d3:eb5e:11f4:a7d9]) by smtp.gmail.com with ESMTPSA id h13-20020a5d430d000000b002d75ef32032sm5558621wrq.68.2023.03.21.17.42.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 17:42:46 -0700 (PDT) From: luca.boccassi@gmail.com To: Wei Huang Cc: Rosen Xu , dpdk stable Subject: patch 'net/ipn3ke: fix thread exit' has been queued to stable release 20.11.8 Date: Wed, 22 Mar 2023 00:41:54 +0000 Message-Id: <20230322004155.2333903-18-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230322004155.2333903-1-luca.boccassi@gmail.com> References: <20230315224631.1025649-39-luca.boccassi@gmail.com> <20230322004155.2333903-1-luca.boccassi@gmail.com> MIME-Version: 1.0 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.8 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/23/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/943d18fcd75414213bb4a1a5fbca4ee5cb165871 Thanks. Luca Boccassi --- >From 943d18fcd75414213bb4a1a5fbca4ee5cb165871 Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Thu, 16 Mar 2023 16:45:06 -0400 Subject: [PATCH] net/ipn3ke: fix thread exit [ upstream commit d8f8e928a7ba23283300b1b80259d0c102348005 ] Thread does not exit after driver is removed. When there is no more representor exist, the variable 'num' will be 0 and thread can exit safely at this time. Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor") Signed-off-by: Wei Huang Acked-by: Rosen Xu --- drivers/net/ipn3ke/ipn3ke_representor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ipn3ke/ipn3ke_representor.c b/drivers/net/ipn3ke/ipn3ke_representor.c index 603017f896..6e2e117a89 100644 --- a/drivers/net/ipn3ke/ipn3ke_representor.c +++ b/drivers/net/ipn3ke/ipn3ke_representor.c @@ -2589,7 +2589,7 @@ ipn3ke_rpst_scan_handle_request(__rte_unused void *param) } rte_delay_us(50 * MS); - if (num == 0xffffff) + if (num == 0 || num == 0xffffff) return NULL; } -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-03-21 21:56:37.759298766 +0000 +++ 0018-net-ipn3ke-fix-thread-exit.patch 2023-03-21 21:56:37.084807300 +0000 @@ -1 +1 @@ -From d8f8e928a7ba23283300b1b80259d0c102348005 Mon Sep 17 00:00:00 2001 +From 943d18fcd75414213bb4a1a5fbca4ee5cb165871 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit d8f8e928a7ba23283300b1b80259d0c102348005 ] + @@ -11 +12,0 @@ -Cc: stable@dpdk.org @@ -20 +21 @@ -index 2ef96a984a..e50fc73f43 100644 +index 603017f896..6e2e117a89 100644 @@ -23 +24 @@ -@@ -2579,7 +2579,7 @@ ipn3ke_rpst_scan_handle_request(__rte_unused void *param) +@@ -2589,7 +2589,7 @@ ipn3ke_rpst_scan_handle_request(__rte_unused void *param)