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 6D6A943258; Wed, 1 Nov 2023 05:45:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 493BA40691; Wed, 1 Nov 2023 05:45:04 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2062.outbound.protection.outlook.com [40.107.93.62]) by mails.dpdk.org (Postfix) with ESMTP id F10F24161A for ; Wed, 1 Nov 2023 05:45:01 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XDgGj7h1xBz8PEtADqF8sZSX8Y+nDpLMbdGSleAm52OHBTM/3wqpw4l6syusFuEwj3L7n+5hdgb7cFnqOj/t48ygNfQw9t/91MgS4VZq8cNbW2n07sTJT5f0BQzcrPbKERU1cWeC2fx2YVla5oMZOl/h24C+OCRt4jt5k9A4KquJioJ6vXdrcqrC4Cq+Jr9f9cW7CtrLnpFK1B0hntNJ8mGdDmp+UYyUwgIo5JYQf5pmyZrgIWHMw7+7UqtP6s+64SnchmKYx3ZXJ2p5eIkOxx78g50iFpWRDlEKGw0UcdcpGzSyd1WLDcYD0sqBLpqLlr5jk7A8LrvOmwCUT0aGUQ== 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=knucfDW7CE1HLlPuwoE9+M06ZfxyZd2TXNQfQoE18WY=; b=P0vzn/M7wKSzsrpsHjX4pApKidRgUKRmPI4qwm8vL7UF1zJjO/H7gNC2mQsJgwAFJFR7zfKFCGapTUCZOnZM2qVCUqLgEkfd/VajlHC16PxtdrXlMt3AR1alNHehmlv4WxnxtpWfWVy5S6L4pLjHVPJqwnJwv5eO/D/g3eYeZK1Pgmx+qmn3/2dBhF1s/1CwmmIVMM9miUWGB78RR7UtRkoN9JAm+984O88Sekkdq0CBGfOUTgNBRyURQ7jwbyqqRzF7IaGlAeYswMpE5/C/7jcvkVt5a7q2AyVgVzyUWfi+3ZS+SU3BT+diw6jcPK6V7vd9CmoM8YbCrZNshEnkdQ== 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=knucfDW7CE1HLlPuwoE9+M06ZfxyZd2TXNQfQoE18WY=; b=CTy7H8oNB2Qqh4ijebxhRKjpKKFF3NWg3htevRN/eohcrI0fKvpUxUf5KYWqkaw9NSRptvDm8LcRTNzI3ceYL+a5AoxOu7atv34AD9pdVyjA9Nr0VdHBIgDVtu+qmOnYAyP56gsHYThOeUlZ2AtMDK5KK3vdYArJi6V6Gjll4okISOp77JO5ZV+NrXYuCLb6CIxprjmND3OX8yY1pjg+omSmiQr7oqhGQ+LlCTlldhwqs8V4COxo1s4OAIjSo2VaMavKnbbazPRSd3FJNasdblAi1PSbiyaqnGW1u442QHqvVyp3E0FQeyzyVx+esZMGbF1+z5OVqXyU7HXnaht0Lg== Received: from CY5PR15CA0173.namprd15.prod.outlook.com (2603:10b6:930:81::18) by MW3PR12MB4588.namprd12.prod.outlook.com (2603:10b6:303:2e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.28; Wed, 1 Nov 2023 04:44:58 +0000 Received: from CY4PEPF0000E9D1.namprd03.prod.outlook.com (2603:10b6:930:81:cafe::a9) by CY5PR15CA0173.outlook.office365.com (2603:10b6:930:81::18) 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:44:58 +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 CY4PEPF0000E9D1.mail.protection.outlook.com (10.167.241.144) 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:44:58 +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.986.41; Tue, 31 Oct 2023 21:44:51 -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:44:49 -0700 From: Rongwei Liu To: , , , , , CC: Alex Vesker , Erez Shitrit Subject: [PATCH v4 06/13] net/mlx5/hws: fix incorrect re-parse on complex rules Date: Wed, 1 Nov 2023 06:44:12 +0200 Message-ID: <20231101044419.732726-7-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-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: CY4PEPF0000E9D1:EE_|MW3PR12MB4588:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c8eecf3-2437-40e6-e402-08dbda954d19 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: F2t63PYGSym+5AQuppa4S6pT56EZy63NN5DfpgWtEJ2Jr5whjwtTTt9s54i5GGQdXRUw97iC95blrFK9v3vt0iK8pUq9+lAnnZn37JdBMZYf2LxH2OesxeT1RaEq51Yr3Pk6gisyMZ8IvbwW0xF4A27wJSnSibax20rdFS0HoTiiWdbzKw78VoOiDeNMfXnbchJoz3vkMEWk/K2lodMFRUTgM7m+FDc9BRcNQU7KV2uf91gK85tc5xpgktvM2SS4cQFAB8TqtByuifADFXU8FM5ZNlKEudX9YV/PSK9PUhykSR9UpMau2FqEQPKjwSlY3IfedFWUZLrJkXDS0g59ZDLmo0AURnZntKq5830stTPzur3OKn4qwZE22aBwYEvGwO+k142OmVSzx+JfHO4qRMSZPnWABL+I1Olbu9w7mZLpS/hu8rAwSxTE1JHL+bEqBHxEEyQU+T+SxbEiyLV/1kdsgBPd7aj0gmEkFwh1W3YW97cvtFZVO4CuPIE2yGpAHu5cH43qAa8la7OsG79lH6cKu+3GOysipjo5CLhDIxX0iLz9RoG606uhS1qltYCwVS3BpfU1T6SwL1JeBOU2djQum+AkJlyRRU6ll4ZN7If94w3fKQ6K9hceHidzmeyiGY68IPaO1pvE/J26dZktjH2T8wfJh5oC0mjFGB0vGE8/XXbFFOH+cvgjEms51+xAwCQQJOzonF/4koDIp3hyPp1hxpC0LGCJ7IsMxNhVBgpoBZ8x3cBOvj1H1TG1vDWE 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:(13230031)(4636009)(346002)(376002)(396003)(39860400002)(136003)(230922051799003)(82310400011)(1800799009)(186009)(451199024)(64100799003)(40470700004)(36840700001)(46966006)(55016003)(2906002)(40480700001)(40460700003)(36860700001)(316002)(70586007)(54906003)(47076005)(478600001)(356005)(7636003)(82740400003)(107886003)(6666004)(1076003)(7696005)(110136005)(2616005)(336012)(26005)(5660300002)(70206006)(83380400001)(426003)(16526019)(41300700001)(4326008)(8936002)(8676002)(36756003)(86362001)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 04:44:58.0175 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0c8eecf3-2437-40e6-e402-08dbda954d19 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: CY4PEPF0000E9D1.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4588 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: Alex Vesker The re-parse value when jumping to action STEs was set to NEVER leading to cases in which 2 STCs accessed the re-parse bit causing hw_syndrome (0x3d). The solution is to use set re-parse mode to IGNORE in such case. Fixes: 2b3d3097a10a ("net/mlx5/hws: support dynamic re-parse") Signed-off-by: Alex Vesker Reviewed-by: Erez Shitrit Acked-by: Ori Kam --- drivers/net/mlx5/hws/mlx5dr_matcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_matcher.c b/drivers/net/mlx5/hws/mlx5dr_matcher.c index 35701a4e2c..4ea161eae6 100644 --- a/drivers/net/mlx5/hws/mlx5dr_matcher.c +++ b/drivers/net/mlx5/hws/mlx5dr_matcher.c @@ -765,7 +765,7 @@ static int mlx5dr_matcher_bind_at(struct mlx5dr_matcher *matcher) /* Allocate STC for jumps to STE */ stc_attr.action_offset = MLX5DR_ACTION_OFFSET_HIT; stc_attr.action_type = MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_STE_TABLE; - stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_NEVER; + stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_IGNORE; stc_attr.ste_table.ste = matcher->action_ste.ste; stc_attr.ste_table.ste_pool = matcher->action_ste.pool; stc_attr.ste_table.match_definer_id = ctx->caps->trivial_match_definer; -- 2.27.0