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 641A742E24; Tue, 18 Jul 2023 15:32:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2C3A410D3; Tue, 18 Jul 2023 15:32:46 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2061.outbound.protection.outlook.com [40.107.212.61]) by mails.dpdk.org (Postfix) with ESMTP id 5F52740A84; Tue, 18 Jul 2023 15:32:45 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cfv+S5qZvkcRwUSSFBxWl7E77nBcQo9cyBfqhuOdWgjhPZms1eb893jG68zP63ckizvrWuTd9Qy5BwG0ivIadjNEVPpxSajNfkqZxlnG3OlrMAObt6yasiFqlVvPvyYf+m6u5gqH+pnwIBMH/ytFrrgW80Yxj4ev66SKMMN43yUfPfaztthqBuBTVnqkraX1jKf9/ios8uM9PfS8VE506CMNHRVrodk4T+j0ibTFc938QGfJjSMm5kbQ5sMxUi/wooV6/hcLHqPCik2BuYLpWszmihT6GuHyLN53klwzeqxCue7Ycy1I3OkDEnalq3Dsc+kYYt63qEoC9LZ7hYAAAA== 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=BWfaeqLFS9oljqtMFAg8nEzuKa4xUg3LqjxG4ZrhyphJMxGCQ1zUiev+aJo8tDsTzBM5E6EQsSXdOMx/t6oRDn2aHCL0oZ/eHIpOeph22Fb54Tw+nbcgY3PCnxL/lRqbJ9VT+9RKl0pL8+CghAT45GCZdbL20VLD58qBiXrBN9/jmhlu8u01RdwdoyMbRv8vcbEmm7Ou02B+yaozxGj5HV+lr+KeqxrvEfRtHBL0zBm7gsmffMej1XwhoD1UA6OAuaiufXvZRho1ET1rPe97x417M5M7/32Jk7hzrnZw2bntbV1tbJQUCwQngnxYBzlyfM3SD1O/aBihdn1vZmtm8g== 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=SsYkyX8IzdzpJckPnri1ZAurTDjXOCc0iwTNYmkEFHGsR3SI1A0+3dfGak7YtR6+K/ZtHBtZ+ki12e4giYWJkm1Efxje4MXyYJKfoNQMzpU8LEccM56ZJSOwFuDJbUsErg7xW9Ots2pBuMsl6H1pnR4AC7T6SXtyFwz1LOZebfjMC2rGj3ry2L8BpPNEHbhbqlRbaH26+ZZRO/FtqYlDSgFexaHX2Eoq3gndD3mS34MtBYOHf7o98GxiH7+wk2VCHGxsMgVHTr2Rd31tWbBOa7fawXZeXZI0GGEmLwJyifh4RKo56RJLdk//aKVManv6DNwn+s/jPJqiLH9uIQ9tHg== Received: from DM6PR13CA0015.namprd13.prod.outlook.com (2603:10b6:5:bc::28) by CY5PR12MB6432.namprd12.prod.outlook.com (2603:10b6:930:38::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.23; Tue, 18 Jul 2023 13:32:43 +0000 Received: from DM6NAM11FT068.eop-nam11.prod.protection.outlook.com (2603:10b6:5:bc:cafe::4c) by DM6PR13CA0015.outlook.office365.com (2603:10b6:5:bc::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.23 via Frontend Transport; Tue, 18 Jul 2023 13:32:43 +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 DM6NAM11FT068.mail.protection.outlook.com (10.13.173.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.34 via Frontend Transport; Tue, 18 Jul 2023 13:32:43 +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, 18 Jul 2023 06:32:33 -0700 Received: from pegasus01.mtr.labs.mlnx (10.126.231.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, 18 Jul 2023 06:32:31 -0700 From: Alexander Kozyrev To: CC: , , , , Subject: [PATCH v2 2/3] net/mlx5: fix handle validation for meter mark Date: Tue, 18 Jul 2023 16:32:13 +0300 Message-ID: <20230718133214.3895192-2-akozyrev@nvidia.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20230718133214.3895192-1-akozyrev@nvidia.com> References: <20230711152044.3141138-1-akozyrev@nvidia.com> <20230718133214.3895192-1-akozyrev@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.126.231.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: DM6NAM11FT068:EE_|CY5PR12MB6432:EE_ X-MS-Office365-Filtering-Correlation-Id: b9fa44f4-6efa-4f14-fa85-08db87937761 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ovUqhqbbazYKAks8WMFa/ciKt1cTfq8OPm5n5/Ny7AcFbf/Bkk2C3TCl8PiPdZxZD3dqs+bIXDRixOgDdi8m/YBA+uYHxzVeMWJ2ntCnNmWRlpWwzJEOaf8X26S6w6iTcmYwJiHqcPPXmwjYMit62bgZEbvHXJnpXPcEtlLhvf/cFb1zjUO88Zi37wyA8zX7Y677q5l32SP4gALrkZZ/HgENEOla/O7PMH3LbirzJOUf9j9peziG1T3olLsHP93MeN72ycb3dparL2LhPqEpUsSauucrVqMRyoXofO4EGJuFtku0Gpp9ypJIuo4cLQPxvXkrvcdfx8Me/N1ywW9K1eZcG98fntOWZ+G6oJw4ee62qx2BPW/2DQ7qfzS76QYK/CyFhi3ey7HZNFLZWKIM1m3yDm4KAj58dflEH/Jes+ZDoZWurxigzMFbHeUEMPwhaBR1YTSdyENe9kH1PUGWwQ8VrsHqPvChpauOLcfFIFYGzwVLdYtsm2kgZ1tdSZPmnkmPs+gdI/MQLphu0Wh8GU6As3IEdRJUIcHZ5hqRyOEysLnnWeI+c21z7amM3jpOHJ4xWD84Cb5NgXVdU8Y2wrhnO7cmCMlFdgRQnenBF84pUQlDWUZWbzH28fexd92JQq2g5FDFs7xkqahp+y0hvnAur1KNxn8ewh7Vx9U6Sq6LSAcUu+vMUnYYQP/gYIT2u1ihYdOX3LdyxiSMD3dipp9Lfr/0t543vfub5obqEOo= 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)(39860400002)(346002)(396003)(136003)(376002)(451199021)(82310400008)(36840700001)(40470700004)(46966006)(47076005)(6916009)(36860700001)(2616005)(426003)(83380400001)(4326008)(40480700001)(70586007)(70206006)(6666004)(316002)(54906003)(16526019)(336012)(186003)(1076003)(26005)(478600001)(2906002)(4744005)(7636003)(36756003)(86362001)(40460700003)(41300700001)(356005)(82740400003)(8676002)(8936002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2023 13:32:43.4503 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9fa44f4-6efa-4f14-fa85-08db87937761 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: DM6NAM11FT068.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6432 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