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 3DCB545D43; Tue, 19 Nov 2024 15:29:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 13A0140274; Tue, 19 Nov 2024 15:29:41 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2058.outbound.protection.outlook.com [40.107.220.58]) by mails.dpdk.org (Postfix) with ESMTP id 06AE540268 for ; Tue, 19 Nov 2024 15:29:39 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=TM1ir7He/qtECYjrolEoCx4avQyzJrKentK6ncIPrph8FxIkoHXrn+ij2n+E+5a/Ze34l0Tt471YRBuJObRN88gq/uPUBzs/Cijh4UC/NV75LNvPAXGwegcQNrGKWBbkpriDhPsiXqRcfzEEeXJ+8NcLxRVCOKTQ+qMTTj6v6IOPpWYLPlianiB+aN50wXqUnYl1MW36Vkd8/Z+98LJOcrJjNXoTyvHzltkHxl/RJ2T8bP3o5KOjmVwCpPuICUBNbUxKP8Fg94af1P5W20T7bZmTuETZaw4WwkPS2WQT9WLUCrZpEHHVuN6WGrklRN1aUpMRE/Egs7mBWoh4b7vA1w== 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=hEoOKB2CehEfsRhOLaj7jCjd4NLQCKK2M+fqps1Wbck=; b=o0U7rSKFf0O7hN9qYYaMq63kNkpwbHHQ6jVbaZqJZ8c+E5k/acKlPvDAHS8qDALp2FgSC5HvXIGoaov9rKGJ4p7iWGUQ7h63cjHAPjv6ooO8sxKYlit69L2mpwgSNPXNfICTD8vuHkqo7CyvETpC2XvduIrDarvA+sfG7slPRGznfh6d8/nwBXFslGh3pbyscUqCyr/qT9yTu4al3OQ6wwD3CbLNYFiRSApkI7QqBWD5x3dYz2IDoVv5y3s0ZKG9F0pRy16J5nuT7aNrpz+ImSBj0/gmdpH4rxOI4AyBcVFQWMwlGFfrl/4G+B7ft7yRqV2fjBhN1hLpRcOCStKSQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=monjalon.net 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=hEoOKB2CehEfsRhOLaj7jCjd4NLQCKK2M+fqps1Wbck=; b=Eycdqg4vZzqxmmWeU4ix/3Mse3MtsTEz37dq3lTQEfAJLq/hxQT8DudgbzdlVatxES3VxIOisKCPXQT8ADL+Z2ud5CVX93Clk9MJ1WCq0pl7jCLMvsCYRIz0BPfC4ORoadgIrTz4YjGsWu9jjVOt7Em7rdzZbgdkXbIZ24/5CxYDEPHemP4OKL0uyfgpJSQUSw5/eEJKA2yp06Zye19K9r8RPcWp2cD/EWw8TV545BF8bAufIxgJLYWpDfgIArJdj0T80d4AZGeAsy7oRV24vRt5Ar1FsnL3IcC5tECi8DRtame6QDiWYcX0fSDGLCMpS+B6lqHPFP1f+7S+9nJx/A== Received: from SA0PR11CA0092.namprd11.prod.outlook.com (2603:10b6:806:d1::7) by PH0PR12MB7957.namprd12.prod.outlook.com (2603:10b6:510:281::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Tue, 19 Nov 2024 14:29:35 +0000 Received: from SN1PEPF000397AF.namprd05.prod.outlook.com (2603:10b6:806:d1:cafe::94) by SA0PR11CA0092.outlook.office365.com (2603:10b6:806:d1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23 via Frontend Transport; Tue, 19 Nov 2024 14:29:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by SN1PEPF000397AF.mail.protection.outlook.com (10.167.248.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Tue, 19 Nov 2024 14:29:35 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 19 Nov 2024 06:29:22 -0800 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Tue, 19 Nov 2024 06:29:22 -0800 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Tue, 19 Nov 2024 06:29:19 -0800 From: Itamar Gozlan To: , , , , Dariusz Sosnowski , "Viacheslav Ovsiienko" , Bing Zhao , Ori Kam , Matan Azrad CC: Subject: [PATCH] net/mlx5/hws: allow vport action to wire in RX flow Date: Tue, 19 Nov 2024 16:29:15 +0200 Message-ID: <20241119142915.1889997-1-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF000397AF:EE_|PH0PR12MB7957:EE_ X-MS-Office365-Filtering-Correlation-Id: a0e9c672-7fab-4d1e-b283-08dd08a6977c 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; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?K3BkkE721i9vmeUmsgimDkRgBAkhkxAbIWq4lXT6bXX6arQaGGyF1rUjOSnd?= =?us-ascii?Q?31/dqU7Yn5o677UA3IbJ20d/QJRDiPIlTel/8R/voT36AS016F0MSZaKJtPb?= =?us-ascii?Q?uHhI2Zh9JjqKgW2cZq39Ii1Dd/NrjDLql81ufdlwix0UJi7fNICUOB1Wkh4b?= =?us-ascii?Q?avXXLWBvtjXXzopkEnfyXmvyH9rRZXasCgsS2OboUoaBLj9zVnTkH9A5lueX?= =?us-ascii?Q?qNbDwS3C/tP9HqOtvlUxXrzyH6TCwNqfcoom17WD2TtN/9Ew9+J7Opbv0V7x?= =?us-ascii?Q?XZR2jgrJxGNHmIcZ1YVOVPPyVS9o9BG3q+vkVyPxQ1P3nZzzRo3znpTEJl+m?= =?us-ascii?Q?17zV0XvkJDxD5JmhzoTfNPYOSmftTkBdVnQlml4WE6S2ttNDQID8rAE67cB7?= =?us-ascii?Q?dEKtICrP4LcLygymWKBnVmzgUs81iY6zkKPZ3Muu9Ot9SE5TKCjGR9k4VLhp?= =?us-ascii?Q?rkv49RDt63WlobdB7LKywC2XqMJzAg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=?us-ascii?Q?JuaBlNIqpRrBuWYNyG26yGPYrHFhFuohfu5x+9kg5IW63gLv0A=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Nov 2024 14:29:35.4353 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a0e9c672-7fab-4d1e-b283-08dd08a6977c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000397AF.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB7957 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 From: Erez Shitrit Now that the FW should allow it we can go to a wire interface under the assumption it is a north directed wire. Signed-off-by: Erez Shitrit Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/hws/mlx5dr_action.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_action.c b/drivers/net/mlx5/hws/mlx5dr_action.c index 696b160011..b038ca6879 100644 --- a/drivers/net/mlx5/hws/mlx5dr_action.c +++ b/drivers/net/mlx5/hws/mlx5dr_action.c @@ -817,13 +817,8 @@ mlx5dr_action_fixup_stc_attr(struct mlx5dr_context *ctx, if (stc_attr->vport.vport_num != WIRE_PORT) break; - if (fw_tbl_type == FS_FT_FDB_RX) { - /* The FW doesn't allow to go back to wire in RX, so change it to DROP */ - fixup_stc_attr->action_type = MLX5_IFC_STC_ACTION_TYPE_DROP; - fixup_stc_attr->action_offset = MLX5DR_ACTION_OFFSET_HIT; - fixup_stc_attr->stc_offset = stc_attr->stc_offset; - } else if (fw_tbl_type == FS_FT_FDB_TX) { - /*The FW doesn't allow to go to wire in the TX by JUMP_TO_VPORT*/ + if (fw_tbl_type == FS_FT_FDB_TX || fw_tbl_type == FS_FT_FDB_RX) { + /*The FW doesn't allow to go to wire in the TX/RX by JUMP_TO_VPORT*/ fixup_stc_attr->action_type = MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_UPLINK; fixup_stc_attr->action_offset = stc_attr->action_offset; fixup_stc_attr->stc_offset = stc_attr->stc_offset; -- 2.39.3