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 81494455B5; Sun, 7 Jul 2024 11:57:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08636402CF; Sun, 7 Jul 2024 11:57:57 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2047.outbound.protection.outlook.com [40.107.223.47]) by mails.dpdk.org (Postfix) with ESMTP id D9E9A4029F; Sun, 7 Jul 2024 11:57:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C/bIwIzORIFu4cz8tonntX/MbjTj2PVhln5HyQsBhKQgdbRkVuHw5F3NTvMYiyYRGG+l0BXCh+mleqHkAv4MMw0P7+oXVKZHocTPiS/bQtVTv6HDts2/NTlHOk7BS7YEtjYt/dE5zy1PvSbkUKmg6QzmT3kNaiYwcbKD+ZDBe29gEKcqyj6LzAZ8wFDDSTECc07KeUytXlHK+bf8Gj4NhL6KovPJfXrxhYzi/kinDxmuwhRiHsgVy6PspoSxNW2jZPu+sJqh5AkQ/uEyH83RHw/L3S51B7JtyrLJ4o0KU/n+B93LJgCsJhOGYvnBjnvIsF6fkhWJgQqqmzkViXA9Bg== 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=JJTNdPGFVsSOwL2Pkt7HDOYjUxdu6apNMEagO5OKU7c=; b=ZDzbpfI0I2YONl+UEEOjm6lntu2j7/j0wISdNzjffSe7crhEfodfTzkyKX/FEuoK+71QCftWFVA2M4KXOEeiMd4hY8T8xhavs0kqEf4mcsQFWnB5C+LWrtEykVWIbvgxhCBFnNlpnFDsNIcNYqbhXWY2uy7VTs9MZ3sXAEZYd+LAENiuhy5lawtLfBjyfIbaXoBW5yfUdK8GCUZWOlWgcDka4jtc6dwYAPNA6UoxqV7p9xXA5F61aQyVeAb/N4qJFSYI7zsO9krPwqQhjmiWrIyqHuhNv+ISDJygqWCkDzc/ZO7zK0nBYaaFqmaN2H1e4s64XgjjY/xZZmXc8LS3Sw== 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=JJTNdPGFVsSOwL2Pkt7HDOYjUxdu6apNMEagO5OKU7c=; b=fOHdaYQip76uIhh+aWF91MPxPRx/MQtoxRpt9WS3oKgHCNj/RlLso0oMCGjj9Hw1YJwAvRax2aXl93JoBiq9zk2Bkk4FbIWFp4npQbQD/52faF4LOPMMmUmJDOWUdIx7jlyGCaR29sxUOCGe96poL9P1ozG8X4fnxEDHYKpHlIn0MtUhDJVfRhWO/M8YLq1XQ1yOVEddWz5heDenUY51n2WED+nzCJNWTm5idjcagzzuRzyA3t3XLbwQO4n617Yy1Aw2FZPWXO1MPCw2o6sHo4D5z942qmrMoaqzNMG5KmIUIEgKKz1iNg3CTJgUnro0RYF3akNvBr12M/TTzHDUQg== Received: from CH0PR03CA0430.namprd03.prod.outlook.com (2603:10b6:610:10e::15) by SJ0PR12MB6709.namprd12.prod.outlook.com (2603:10b6:a03:44a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.33; Sun, 7 Jul 2024 09:57:51 +0000 Received: from CH2PEPF0000009E.namprd02.prod.outlook.com (2603:10b6:610:10e:cafe::4f) by CH0PR03CA0430.outlook.office365.com (2603:10b6:610:10e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.34 via Frontend Transport; Sun, 7 Jul 2024 09:57:51 +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 CH2PEPF0000009E.mail.protection.outlook.com (10.167.244.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Sun, 7 Jul 2024 09:57:50 +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.1544.4; Sun, 7 Jul 2024 02:57:41 -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.1544.4; Sun, 7 Jul 2024 02:57:37 -0700 From: Gregory Etelson To: CC: , , , , Dariusz Sosnowski , "Viacheslav Ovsiienko" , Bing Zhao , Ori Kam , Suanming Mou , Matan Azrad Subject: [PATCH] net/mlx5: fix compilation warning in GCC-9.1 Date: Sun, 7 Jul 2024 12:57:23 +0300 Message-ID: <20240707095723.46947-1-getelson@nvidia.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF0000009E:EE_|SJ0PR12MB6709:EE_ X-MS-Office365-Filtering-Correlation-Id: 32fe7588-0ad6-4e2e-8e89-08dc9e6b4349 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?E1MPGRXmqa4MMwWPWXpPbtZyNxXabI71UcML+BKv8LaMCidQeWWBDe2kBnRo?= =?us-ascii?Q?UM8Wfve/lCgo1LVjwD0wIBfs40Qsbvn5lAAUqwKjJkbLWLr8uqVIsc0KMHup?= =?us-ascii?Q?GlBhhUN3N13aq1ZUbOGYSf7XB7CugMMoRX9VliStMiMa79cg+Rb+PcwAkNCv?= =?us-ascii?Q?sj70Dx6HzHD5uF2h09aXTM0/vtIhuj74b5SrRwsI8RHnMjxZv4VQGUK5XMTM?= =?us-ascii?Q?wR/3xbv0TzJUMHrra7HysJXu4qhFTLJMe7bmtoyFOTtdG20/DF5cWcf3Z0uZ?= =?us-ascii?Q?ILLBJIzDQR9eDqJRiMuaH2ZtS7pbDcJVW9kW1A8Gnn9c+JfLFV1VqIGricAW?= =?us-ascii?Q?DWf/XO7sV8jfaRzmwIqCmR2RQc6fBQzuFqlHd4zuRHm4Vgu1up8GY/H4+Iz/?= =?us-ascii?Q?3Z/gci2xOYw28Jt5yUQ9ixxsDK7xTDacJ3mcEUu9Pj/zxdN9ldOxGIkUyKhp?= =?us-ascii?Q?/C5qnrixMIBG4wH1OKnPlEL2RqzmmrghTgb7gMjEs+4/JaG44JJx36fzlHWu?= =?us-ascii?Q?ABxwiIwiO4OGMqILxletlF/FmNkofUPgeJwhyoE2B3vS3fzHS6xtBsRIv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Hhi0SMyk?= 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:(13230040)(1800799024)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2024 09:57:50.5632 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 32fe7588-0ad6-4e2e-8e89-08dc9e6b4349 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: CH2PEPF0000009E.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6709 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 GCC has introduced a bugfix in 9.1 that changed GCC ABI in ARM setups: https://gcc.gnu.org/gcc-9/changes.html ``` On Arm targets (arm*-*-*), a bug in the implementation of the procedure call standard (AAPCS) in the GCC 6, 7 and 8 releases has been fixed: a structure containing a bit-field based on a 64-bit integral type and where no other element in a structure required 64-bit alignment could be passed incorrectly to functions. This is an ABI change. If the option -Wpsabi is enabled (on by default) the compiler will emit a diagnostic note for code that might be affected. ``` The patch fixes PMD compilation in the INTEGRITY flow item. Fixes: 23b0a8b298b1 ("net/mlx5: fix integrity item validation and translation") Cc: stable@dpdk.org Signed-off-by: Gregory Etelson Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/mlx5_flow_dv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5_flow_dv.c b/drivers/net/mlx5/mlx5_flow_dv.c index 8a0d58cb05..89057edbcf 100644 --- a/drivers/net/mlx5/mlx5_flow_dv.c +++ b/drivers/net/mlx5/mlx5_flow_dv.c @@ -7396,11 +7396,13 @@ flow_dv_validate_attributes(struct rte_eth_dev *dev, } static int -validate_integrity_bits(const struct rte_flow_item_integrity *mask, +validate_integrity_bits(const void *arg, int64_t pattern_flags, uint64_t l3_flags, uint64_t l4_flags, uint64_t ip4_flag, struct rte_flow_error *error) { + const struct rte_flow_item_integrity *mask = arg; + if (mask->l3_ok && !(pattern_flags & l3_flags)) return rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ITEM, -- 2.43.0