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 66856A0518 for ; Fri, 24 Jul 2020 14:05:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5ED861C029; Fri, 24 Jul 2020 14:05:02 +0200 (CEST) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by dpdk.org (Postfix) with ESMTP id 81B2F1C039 for ; Fri, 24 Jul 2020 14:05:00 +0200 (CEST) Received: by mail-wr1-f68.google.com with SMTP id r12so8045041wrj.13 for ; Fri, 24 Jul 2020 05:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8/t6H+98l1O7BUipukmDmVmNXTLyG3bxZRLoGLALRs0=; b=XU9XjvbIPdtw3MAYBpuDgjkCqIrS2r60pTkm+BVM9ZKNOXK5sXBj+MVLkW8SpAjLku LVC5+1u9niQ+c2OLzJVjZwQd0KfJdM4J+YHcwQy3Qd4ZHbkgH9B+b7fh0qkNZl6OGd3X LixWs8cOTVu24+1TrQ3jlo74F05/L3zHYAWYrdDs1nzfxPzh637Ln0vKxI5yj4/OEV6a 5GmZe9ajJzPljkv2xdgAxiyGWrRIRQQqty407dSxuiy2zn/oqshqSDL4wSRl0hYyPmfE m/GEIgp2wFXEyRHGhaAq6qg76p9uze75geLt/FWaab8hb937OMPnA0vDiuLrhtHlC939 V51Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8/t6H+98l1O7BUipukmDmVmNXTLyG3bxZRLoGLALRs0=; b=t7IYSvrnnq1wpErqzxSb7RKSwr4I3II45xjmrMN2aJAnDrjR79JLAfXmiA61jurUDC yluhCgekywWqDmjgzf2bG/TefiFQcR2Yd4ZJWvi2G8HhRl5CtjFUyRpnBJpnvZga644r NgAVBz6z9l+dGImrwRxAd6+O5n+OzdvNUYODwUn1AzETfHocjlqmRBiztDBk63y+sAap 6BSqFaNbmnflu68ubmDxbhiDC17VrvltRRrT5XrtSSh2wP4RwJPDpxqGiGIvd8Rhmnvu W8SlqCNpOAzE1BRhaR98DxpXqZoNZHh+vDwqHz9t8an36yoqwT+hUEh5vRe69CR9xBfY FpTA== X-Gm-Message-State: AOAM533uJXdAjDPX+nVScY1SPvSB+kb9UiZvdOInBQV2jr/nXCsbpQdI P3F5D08DE2a05QmHUGsTPk4= X-Google-Smtp-Source: ABdhPJw3gZYE3TBPvKZgbWZ59i8ZENoNO3NzMU616Ca1lMKyZpKcGBOu74/KugDQY9DgUB5RGDCuqA== X-Received: by 2002:adf:cd12:: with SMTP id w18mr8505565wrm.352.1595592300288; Fri, 24 Jul 2020 05:05:00 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id q3sm6765967wmq.22.2020.07.24.05.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 05:04:58 -0700 (PDT) From: luca.boccassi@gmail.com To: David Marchand Cc: Liron Himi , dpdk stable Date: Fri, 24 Jul 2020 12:58:20 +0100 Message-Id: <20200724120030.1863487-62-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200724120030.1863487-1-luca.boccassi@gmail.com> References: <20200724120030.1863487-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/mvpp2: fix non-EAL thread support' has been queued to stable release 19.11.4 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" Hi, FYI, your patch has been queued to stable release 19.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/26/20. 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. Thanks. Luca Boccassi --- >From c5c7ff58b62688907ae1962d7713c080e4a642fe Mon Sep 17 00:00:00 2001 From: David Marchand Date: Tue, 16 Jun 2020 11:47:00 +0200 Subject: [PATCH] net/mvpp2: fix non-EAL thread support [ upstream commit b52d25ae4b1bbe9adba0d9276b7771ec27e3d151 ] Caught by code inspection, for a non-EAL thread identified with rte_lcore_id() == LCORE_ID_ANY, the code currently arbitrarily uses lcore 0 while there is no guarantee this lcore is used. Fixes: 3588aaa68eab ("net/mrvl: fix HIF objects allocation") Signed-off-by: David Marchand Acked-by: Liron Himi --- drivers/net/mvpp2/mrvl_ethdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethdev.c index b98b1fd66..903727432 100644 --- a/drivers/net/mvpp2/mrvl_ethdev.c +++ b/drivers/net/mvpp2/mrvl_ethdev.c @@ -816,7 +816,7 @@ mrvl_flush_bpool(struct rte_eth_dev *dev) unsigned int core_id = rte_lcore_id(); if (core_id == LCORE_ID_ANY) - core_id = 0; + core_id = rte_get_master_lcore(); hif = mrvl_get_hif(priv, core_id); @@ -1620,7 +1620,7 @@ mrvl_fill_bpool(struct mrvl_rxq *rxq, int num) core_id = rte_lcore_id(); if (core_id == LCORE_ID_ANY) - core_id = 0; + core_id = rte_get_master_lcore(); hif = mrvl_get_hif(rxq->priv, core_id); if (!hif) @@ -1770,7 +1770,7 @@ mrvl_rx_queue_release(void *rxq) unsigned int core_id = rte_lcore_id(); if (core_id == LCORE_ID_ANY) - core_id = 0; + core_id = rte_get_master_lcore(); if (!q) return; -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-07-24 12:53:50.989532722 +0100 +++ 0062-net-mvpp2-fix-non-EAL-thread-support.patch 2020-07-24 12:53:48.287006460 +0100 @@ -1,14 +1,15 @@ -From b52d25ae4b1bbe9adba0d9276b7771ec27e3d151 Mon Sep 17 00:00:00 2001 +From c5c7ff58b62688907ae1962d7713c080e4a642fe Mon Sep 17 00:00:00 2001 From: David Marchand Date: Tue, 16 Jun 2020 11:47:00 +0200 Subject: [PATCH] net/mvpp2: fix non-EAL thread support +[ upstream commit b52d25ae4b1bbe9adba0d9276b7771ec27e3d151 ] + Caught by code inspection, for a non-EAL thread identified with rte_lcore_id() == LCORE_ID_ANY, the code currently arbitrarily uses lcore 0 while there is no guarantee this lcore is used. Fixes: 3588aaa68eab ("net/mrvl: fix HIF objects allocation") -Cc: stable@dpdk.org Signed-off-by: David Marchand Acked-by: Liron Himi