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 AF7B6A0548 for ; Sun, 28 Nov 2021 15:57:30 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3DC440E5A; Sun, 28 Nov 2021 15:57:30 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2057.outbound.protection.outlook.com [40.107.244.57]) by mails.dpdk.org (Postfix) with ESMTP id 0EEF040E5A for ; Sun, 28 Nov 2021 15:57:29 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ObdIqcPQGZbj/n9f68UPTVezNbwJU4WiwK4OgKDsRfUIXrmwTwgQrx5vjpfzXg5e1Kt6GwVYou5uKEiO6mNyPhI1NfPk4DyRSeoKnyrfzGBqzlFfsa+GkDCGNMXSpujgG43UX3kxSfDp8J6FrfguA8fRGR0l7JT9wS3NwhC8kjn6tBbklVbLyctuGn9fXIV+iv0ld0MYqgIYKKbOh2ZrnpEr22rSJ54+7ryT4HAeumVu+81rTP7CdKSC/Wb6OUcW+E2dQ3hVAfKRpqOc9ouqvWMiozJHjbZxIF2XaEulPyMDpYzg+mlqExruOOAEun+9dtSG9mw90RbQni3scyZ4mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YLJuf7evLRE5Ez6gIExkNhNZSLa8JDGq7Of3OiECFUY=; b=j3WqokExM6O9oiamQtU6uQlxG6n4/MnlK8sI1mrIrNcQWcuKUqIzcb1nGHwRgra3rxQvpzolIcbOBcPqV8itfPrMbMkuqsqibQdpy556U1TzYlHl7OavI9ZiFw2HGIeoYStIu2xOge97D453LOnZTixJQ1HiYBZ9gw2f6NlOPTkp4BBPmhwfPFVqWh8BpHTxvn2BHt0nc7I83VUOus15NlBi5oY47QZ7AS90c2V0gTtIIshl57UogBmP46oibEYJFz2CHbs0WXr7TuHG3E4mJ0kI3OZ44yKKBiFnkWrclSLksWCwRutJsWUhMme3ClIvFpOtbQijHQ5jRCjtss+uWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YLJuf7evLRE5Ez6gIExkNhNZSLa8JDGq7Of3OiECFUY=; b=QmzL1L1bpje+/ElpYY7vfqXPyh1IOJHhD0A9orZIjIJ8aWCSevab8B4miy+stVAjA29BahjXU5modzyIuUNAals0fPQAB1t0aDCaA1YzUFrhv9l5omNlpLpj8OYoqGP6MVT+y7GbbFhRA48JS2VBiC5ewXCB5zOinETtMe2payZA0zaggAV+C/wQBIe4r1VrUpU4jNNg6CdbeExIW6FxOAjKc53P+YSglzdNoFg1z6v27pPpuX3MGz/pJ36BzOynkgPjr2pbPFesiB1AnDY6HOWeLrYM3JIkRH+8wKz/gL4zmg8/ZJu/2T6m8ASnYK/dxxVeEhkpoM42UVXyIJkg2w== Received: from DM6PR14CA0059.namprd14.prod.outlook.com (2603:10b6:5:18f::36) by MN2PR12MB3343.namprd12.prod.outlook.com (2603:10b6:208:c2::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.22; Sun, 28 Nov 2021 14:57:27 +0000 Received: from DM6NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:5:18f:cafe::65) by DM6PR14CA0059.outlook.office365.com (2603:10b6:5:18f::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.21 via Frontend Transport; Sun, 28 Nov 2021 14:57:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT031.mail.protection.outlook.com (10.13.172.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:57:26 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 28 Nov 2021 14:57:24 +0000 From: Xueming Li To: Conor Walsh CC: Luca Boccassi , Liang Longfeng , David Marchand , dpdk stable Subject: patch 'net/nfp: remove unused message length' has been queued to stable release 20.11.4 Date: Sun, 28 Nov 2021 22:53:28 +0800 Message-ID: <20211128145423.3974892-25-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211128145423.3974892-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> <20211128145423.3974892-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 12c7b674-185b-4763-b318-08d9b27f64a8 X-MS-TrafficTypeDiagnostic: MN2PR12MB3343: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2JS7SwAWN+JzPjZ7fXzlGO3Luv4TYUhG1OtgyqV2weF+iFcPygpo0lrkLWXIdBbPY6MABDR+Hm7upDUe+steTTulwrVRZEjY2isCxl0Ey1xTQFnebgD+S+SNg5MVB/cFLtwK1C6AZQlXJvnOGZBJXJSp0NigJIE+zesZ7usI74Lysw8IGSDL1uGuwKnJlgTzKBqZrqGBd3GZvVYIjVRqndcHVlxQA7EAik115n/y2gdbMtJxwoWFOAEI5oB2StCSREIx9nyhP0Mhl8hU4+d+huhJ8I1GNRkLRmjUdtqfDug4DTJLJDF60UiX9DgDXFoTbZl2Okb8onJRXUnCGzR8YnQvo1+FL+gc/Syt0ycSfysmEnH5FbHV93U1vT8yeXI5o0yicy19+w9jd3OW0MqwIX74UYlZAULhGS504b7spRe6GXNX3JaaZKYdCRCbLtznKzuNRxnUilkUu8qXkIE8fiHdRi2RnaDHIhnU9FXKAGY7Nmt60YJw881WBdLfkEjag7J63xMXqagG2R3N0BV5yrqYEaOAor42D8dDBchPYZe61pJx/Z+rq3FCbjlTesiUX3J1xC7sql+yjUWsCGJCG2AnD5luiXFpz6UlVFH/gjBwZy2JUA87dRiGaL8bPaxiZmAPnswx1ccGM1dPkpk4rBQ6JaZWLwwivceFVMG/qLBx3mMNzgjbK11PzVNJlbYWWJboBPpFVYRMbQldv836yJdfLDoYLXvfzI+FwergA7EtPZgPtcv3KfSNF/OhKp0glKp5OUPkyFbhVer/t0pmWHK49gx+/vWJzGkjoHq3xkVUDe0HqDSfhnSiFqf1LFZLegPoTpodhi+TmG+ANgMcwX7EmoD0ghMvvmtVcTEsbmw= X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(4001150100001)(86362001)(8676002)(16526019)(36860700001)(5660300002)(55016003)(336012)(6916009)(15650500001)(70586007)(1076003)(8936002)(316002)(186003)(966005)(70206006)(82310400004)(36756003)(426003)(2616005)(508600001)(26005)(43170500006)(2906002)(83380400001)(4326008)(53546011)(6286002)(54906003)(47076005)(7696005)(356005)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2021 14:57:26.7896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 12c7b674-185b-4763-b318-08d9b27f64a8 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3343 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.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 11/30/21. 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/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/e72e4962d5e73e03a590f7622391129b24dd1bfe Thanks. Xueming Li --- >From e72e4962d5e73e03a590f7622391129b24dd1bfe Mon Sep 17 00:00:00 2001 From: Conor Walsh Date: Mon, 15 Nov 2021 17:58:54 +0000 Subject: [PATCH] net/nfp: remove unused message length Cc: Xueming Li [ upstream commit 9465a5d5a065b66075614e3712f9459c3e267155 ] Reported by clang 13. Bugzilla ID: 881 Fixes: 29a62d1476b6 ("net/nfp: add CPP bridge as service") Reported-by: Liang Longfeng Signed-off-by: Conor Walsh Reviewed-by: David Marchand --- drivers/net/nfp/nfp_net.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c index 39a6d3f570..8e27845ce6 100644 --- a/drivers/net/nfp/nfp_net.c +++ b/drivers/net/nfp/nfp_net.c @@ -3044,7 +3044,7 @@ nfp_cpp_bridge_serve_write(int sockfd, struct nfp_cpp *cpp) off_t offset, nfp_offset; uint32_t cpp_id, pos, len; uint32_t tmpbuf[16]; - size_t count, curlen, totlen = 0; + size_t count, curlen; int err = 0; PMD_CPP_LOG(DEBUG, "%s: offset size %zu, count_size: %zu\n", __func__, @@ -3121,7 +3121,6 @@ nfp_cpp_bridge_serve_write(int sockfd, struct nfp_cpp *cpp) } nfp_offset += pos; - totlen += pos; nfp_cpp_area_release(area); nfp_cpp_area_free(area); @@ -3146,7 +3145,7 @@ nfp_cpp_bridge_serve_read(int sockfd, struct nfp_cpp *cpp) off_t offset, nfp_offset; uint32_t cpp_id, pos, len; uint32_t tmpbuf[16]; - size_t count, curlen, totlen = 0; + size_t count, curlen; int err = 0; PMD_CPP_LOG(DEBUG, "%s: offset size %zu, count_size: %zu\n", __func__, @@ -3222,7 +3221,6 @@ nfp_cpp_bridge_serve_read(int sockfd, struct nfp_cpp *cpp) } nfp_offset += pos; - totlen += pos; nfp_cpp_area_release(area); nfp_cpp_area_free(area); -- 2.34.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-28 22:41:04.693003483 +0800 +++ 0024-net-nfp-remove-unused-message-length.patch 2021-11-28 22:41:03.236875822 +0800 @@ -1 +1 @@ -From 9465a5d5a065b66075614e3712f9459c3e267155 Mon Sep 17 00:00:00 2001 +From e72e4962d5e73e03a590f7622391129b24dd1bfe Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 9465a5d5a065b66075614e3712f9459c3e267155 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -16 +18 @@ - drivers/net/nfp/nfp_cpp_bridge.c | 6 ++---- + drivers/net/nfp/nfp_net.c | 6 ++---- @@ -19,5 +21,5 @@ -diff --git a/drivers/net/nfp/nfp_cpp_bridge.c b/drivers/net/nfp/nfp_cpp_bridge.c -index 74a0eacb3f..0922ea9cf9 100644 ---- a/drivers/net/nfp/nfp_cpp_bridge.c -+++ b/drivers/net/nfp/nfp_cpp_bridge.c -@@ -58,7 +58,7 @@ nfp_cpp_bridge_serve_write(int sockfd, struct nfp_cpp *cpp) +diff --git a/drivers/net/nfp/nfp_net.c b/drivers/net/nfp/nfp_net.c +index 39a6d3f570..8e27845ce6 100644 +--- a/drivers/net/nfp/nfp_net.c ++++ b/drivers/net/nfp/nfp_net.c +@@ -3044,7 +3044,7 @@ nfp_cpp_bridge_serve_write(int sockfd, struct nfp_cpp *cpp) @@ -32 +34 @@ -@@ -135,7 +135,6 @@ nfp_cpp_bridge_serve_write(int sockfd, struct nfp_cpp *cpp) +@@ -3121,7 +3121,6 @@ nfp_cpp_bridge_serve_write(int sockfd, struct nfp_cpp *cpp) @@ -40 +42 @@ -@@ -160,7 +159,7 @@ nfp_cpp_bridge_serve_read(int sockfd, struct nfp_cpp *cpp) +@@ -3146,7 +3145,7 @@ nfp_cpp_bridge_serve_read(int sockfd, struct nfp_cpp *cpp) @@ -49 +51 @@ -@@ -236,7 +235,6 @@ nfp_cpp_bridge_serve_read(int sockfd, struct nfp_cpp *cpp) +@@ -3222,7 +3221,6 @@ nfp_cpp_bridge_serve_read(int sockfd, struct nfp_cpp *cpp)