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 8678FA00C5 for ; Wed, 20 Jul 2022 10:23:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EAAB40A7A; Wed, 20 Jul 2022 10:23:27 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2088.outbound.protection.outlook.com [40.107.223.88]) by mails.dpdk.org (Postfix) with ESMTP id 7F8B54003C for ; Wed, 20 Jul 2022 10:23:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fdVBoVuKYZ4liLLrmJV8Gql6dxvcwoeG0kYN923wL3h3ia10ExWRgT9Ia4pjmbqU79Y9Z+J5TAJPgnhwVooegpF+PpOs5rave4K5IobPmo3tIo/2ciVRx3ForT04CSwiBCeBzwD6Zjnz2OwLThpcfqubyFH58mcJSipp6bciQ86faWyvDjfG+ycEXljXD/f08W8C3+oNgidCdAJWOKImqfbp3NYJ3NYLEkQPbEZ0mcGwd8zVgtdOR5bO8b2VtR4akkSKXfc6cYgCl9YREMIXyzVqED2xZIyqHEpwdlaNF6XIDL31xLVNtquqA4vktU+EGNoGtzBPLYDKc+sf9YQ0/g== 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=VpJIhr1S8ASdq4i9MBEmd9RN7YpcxZpXpWkY72Umn+s=; b=K8+Y5Tm000zIpyr/EoKTHrI1Gxz3LzhbRiGGMjnMBo8w1iFxlwf4ieJ/1UC+YPbG0KC/ZaC/Drq2X2lzSkibSsimiILu6furp+NWzQo5/G9q44bS9kRfBkh5nxGJOwzk1eRSbGMe9Ke8ePgQQQcU6bNZnHg7u4CJrez2m3c/ZbwvROo3n1z2iWJEHkq2g42HXUd6iY/ogvLVhTKkkj1KG+caCB+0J4GIF+Tljhna50JzUOgufIbMIX37C9hdMFfr0MRdmaRh/n77VU2iEYYgFn21inONB5Hq4Ed8GEymQbRl/gKUAok5M09qqKkrm9U01JtPp9JtdDKJEdhHU8dWLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject 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=VpJIhr1S8ASdq4i9MBEmd9RN7YpcxZpXpWkY72Umn+s=; b=ptKYPNlI7Y/vXebEnOQGJBtwKTQjksvuIXcjNkyQzCLm68HNPF/KO1l7ZNm3BeJlS+T+JrcTb0h1xRvgORWnK3IsUSyp52e/bTMwP6KU3M/GbDzAVScCx5W6OjCs7m6RdBMSbMwSZN5KfsK66O2HRNWcwFLeGSJgbDammXHpg+ZLUWR7O0iAk+tbzxWhc/3yHPgxvpYvxkZC5n1EBm/isbwQLp3VyT2QqCnvfZH/2gkQhGc1SwgJfZASx4Nu02hUvBjmns7Oms3Y3IcRh+qOUIJaygamN8fgMMUN7YW2C8ZYP9P+gicL1FB9k7mnhDlgNOFtKdZIrhMoXQRzP1vTKA== Received: from MW4P221CA0021.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::26) by MW3PR12MB4379.namprd12.prod.outlook.com (2603:10b6:303:5e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.17; Wed, 20 Jul 2022 08:23:24 +0000 Received: from CO1NAM11FT039.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8b:cafe::56) by MW4P221CA0021.outlook.office365.com (2603:10b6:303:8b::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5417.15 via Frontend Transport; Wed, 20 Jul 2022 08:23:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) 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 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.238) by CO1NAM11FT039.mail.protection.outlook.com (10.13.174.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5458.17 via Frontend Transport; Wed, 20 Jul 2022 08:23:23 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 20 Jul 2022 08:23:23 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Wed, 20 Jul 2022 01:23:21 -0700 From: Xueming Li To: Huisong Li CC: , Min Hu , dpdk stable Subject: patch 'net/hns3: fix an unreasonable memset' has been queued to stable release 20.11.6 Date: Wed, 20 Jul 2022 11:20:45 +0300 Message-ID: <20220720082132.3954126-16-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220720082132.3954126-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> <20220720082132.3954126-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2c21f610-7b70-43fd-fc9d-08da6a291d11 X-MS-TrafficTypeDiagnostic: MW3PR12MB4379:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?iMXNGiU+4vZjGCqDT+s+KcmlVkACJzu37pjE0O3y0QIgmDTpXGf1C2+LLUZk?= =?us-ascii?Q?gZbue2mKdlrhmv0GgZHzm+O8lBGpoi7q3WNxSTOrwWYb4Lisf1jBbM7qPIsT?= =?us-ascii?Q?DWbro6Kkv3NV+z8IDgYgbL8SLsyN2+54Tzbc3SQqwRXa3wGQzEOWLyddTEBm?= =?us-ascii?Q?5VzC6qIOjun1E6TBVuOFDYEwAG8u+sce91cmwIkfnJ3YG58bI9xLSqssbJdy?= =?us-ascii?Q?S4ysDrFkafHlH0XhkMaWY1k/Q9RU0ib9QsEd38ZH1LXHtfvQgQhVQXgMq/IJ?= =?us-ascii?Q?bNdXZCp3X8206Zlz2NRNTWdCa4JHj/sWq9dTCDddQKWanzmsyZaW1xjWKJ1Y?= =?us-ascii?Q?jDjH4W6kFkhpny/uNzCveujCG+3AvlZeLIPgbZxKXJL5MmAJ8aBRwT/BzDY8?= =?us-ascii?Q?FVD56zFrUSMq5bs6PlMgpConrL1zdHf4kLDJv+jXdNWlKVk0ui1fukvqdJ1O?= =?us-ascii?Q?Or3EHCcTyW1hDISmpC69ulkKNHpCDInEwnslxSkTtVMuVl63iDf1bbTaxew7?= =?us-ascii?Q?ABLbA3Q/V1x5bmhVHswA6PnEUZGIHRFW+rKJToXzTqIzBxYGHDwuaUmX/V5s?= =?us-ascii?Q?0VJ3bSw3Pm0ZWR8FA/33WwRv9oXZMAlcfek2MRCSSTPvIOWyhSIuqdv9JjuP?= =?us-ascii?Q?5IvOQBKGsB8/vKRCADqvRPiHijFadoulwswlvmmMB4paTDMtSmD0hC7ZNKWg?= =?us-ascii?Q?VdDLSNMtbAsbS/NXUBsYJvOeuS3effjBvjuHGvtQY5RYr0QbZWQAyMgzVyR6?= =?us-ascii?Q?b7OsRQj3yYROmAp9ocl2y/04XWmyAY9k5JbeL789YiEUbLrfadLBc0euczjG?= =?us-ascii?Q?wqUvdVpKGBd3PF0awjySbS3ni21DXW4ert8W2evrqYF9QdGX/Tt4a1I6Zz/u?= =?us-ascii?Q?q9+2ZA5jF8QPUiFQcTFaXSPu5V6yRdddLC0DKQh8gN1KYNtbA5FO2rwWJ2VD?= =?us-ascii?Q?3sY3WlBZ9U7ya8gHrEbDag=3D=3D?= X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(39860400002)(136003)(376002)(346002)(396003)(46966006)(40470700004)(36840700001)(7696005)(53546011)(40480700001)(966005)(6666004)(41300700001)(47076005)(5660300002)(26005)(6286002)(1076003)(83380400001)(82310400005)(186003)(336012)(478600001)(16526019)(55016003)(2616005)(40460700003)(426003)(70586007)(6916009)(8936002)(4326008)(70206006)(8676002)(316002)(54906003)(82740400003)(2906002)(81166007)(86362001)(36860700001)(36756003)(356005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 08:23:23.9330 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c21f610-7b70-43fd-fc9d-08da6a291d11 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT039.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4379 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.6 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/22/22. 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/5b5935a922e11beb4d15673465e2842002cec96f Thanks. Xueming Li --- >From 5b5935a922e11beb4d15673465e2842002cec96f Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Wed, 1 Jun 2022 11:52:44 +0800 Subject: [PATCH] net/hns3: fix an unreasonable memset Cc: Xueming Li [ upstream commit ea1ef0b937417f177fe50485f96122c1c2407848 ] Fixes: bba636698316 ("net/hns3: support Rx/Tx and related operations") Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) --- drivers/net/hns3/hns3_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index a3a9d8e844..1675da1b08 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -762,7 +762,7 @@ hns3vf_reset_all_tqps(struct hns3_hw *hw) int ret; int i; - memset(msg_data, 0, sizeof(uint16_t)); + memset(msg_data, 0, sizeof(msg_data)); ret = hns3_send_mbx_msg(hw, HNS3_MBX_QUEUE_RESET, 0, msg_data, sizeof(msg_data), true, &reset_status, sizeof(reset_status)); -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-07-20 15:00:59.511557388 +0800 +++ 0016-net-hns3-fix-an-unreasonable-memset.patch 2022-07-20 15:00:58.681000545 +0800 @@ -1 +1 @@ -From ea1ef0b937417f177fe50485f96122c1c2407848 Mon Sep 17 00:00:00 2001 +From 5b5935a922e11beb4d15673465e2842002cec96f Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit ea1ef0b937417f177fe50485f96122c1c2407848 ] @@ -7 +9,0 @@ -Cc: stable@dpdk.org @@ -16 +18 @@ -index be4ab16dcc..dcb1cdf168 100644 +index a3a9d8e844..1675da1b08 100644 @@ -19 +21 @@ -@@ -773,7 +773,7 @@ hns3vf_reset_all_tqps(struct hns3_hw *hw) +@@ -762,7 +762,7 @@ hns3vf_reset_all_tqps(struct hns3_hw *hw) @@ -21 +23 @@ - uint16_t i; + int i;