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 C8FC7456E4; Mon, 29 Jul 2024 16:07:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5BAC940674; Mon, 29 Jul 2024 16:07:29 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2058.outbound.protection.outlook.com [40.107.93.58]) by mails.dpdk.org (Postfix) with ESMTP id 321454066D for ; Mon, 29 Jul 2024 16:07:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZdHD9EK2qT1AraXmJ8EMXRQX0fiD+V8fBEKdMb/7q8fio5jn5GYraYpah28XSM/1vj9oeRGkKl3PfkKA5ZagdNZYXPym0P9jgxmDaxGyqjhxO7jXBuoTBcAwXkqfdVMlW0ykf+7gCjMKBCwvXYlFb6gLLzzk/4AFUqZkiUTKAdCI9g/+nLr4b7q4CgARIeEahU6eC9iZbtc8ChPuzNhl3cI2kLh+gGf3yn0IaPqTQahVZNfO4+8/WmwtvkkBSztN9/VkxfpKpSC75eZ3mn+Aa2Ujw64iKEeJ7bn+LW6bjkJzrgAooYJsSJGQTXPB0ku19Z9fmO/9eDDyc4a4ESlaPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=2JTYVgJcCpRBh3Lidm10PmBoxLVSuNQ378Azatv/lSo=; b=tVyF3Mk479AFr8cWovNtEp+rFQpRpXe9GWbfmBUghcnnKXwJ6Tpk62N7TGCup+0aDHu/mJq/SUVBAL26NrzKBVA9qtqhhtrdjCkQG1X8UZ94ncGquSWw5R75SxaxgMjHpHuffgIgk+kEuzNd/uvbBeutHQz4z/IbuE+wB+cUTz7SztUa2IG4iDZjWLJUhTSvXDzkZxBgQTFC3zYQXEQJbMTXuGFFcqo8pBNUBUqAT4MpY+3n9CX6GFwXgsgNvPnZmgIjLL14PzE3Ge37iv1BVZL0F5RljXRMP6kWpvC2h1R2bF2zG2mYkA84yKXNYrF5OZ93EvV2uj41+sBluWQDAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=2JTYVgJcCpRBh3Lidm10PmBoxLVSuNQ378Azatv/lSo=; b=VlciGEYX1GF+88bUYW07YUvCFa1+SH2k5LPxTgVy+71Zbmr4TgTqG1fPz0J3Df6mYZ6WVNl0rF2YhcddpxJMmM6cbTAJTmwzoyZCwcf0gkdU+9S4MTTUbP0Vo67kIRcQwDByui41vwhhVoCHCcMYRCHpFfyVln4yx87Iw+ap+KJAzC8FZbvzuYYRHdkL0kJN6FZB8fwfb2EXR6GPhfAAENfs13YVkzNLfMylSK9kQ0jJDcdkld7HoDFx/HxPZ3Uh6Iq1qJMO9kGno+Jzia3wDHwjAV6L1OxH16e6vm7qx2t/WvXKSe7aR+7KlWY50Ky/W8RP4uOTDdLwzWK0gboOag== Received: from SJ0PR13CA0230.namprd13.prod.outlook.com (2603:10b6:a03:2c1::25) by SA1PR12MB7365.namprd12.prod.outlook.com (2603:10b6:806:2ba::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Mon, 29 Jul 2024 14:07:25 +0000 Received: from SJ5PEPF00000204.namprd05.prod.outlook.com (2603:10b6:a03:2c1:cafe::3e) by SJ0PR13CA0230.outlook.office365.com (2603:10b6:a03:2c1::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20 via Frontend Transport; Mon, 29 Jul 2024 14:07:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SJ5PEPF00000204.mail.protection.outlook.com (10.167.244.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.19 via Frontend Transport; Mon, 29 Jul 2024 14:07:24 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 29 Jul 2024 07:07:11 -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; Mon, 29 Jul 2024 07:07:08 -0700 From: Bing Zhao To: , , , CC: , , , , Alex Vesker Subject: [PATCH] net/mlx5/hws: fix the valid bit of E-Switch owner Date: Mon, 29 Jul 2024 17:06:55 +0300 Message-ID: <20240729140655.1732360-1-bingz@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: SJ5PEPF00000204:EE_|SA1PR12MB7365:EE_ X-MS-Office365-Filtering-Correlation-Id: b7258a1d-4f33-4b96-3d96-08dcafd7c5c9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?k2zbsd+1TjiMCFK59DVy8CaAK9FDf7XxiEnUnImZ3w43fed+n7xzXdoBwEhb?= =?us-ascii?Q?WwgbfOcEZtrIRJPZLzQSvnskaceKD2a5FspK+eAJM5IFxjOk6x6T+4+4mVBW?= =?us-ascii?Q?L3ARkmUDeMEH36BjtKNK/vHKHQRfX0Ow3PAhw3AysA18RQwyfCVrnLZKGyk/?= =?us-ascii?Q?N6zhGpIphZYu6bckJiqu0vG/DLtJIlrAJ55vQV4cK/9NObH06cl1WW0oxGHD?= =?us-ascii?Q?+7ohAADvfRa3XogpfO71uJ76eB8FhB3nCJiKaWc3aWDfUNdeSjROvLTB6S0r?= =?us-ascii?Q?PlQnoICCzDe3+YsE1Y851DttAxz0mqXJB4DiykOqgHZgymYPaAzCAGN453Vt?= =?us-ascii?Q?Z0TpWFp8P1rAYhOr7IgRX0TqtBsMWz7sP0bIZ5Gn1utkutHPhOQ7lNfQC+lI?= =?us-ascii?Q?tBmhhg8dw+u6HmHMSm4c6jc3jfgtgO7QZwJp3v+fbiTbK5hW5hcrfO1ZzT8C?= =?us-ascii?Q?oxTuTV8oXYS9pOYFJsphZObVX623jBwFV299uLJy6DxNmwp/dktqwVCm2TSp?= =?us-ascii?Q?4Y7sNwoAEeG73dCgTnmaW2H5yDrpwh9O4E2vCajHFow4lgca8RQBK2YqKnEV?= =?us-ascii?Q?Q0dPaEpy+jI9WM99nq1pLR1rnK9ELYehPO7u8W8891miow6hqez8KuKe1FJJ?= =?us-ascii?Q?0TVjRXT4AzhQIGb66ifRVeuVggKYQv139+nygrjhhq3mcIcI0zWCTi166R5j?= =?us-ascii?Q?Z2H23j9TFT3ydbHb1KT5DL1WM5Zvtyp6dPPwBCF/gn8Y4isNSJAmxb9wvH+S?= =?us-ascii?Q?ILBFZK094v6SWIguXouSVyR0YslvMZ3Biyn8kIZo91yhFhX0m/btfxcYp2n8?= =?us-ascii?Q?WOl8tJH8YCWwnc1LowgoIE1anj/h2+ptBmOsYJGTCizQugrnUOTTSgc/7r/y?= =?us-ascii?Q?iMztLBNPgvSFz7B/HYE3pT3IaeCh0VlZ+lk8MmZYBXsSaobA6rL3Hrc0BpwR?= =?us-ascii?Q?ilgKMEDghJCJ9O4oRjHPU5vxD/yT728N4kiHXdkOgCMZePQlhpxuM9ar9kcV?= =?us-ascii?Q?A5V//Szn2GDkj0RtApjzSIVvPOaKO+LD8J0B9xsRh0KtyNbqb6isxJH4w93C?= =?us-ascii?Q?FtJPXXbJe1jgiwrkVWckkq8gBDvrVXBUEasuzbcoXbhQSIhNFCwvELMRpc0N?= =?us-ascii?Q?ZWtIVm/1XSs7Fo/5UoCRkuJNprYTTXlJ64lGbJfZxmppeGmwaJgq9WzENICD?= =?us-ascii?Q?vt+BftrvSol1yziJ64TSIVgizuqCL2allQGAFreQDEtEwd89K2KEKFxGdtBD?= =?us-ascii?Q?siGWlKVMHxmmPp4vYMGyxMe+HwggW7af2F7q8bfxGaQzGusBy9P4uNAvNc2y?= =?us-ascii?Q?i0CpuN0KLlbdE8zTFqEI9AVqMI7/tMh1nm5+UohRWSTRcNgvJNZ1/Bw3L9F2?= =?us-ascii?Q?j8xHNk+YPixfvtpoL1YDDrxk/JtoWC7Hzb2ByvXKJIiWMLE6AQ0kZlWYMQH/?= =?us-ascii?Q?2i5nK33cB79T7Q2y9cd64nxZZFsFR4C5?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(1800799024)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 14:07:24.9647 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b7258a1d-4f33-4b96-3d96-08dcafd7c5c9 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF00000204.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7365 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 The 'eswitch_owner_vhca_id_valid' only depends on the 'merged_eswitch' capability. And it should be set for all vport actions. Fixes: ac8415cfe760 ("net/mlx5/hws: set E-Switch owner VHC ID valid") Cc: erezsh@nvidia.com Signed-off-by: Bing Zhao Reviewed-by: Alex Vesker --- drivers/net/mlx5/hws/mlx5dr_action.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_action.c b/drivers/net/mlx5/hws/mlx5dr_action.c index 8f6be37818..3fceb96de2 100644 --- a/drivers/net/mlx5/hws/mlx5dr_action.c +++ b/drivers/net/mlx5/hws/mlx5dr_action.c @@ -826,7 +826,7 @@ mlx5dr_action_fixup_stc_attr(struct mlx5dr_context *ctx, fixup_stc_attr->vport.vport_num = 0; fixup_stc_attr->vport.esw_owner_vhca_id = stc_attr->vport.esw_owner_vhca_id; fixup_stc_attr->vport.eswitch_owner_vhca_id_valid = - ctx->caps->merged_eswitch; + stc_attr->vport.eswitch_owner_vhca_id_valid; } use_fixup = true; break; @@ -1057,6 +1057,7 @@ static void mlx5dr_action_fill_stc_attr(struct mlx5dr_action *action, attr->action_type = MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_VPORT; attr->vport.vport_num = action->vport.vport_num; attr->vport.esw_owner_vhca_id = action->vport.esw_owner_vhca_id; + attr->vport.eswitch_owner_vhca_id_valid = action->ctx->caps->merged_eswitch; break; case MLX5DR_ACTION_TYP_POP_VLAN: attr->action_type = MLX5_IFC_STC_ACTION_TYPE_REMOVE_WORDS; -- 2.34.1