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 57C9F43258; Wed, 1 Nov 2023 05:46:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7CF9F40608; Wed, 1 Nov 2023 05:45:21 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2052.outbound.protection.outlook.com [40.107.220.52]) by mails.dpdk.org (Postfix) with ESMTP id 5579F427E2 for ; Wed, 1 Nov 2023 05:45:20 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PnIi+iEO5xlk/M98QPOiMJ0VYg0jWh5Gwt7jx6osb9CDGmReZvKtJh1ufzKif5sYgGmGt2wcxs9NQ4NGYMJiKlOP+C2+foBXYfd1z6Qc2Gxyu23ORPoUXT7caOY0A9X41t1C1qgu3/HCfkCO5EtprZPBCpqeNp8ZrAlJtI4uVjtkVdqUcU8JfHrSROTOKRuXtHPusfK1/FaECRTb1ZMJrrrH3o0emfH0tsk0DnTM7NALkN6/dtQ+w1FheEsT7h/FKTosKP0tPCktG3VQejIkXXkPVtSIF78CMhG0k7AC8UDXXftJKdjT6Tpfn2dmjSXJ50V2bTstLCoa2FUJHeRBjg== 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=zFzF9t1Yo2rzWaBrBJXZ4XdovcryQ2JC+EbpuFy7wDo=; b=KHbDeeQviARZ6a8mOeEGmr203KIqo6Zp4OBDQP2e/8N1ydsGkqB5CS+QP8OLq+t8fY0Ulu5mk7O1y0XUi8+5A24CPIDkHlyCaTEI5kHbsFQe4zxpW8rTADDKxODKDBWNlKhh3VZSbkB4jv6B9cpabe3YoYsUw85/7QFPSHodte+yxaT0Rcse7zfRsPpBjALURqXXTz1jRMrjRbu3ePOSggRh0MthAlYNOh/31PZPFyW147bJPEAHp7L3/EV1eFso9hux3dJ3c1XHWv611GB00WswWWw2UbzzpOHVcCN12rbmBjXz6s7rHC9jIDi9msFb2PyiWmC0f4lrNtruSA/X2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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 (0) 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=zFzF9t1Yo2rzWaBrBJXZ4XdovcryQ2JC+EbpuFy7wDo=; b=a6WXxgI5FDn2nU4H3gPYOwoELOgZJPum5avik9wP03/2y2J2znQdUF0R2M2no0YV4MQGQaOoGnQLSn/39W/mPi/6ZLCuRUE+ygPIMhP8+p9dTmkNce8a6HaAJOTBBJWQJvxg3DJvgSUfGL/TENvjflb4JjLYttkEJW/fmKJBPEsUiDM2KV+CT+/CONeDgRfYWnVfK9g9kIX8YnDH2qyDXF5KpiPIVRDPW/cV1pJ6RsGwrRP/hcCKlfAou2ZRyg24A7uU+e4yUsHz67TBsd4AZm7cAlYK1eC/huzORDvAe92bwdd3Ceiv8ybcqBgJ2aHXWQ5hIsdW4mebQtRpR+IScA== Received: from DS7PR03CA0166.namprd03.prod.outlook.com (2603:10b6:5:3b2::21) by CH3PR12MB8547.namprd12.prod.outlook.com (2603:10b6:610:164::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19; Wed, 1 Nov 2023 04:45:18 +0000 Received: from CY4PEPF0000FCBE.namprd03.prod.outlook.com (2603:10b6:5:3b2:cafe::c1) by DS7PR03CA0166.outlook.office365.com (2603:10b6:5:3b2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 04:45:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000FCBE.mail.protection.outlook.com (10.167.242.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 04:45:17 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 31 Oct 2023 21:45:07 -0700 Received: from nvidia.com (10.126.230.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.41; Tue, 31 Oct 2023 21:45:04 -0700 From: Rongwei Liu To: , , , , , CC: Alex Vesker Subject: [PATCH v4 12/13] net/mlx5/hws: fix srv6 push compilation failure Date: Wed, 1 Nov 2023 06:44:18 +0200 Message-ID: <20231101044419.732726-13-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231101044419.732726-1-rongweil@nvidia.com> References: <20231031105131.441078-1-rongweil@nvidia.com> <20231101044419.732726-1-rongweil@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000FCBE:EE_|CH3PR12MB8547:EE_ X-MS-Office365-Filtering-Correlation-Id: e2484278-90da-40dc-230b-08dbda9558fa X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pXOcDB60ZFMj8xcHLfIn0sBAyxDONN5WfCuIZi6brUh7QVknRlTqrAJ9/r0DPyVDhRHnIGSk/LQ4XFLl1jvX8NyOvkGfC3ZtZ0m5zb8DFX9JeLFhxNu9+2Jn8p9dDE14shopOcj+y6UtJr71Xux9xdlvWgxwjvR3qbc2biHiKPGbq+PlzaJq9vwDAzxprkT5LUuy9I0wzxO+I+JSt2aYjvAvItcGBUwWh69+hQZUQs8ON61jpkHBuFxZ5Lz3t/bWlXWqrLiEufiyQGCvpDgip6h4BEHCvcSX50DRwI+g8eH/bgLWzjzsmJx7c2H+QgPc1Eh2tGtMv28xwpQZi0AJmMKkUd38oj2HTnbFFz+tT/ndGMxec7e7lMt34WSEXOtt2JLUC+nvVk+BFEaHgj0aqd6FM/eSt7ePffY6vJR2j7N1DXUrLbJyIVvymbYGJw8w8/jBhrAaBfJGyBXDf6I7RL6C6Ty6gujvx8WQttxQrqJVDWKVOUTdGqC0ExdhDRCxwv1QEeN0CIVTPC7CRbgKcmEtHbGxjDZJGFH5T1VkjZxGiPMdXuX9WJxEdNd4tu5jjMqKNCPe0MAmKifX8GIvf1O2TkaFlhHM21vIeBkof35GEIIoQYwibB65hbbqkS6mSeh8oo6cG6eDhpjBgKq7gAJ/JSoM3dEDjncWn4CQJRO17CbH0F2Zc1JXPt4eRpzFnlsoXbqtl5q61n2xCag6VkYb56FM7fJr3x0B/UQ4PbzjIrm88g94dETSQCdX5qGJc43tdiYk7QYM86+7j+5DsR61W+OY2aOVxCqSB75g77I= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(396003)(136003)(346002)(376002)(230173577357003)(230273577357003)(230922051799003)(1800799009)(64100799003)(451199024)(186009)(82310400011)(40470700004)(36840700001)(46966006)(316002)(41300700001)(110136005)(8936002)(8676002)(70206006)(70586007)(5660300002)(4326008)(55016003)(40480700001)(40460700003)(356005)(82740400003)(478600001)(7636003)(47076005)(2906002)(83380400001)(26005)(86362001)(7696005)(107886003)(36756003)(336012)(1076003)(6286002)(2616005)(426003)(36860700001)(16526019)(6666004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 04:45:17.9264 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e2484278-90da-40dc-230b-08dbda9558fa X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000FCBE.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8547 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org OVS team reports PMD compilation failed under: gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0 In function ‘mlx5dr_action_create_push_ipv6_route_ext_mhdr2’, ../drivers/net/mlx5/hws/mlx5dr_action.c:2701:64: ‘ipv6_dst_addr’ may be used uninitialized Only shared action needs to query the IPv6 destination address when creating dr_action. This is a false alert. Initialize it to NULL to fix the warning. Fixes: a50f6d3fe58d ("net/mlx5/hws: add IPv6 routing extension push remove actions") Signed-off-by: Rongwei Liu Reviewed-by: Alex Vesker Acked-by: Ori Kam --- drivers/net/mlx5/hws/mlx5dr_action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_action.c b/drivers/net/mlx5/hws/mlx5dr_action.c index 719d546424..43a65bdfd1 100644 --- a/drivers/net/mlx5/hws/mlx5dr_action.c +++ b/drivers/net/mlx5/hws/mlx5dr_action.c @@ -2326,8 +2326,8 @@ mlx5dr_action_create_push_ipv6_route_ext_mhdr2(struct mlx5dr_action *action, MLX5_MODI_OUT_DIPV6_31_0 }; struct mlx5dr_action_mh_pattern pattern; + uint32_t *ipv6_dst_addr = NULL; uint8_t seg_left, next_hdr; - uint32_t *ipv6_dst_addr; __be64 cmd[5] = {0}; uint16_t mod_id; uint32_t i; -- 2.27.0