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 35FAB42E47; Tue, 11 Jul 2023 17:21:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADC9142B8C; Tue, 11 Jul 2023 17:21:20 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id D024340A7D; Tue, 11 Jul 2023 17:21:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HSChGl/p8jQYKXIcpDmHEOL/v4JDcTdfd+DzRqNIPwulPJsbGVvJfAB43kQRDpwkLbBnu21tkjuDDeQ2Nv9NjeDl1cwY6ZJWwYPynNIrKG+/OlKycg34M3dHC5NwJ/aJplET0nkNDaB0IewOf5GjtgzY7nK5DzWHleA3o18nshJtEShpLMwxBeiRIAMrDi9Cn7YiNb/qPZp8md5nZWmShrSiH1XJEfMtjypLM9fBnClP9MVeY7ZF9ehSl6aEIWuYStMBMFCPU54f0J4zmaTGGaNUQrZKQ0pXAX6b+vgYIua10Kk3b2RTHij4BKz8KMM+luslgQSNNonSEzOxyjy78w== 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=X2PudtKe9dSYmvJGsAYewNTU8ReuGKpDJAJ6SQFkeHU=; b=ID4duWD6fBD6fP3qvxBgVAnIqcvM+nTWnJ1ChiEZ+XctbPMeTj0gGcvKeA8vszBtsWcIPIEhlyxYO4B4gcPOIq60bTyHKt7QMOMVn3gjTInMWoC+SXnnDOcUd9s2NII+83Zj8bPLj9G54h52WQW+YzsWgYaEl99SdDONfqGMV9vgvd5UQyJpGm0LQWJ2FuFksQcFXXACm3tdJ7Ozp5YE39vk5KbF3xPIagFei7pYvWp0qA9OJN6yyHu1HEeDLbOPGWoqPrLqVtGRb0FU5XVboNvMTddWorg3aBr1wZl+CAzgf38EWgJSYlnZMTKa/NkaTwq05aEFa3kZaA/s1wY8RA== 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 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=X2PudtKe9dSYmvJGsAYewNTU8ReuGKpDJAJ6SQFkeHU=; b=kRfePC/dcRt3iFSPfqa0Mvzq5sz5/tjZDZ+BbNwkMcd+zKsb3pIuv90mUMLU9CHOEmODasM8IZ7pRIakVArgrBrL6P00/U3jQwvZHNQAQwygjaiS/l6FG8/I1SgpH7r11w55W5JR5XtMPainXJAGoC7U5Cx1cwsdvUPbfomsH5ICl0pIr3HircXs+bi1tl8RjgPufz6j0tI+uQue9cI0cz7n61gcICbPwFFsLrR1MMfcWbtNuJgeTNGFBWbe/IIwJTSeI6byeHcsMqAFPF/LfcxfvRvePKrJifwa4iE2W9zDiuHgFD27tAY/s+hFY2cAJM6UIlk5rQ3JWiONvC6CGQ== Received: from MW4PR03CA0281.namprd03.prod.outlook.com (2603:10b6:303:b5::16) by CH3PR12MB7739.namprd12.prod.outlook.com (2603:10b6:610:151::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.32; Tue, 11 Jul 2023 15:21:18 +0000 Received: from CO1NAM11FT029.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b5:cafe::c0) by MW4PR03CA0281.outlook.office365.com (2603:10b6:303:b5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.31 via Frontend Transport; Tue, 11 Jul 2023 15:21: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 CO1NAM11FT029.mail.protection.outlook.com (10.13.174.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.20 via Frontend Transport; Tue, 11 Jul 2023 15:21: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.5; Tue, 11 Jul 2023 08:21:03 -0700 Received: from pegasus01.mtr.labs.mlnx (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.37; Tue, 11 Jul 2023 08:21:01 -0700 From: Alexander Kozyrev To: CC: , , , Subject: [PATCH 2/3] net/mlx5: fix handle validation for meter mark Date: Tue, 11 Jul 2023 18:20:43 +0300 Message-ID: <20230711152044.3141138-2-akozyrev@nvidia.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20230711152044.3141138-1-akozyrev@nvidia.com> References: <20230711152044.3141138-1-akozyrev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT029:EE_|CH3PR12MB7739:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b601fcb-2635-4036-efe2-08db8222795a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KHZdSO2w6xycTuiy4IFtvbXhuf5zSg5xEygB9Y0+1JUmRyZsLj/s/56CTpFf/EKkgxmtbube/49/jFtXhNeuNBzzTQTxjHGJYuuLq+AXqCFgnTShLRqNQwoUDkz1P7XM3Tf3UiY+oKJqPanQrhkbSwHzRfxjwvINk3zDj+ojrw1Rn48Ddax+8hlDMps+wxpUUitgQqcVTdvhrcQomJWCnyYuA785amTx4aFzh7ZBj4hnfvs5xsxz03CDoPP0wCiM2UxTbTISPGLS8HXre5cekpHkJIsAi+a3D56vMSnM6514tbvGFY0blO3SzKU/b13Mf5exU/kQwSV3CNtwDM78AdiQShXtX6HzK2Vc6jM9C3kwgGzyCreYJG0YXGn7oBrVE9cs2A4K+ndON7lNgBu3hBMvHOcZhhFHbvFSl5EwdwmADoiNzcKByiL827GulnF7pU+LtZUEn1cobXYnPGcvHtRh2l0TyCKXLetod8yNWOJWCQuSKJWr8Y5OjGVwPucLy49oHldgerLDSQGU/IHijXnNYph+iLUrBdHPqBwsDANjlG0yeVxAioy9cfaYW/ekDtSm62NuNGCiAZNLbv4VnwtHYPcn9vrWOZNo06Rs+L9iEVV8Z6HB/yM428RpJqfOGPmDDUlvowNfTlHbGUZm3sWVWXWGu6S1f4rfoa511hmUtgdd8ueqULygryKvxFPmuj+fAMPe8r0m1rPeJAS/eG5LaO/Q/MwZHpnACgz3COs= 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:(13230028)(4636009)(346002)(39860400002)(376002)(136003)(396003)(451199021)(46966006)(36840700001)(40470700004)(1076003)(16526019)(336012)(186003)(26005)(41300700001)(478600001)(54906003)(6916009)(316002)(4326008)(40480700001)(70586007)(450100002)(70206006)(107886003)(8936002)(8676002)(5660300002)(6666004)(426003)(47076005)(2616005)(4744005)(2906002)(36860700001)(40460700003)(83380400001)(7636003)(356005)(82740400003)(86362001)(36756003)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jul 2023 15:21:17.8621 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b601fcb-2635-4036-efe2-08db8222795a 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: CO1NAM11FT029.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7739 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 Skip the METER_MARK validation for the indirect action update. The old synchronous indirect action update was left out during the METER_MARK implementation in favor of the async way. Allow the sync method of doing this with relaxed validation. Fixes: 48fbb0e93d06 ("net/mlx5: support flow meter mark indirect action with HWS") Signed-off-by: Alexander Kozyrev --- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index 9bd92f28fd..e91eb636d0 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -10758,6 +10758,7 @@ mlx5_action_handle_update(struct rte_eth_dev *dev, switch (type) { case MLX5_INDIRECT_ACTION_TYPE_CT: + case MLX5_INDIRECT_ACTION_TYPE_METER_MARK: ret = 0; break; default: -- 2.18.2