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 D0297A0C3F for ; Sat, 12 Jun 2021 01:18:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA0084003F; Sat, 12 Jun 2021 01:18:00 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2070.outbound.protection.outlook.com [40.107.237.70]) by mails.dpdk.org (Postfix) with ESMTP id C058E40DDB for ; Sat, 12 Jun 2021 01:17:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f0gVkE0h6XQ2WkkjGIy6iI8ZHOb8yKIe21fMJXYHklLPbWz6pYknRsgNPR/Rs/7GBHoyVgue4BTS25vFLyRqT7yAyB5UGkewqoVN3VgchoJuUkCXAkGqHkn8jHLRRsiSkbowZ//AVurIPqebCKdyUxEfVMnTAYQ1G1tKUh8e4DvwbLK7uC7jJhhogOoL3nv3bQjlVNV8Bdn/kKJkagD2/w5HW+v1rsjQ6lEq91wcTwEbd91z1T3yQt0FmbGATpik2FF9fxVCwYwXTZKbAIKD/cYXvrDwfBAG8VOM+19CXC5aF4DKfURs9higTPaaSx1cg/pSIEUEs/uOkjddcLTmAQ== 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-SenderADCheck; bh=T0ZmG3tSLo16Hlo5s8a7dHtIT1CyhmkCCwS+aFpkKeM=; b=GdEwe/FabnKHmYbqDPqCCLWA2dvblC6cHZ+nO2p/26uhmTRcbvCx3DzmTQeU7HzGnj8TBy9L6eoEyjFXqZDPRWwA+2nw9XP5DyJvW7xr5JJGbIt5sTkfcbgZSpbvAG6dwIuecBkVF/DMQJVEpHcXeLZlfeqENrmrPuG4vlQKDZl/5LRnXHZQ69/4q1Zvf9NEpeykJDeiJ4WDggMfAWDh8f0xbGR1iWmAZwfd51fApsL4tZlUVvoHAAm2JeMYXoh0Se6DMtNYV2YEOG4+86AmkzMYgVLgfPAKphTnh/Y3qiKq3H9duzmTiNfR1rRVwpyYNZf7aifxpOlYk00nDz8w1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=T0ZmG3tSLo16Hlo5s8a7dHtIT1CyhmkCCwS+aFpkKeM=; b=lDsSEY1WuyWdZT13iUh9xKrMF7oWJ/altGQi3GIqRZ5j/NKSRwdfedd6zalk1cfwO7xenv6dp4MH1wzTihsOjGED5grhz4O7/wS9SbWNQsfQbZL7qom2HOuoxjtCO+FFAVZG4wmbK7yTrqA6GNvzGJwXyuNEa2lT4YB6tjXd2ihseVmFkjQCsz9I9QjtVd4MA6tBRLAgBFFARisCAy3f8iYuLr23SmH6v4hfnnYtfGj0qed66BOXybt1c5xNf9d0AjAhBSCgqEiLySokfxGgzUdLbTQH2eU3RJVq36cbXPGNUnViOp92r8xDp+1UZkbsdkAcIH+G3kARUI8bxUBvZQ== Received: from BN9PR03CA0498.namprd03.prod.outlook.com (2603:10b6:408:130::23) by MWHPR12MB1645.namprd12.prod.outlook.com (2603:10b6:301:b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.24; Fri, 11 Jun 2021 23:17:58 +0000 Received: from BN8NAM11FT039.eop-nam11.prod.protection.outlook.com (2603:10b6:408:130:cafe::48) by BN9PR03CA0498.outlook.office365.com (2603:10b6:408:130::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:17:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; 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 BN8NAM11FT039.mail.protection.outlook.com (10.13.177.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:17:58 +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.2; Fri, 11 Jun 2021 23:17:56 +0000 From: Xueming Li To: Ferruh Yigit CC: Luca Boccassi , Haiyue Wang , dpdk stable Date: Sat, 12 Jun 2021 07:03:53 +0800 Message-ID: <20210611230433.8208-139-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611230433.8208-1-xuemingl@nvidia.com> References: <20210510160258.30982-229-xuemingl@nvidia.com> <20210611230433.8208-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5cf74fe8-d965-48b3-bfeb-08d92d2f267d X-MS-TrafficTypeDiagnostic: MWHPR12MB1645: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:227; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kG7RIdAO/2nPT6/6B0C0q54LJCs6iqMSOFFwwP00c2pscp86KJb8jZNDM7Kz8LaBi2zK6Y0n82byXJmqGHKGwg7LErNyckbp6zSSE4nxIUBMSvyXf30E4yc+Mjd/QsWk3kvzWz7L2OjzMZ+p0aEDte49GC8krXw2ctJVSMvXxz4Da38f1jS4SOMmq54A+8EOeCu0Wwl7z49Q29zAFkbxsiKczzeFlWgPzW9FJ84xI0opof00dWCI+r0+3tQy/lHjo1P+dt4sTSLEqdIFfMJOnIsVzpfkDpNwlhU1Hv83VIyKCRYe54dCeCkhLKyNT1o3wnRAaVZyy1YyPyX0OwRU5QAcq0PbmRQSpxZtY5/ix1YAOFcMpd9VSI6BqZMDfThuPj4mxo/i/Eu8ACj0WeD7V0ubCvawCYaIaOY1HSdXCvnUCYXp9cvynfpYPZ96/7qDxzV/6DQrjRNcAoen1JT3RypzedAei1jm5yi66Bvqx8cprUZ8w7sLOdocHusNya+qg0ZcfVxeL6qPTQhL2kIJMUyjTSf5Yfvx8C5V1X4Ef2q1qoHEJn3HgOO+UVycGENFQuPh4ApRW2JiTDx1v6aFyyhoR+nVHofvLKfIpZ72yXbUgcVuwYkO2RxnQbU8UfrsxH0zjp13uVThvpFoSOSx9VFTdlOQTwJoEyaANFrhSEbUVaWktb7545FjQXy/W9ybDxUUjyKaZBz67C2a0s4KKkMPzjE4iFYXYVHrvzGY4jp065oQn8NuBwr4Jv5J8b3MV27xBPJOmgnS134Bazm87RYIsz9Jyw2ts1/X8sJyMMLgDuVvvrXv9C3Y8QqF2W3N 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)(346002)(39860400002)(396003)(376002)(136003)(36840700001)(46966006)(53546011)(6916009)(86362001)(6286002)(6666004)(70586007)(70206006)(82310400003)(356005)(36756003)(186003)(7636003)(54906003)(26005)(966005)(16526019)(55016002)(426003)(83380400001)(4326008)(7696005)(8936002)(36860700001)(336012)(82740400003)(8676002)(316002)(1076003)(5660300002)(2616005)(478600001)(36906005)(47076005)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 23:17:58.0365 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5cf74fe8-d965-48b3-bfeb-08d92d2f267d 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: BN8NAM11FT039.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1645 Subject: [dpdk-stable] patch 'net/ice/base: fix build with GCC 11' has been queued to stable release 20.11.2 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 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/14/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/c2155d8297623181fc5d10dfbe54b6ee88e35e9d Thanks. Xueming Li --- >From c2155d8297623181fc5d10dfbe54b6ee88e35e9d Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Tue, 11 May 2021 14:14:34 +0100 Subject: [PATCH] net/ice/base: fix build with GCC 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Luca Boccassi [ upstream commit 97de3819ed93f4b3a71e429147a7e6a435789ab2 ] Reproduced with '--buildtype=debugoptimized' config, compiler version: gcc (GCC) 12.0.0 20210509 (experimental) There are multiple build errors, like: ../drivers/net/ice/base/ice_switch.c: In function ‘ice_add_marker_act’: ../drivers/net/ice/base/ice_switch.c:3727:15: warning: array subscript ‘struct ice_aqc_sw_rules_elem[0]’ is partly outside array bounds of ‘unsigned char[52]’ [-Warray-bounds] 3727 | lg_act->type = CPU_TO_LE16(ICE_AQC_SW_RULES_T_LG_ACT); | ^~ In file included from ../drivers/net/ice/base/ice_type.h:52, from ../drivers/net/ice/base/ice_common.h:8, from ../drivers/net/ice/base/ice_switch.h:8, from ../drivers/net/ice/base/ice_switch.c:5: ../drivers/net/ice/base/ice_osdep.h:209:29: note: referencing an object of size 52 allocated by ‘rte_zmalloc’ 209 | #define ice_malloc(h, s) rte_zmalloc(NULL, s, 0) | ^~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ice/base/ice_switch.c:3720:50: note: in expansion of macro ‘ice_malloc’ lg_act = (struct ice_aqc_sw_rules_elem *)ice_malloc(hw, rules_size); These errors are mainly because allocated memory is cast to "struct ice_aqc_sw_rules_elem *" but allocated size is less than the size of "struct ice_aqc_sw_rules_elem". "struct ice_aqc_sw_rules_elem" has multiple other structs has unions, based on which one is used allocated memory being less than the size of "struct ice_aqc_sw_rules_elem" is logically correct but compiler is complaining about it. Since the allocation is done explicitly and both producer and consumer are internal, safe to ignore the warnings. Also to prevent any side affect disabling the compiler warning for now, until proper fix done. Reducing the warning disable to gcc >= 11 version. Bugzilla ID: 678 Fixes: c7dd15931183 ("net/ice/base: add virtual switch code") Fixes: 02acdce2f553 ("net/ice/base: add MAC filter with marker and counter") Fixes: f89aa3affa9e ("net/ice/base: support removing advanced rule") Signed-off-by: Ferruh Yigit Acked-by: Haiyue Wang --- drivers/net/ice/base/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ice/base/meson.build b/drivers/net/ice/base/meson.build index 22963ce31d..8f7d4384e7 100644 --- a/drivers/net/ice/base/meson.build +++ b/drivers/net/ice/base/meson.build @@ -20,6 +20,11 @@ error_cflags = ['-Wno-unused-value', '-Wno-unused-variable', '-Wno-unused-parameter', ] +# Bugzilla ID: 678 +if (toolchain == 'gcc' and cc.version().version_compare('>=11.0.0')) + error_cflags += ['-Wno-array-bounds'] +endif + c_args = cflags foreach flag: error_cflags -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-06-12 06:54:00.132306300 +0800 +++ 0139-net-ice-base-fix-build-with-GCC-11.patch 2021-06-12 06:53:56.590000000 +0800 @@ -1 +1 @@ -From 97de3819ed93f4b3a71e429147a7e6a435789ab2 Mon Sep 17 00:00:00 2001 +From c2155d8297623181fc5d10dfbe54b6ee88e35e9d Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Luca Boccassi + +[ upstream commit 97de3819ed93f4b3a71e429147a7e6a435789ab2 ] @@ -51 +53,0 @@ -Cc: stable@dpdk.org @@ -60 +62 @@ -index 6c548a9977..3305e5dd18 100644 +index 22963ce31d..8f7d4384e7 100644 @@ -63,2 +65,3 @@ -@@ -23,6 +23,11 @@ error_cflags = [ - '-Wno-unused-parameter', +@@ -20,6 +20,11 @@ error_cflags = ['-Wno-unused-value', + '-Wno-unused-variable', + '-Wno-unused-parameter', @@ -66 +68,0 @@ - @@ -72,3 +74,3 @@ - if is_windows and cc.get_id() != 'clang' - cflags += ['-fno-asynchronous-unwind-tables'] - endif + c_args = cflags + + foreach flag: error_cflags