From patchwork Mon Jun 12 20:05:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kozyrev X-Patchwork-Id: 128517 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9646D42C9A; Mon, 12 Jun 2023 22:06:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72D0B410D7; Mon, 12 Jun 2023 22:06:25 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2087.outbound.protection.outlook.com [40.107.100.87]) by mails.dpdk.org (Postfix) with ESMTP id B186240689 for ; Mon, 12 Jun 2023 22:06:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DEFNJQ5aryzgadnmwc6KO+Uv1icvtEz1a1sYKpBzk5XD5xjX5KJXbJW1ks4AopufTvzyFjgnPFPoW2DKkFaGVcULQlILN04OPGbTSU56Fndr4v1053tquTfWwXrnZg+3YKXubd5GVHi/2675GkHTm8OakPnDpluH1Zd7WYliG8ElRRyOVtaZzeOT1WMpxh0O2wtL0K36N/0mVmB5f1xlvnk0vtH4kolbXhUy9M0bl2I/CIKOt9giSWpNsGeMhKRb+hvW9Nsq5cf526hUeDteTIP80ZSMDkIqXQdAsTkcS3bB5Dzlq+dIfuYJbH8Q2Q9DwzB3Gjoh+Q+zaSP2DJasmA== 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=tluzSb/VPfLnu/R6quVkMe7BP42IJDnfFyf0XkzahoE=; b=HfKC78rQGn3Uzfl46Yf8iaNW6Dn7oYO7uVwgoCt7AVtPWoUdsQNC7T0q1gaaToUyhdBZovjh8zDUQMoWxZlOBi/5eeD8A6aTur7vvWHfQSeXzG8yhfA7/B5WhWFAByM48lLCaxIcO2pOW54c+ciXeZ3tPiGM0vcQZBZh3M3fJUa5IdCEOAx8ll7AVUOMM3UkFxwswvJIhgFX4JMF2FUEEry18gjlbXTinHTWCyX2ZSxuGJuTNfDOOE+XorUvhsspSPoybhw2ZwNrAB0QfWOTljBGX1cvkFFsvKl1nhVwWOBC7JBsnCm9RssgCHqS1Eyk/Ti97OG+CJA6gz/h4j17RQ== 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=tluzSb/VPfLnu/R6quVkMe7BP42IJDnfFyf0XkzahoE=; b=mcgEC9NNJ/43oSt69paGZnq4NLN3uYeCzcTV4hJI4VwAEbTL9z/CmM8xGIJteQh8Y16XFE7h+5CVZNlfdmGCGltcqxHIMxIcDdJa3BNmhLNX5b+ZI68zgajVbzJrfpEHzLzROYOdiDcUbZZpJw3lvn2p8p5OwwJ4gOso8VD3fgawwl57StRrmQdVVyP4kkD+ecjIu04ADrMMUkgr9hDX6JFDcuj7KUJQm7mkAg/vHt8OUIe4wegMrcLmA5kmK8BSJgxBNtH6Vq0uVIZJtMiQjkCqGlG8KECqAATzRdMxnzZvxUEO9wgAWMndpTZHeLcXzj/fa+juD4u75WC8531Ekw== Received: from SA0PR11CA0060.namprd11.prod.outlook.com (2603:10b6:806:d0::35) by BL1PR12MB5825.namprd12.prod.outlook.com (2603:10b6:208:394::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.39; Mon, 12 Jun 2023 20:06:21 +0000 Received: from SN1PEPF00026367.namprd02.prod.outlook.com (2603:10b6:806:d0:cafe::87) by SA0PR11CA0060.outlook.office365.com (2603:10b6:806:d0::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.33 via Frontend Transport; Mon, 12 Jun 2023 20:06:21 +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 SN1PEPF00026367.mail.protection.outlook.com (10.167.241.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.22 via Frontend Transport; Mon, 12 Jun 2023 20:06:20 +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; Mon, 12 Jun 2023 13:06:10 -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; Mon, 12 Jun 2023 13:06:08 -0700 From: Alexander Kozyrev To: CC: , , , , Subject: [PATCH 0/4] net/mlx5: implement Flow update API Date: Mon, 12 Jun 2023 23:05:48 +0300 Message-ID: <20230612200552.3450964-1-akozyrev@nvidia.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 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: SN1PEPF00026367:EE_|BL1PR12MB5825:EE_ X-MS-Office365-Filtering-Correlation-Id: 34f30362-ca5d-41af-65bb-08db6b807d99 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6palwOcHyxN6Bi+bWdlYWoKbfmx/xzTvcaAgqHDlWW4vyDKzj2DiAgGONITqjsGkebOrmwI6ORlgo1ljog9ufzr95VchpK8YIWnCXlt7QrAoTVKYp59Qos1eU4EhOVNfyZbLbIGzzKQyWBTWJ9XpzklxnXzPar5Cb41tECDCZarB84i6flCkWv7Rs9/EfeESZfQ6zPHEa2lOFGrUveR+CUVYgDzppI/jtGUseW/DhLk8NBwAa1VL79JhG87O2owE0djAuQpKT1qkN3aGOs/zmi8bESyHi1GyMwakT0cXUaP8iqiN5HnYvVwKxvxJx3PI2wuA3cQXkiYU2VLTDsU9WVfzx4ppdYVXZEuHNSsNCnbWwPMiiEHApEw/hFqx491rvKfrenaWSg+DOANMptDCvEOKntiiaK7u0hz56vTFAYjsWN9JMrOHUKK55HXl2yPUE7rABiTK82VlsRaDUhzVnklIx+eDluCdOqwTn89wKZvBojTwP1uSEhP1YRHyKCABxd1Ncyy+Up9bXZHRHVHqw4pkVmIRIUVuLJSsG3XSU8iLfF57+h0Np5OgKVfI1fuWRDVwrqh0OOWvxVNfQaQuGWUVvaANQWO4PSTF5zfjHnVTG6TYZ1oYvidoqHH6guh+vC+oqfQduql6+/cPjAbuY2wSICqW0kDTDM16b1KnObKexDdskLFlZD3HFBmWfNh79h/XFVNeKpEHzS2Hue++84fmFhCQN4G+fFvtmxKFd1CIfFvmge2jKDm3OeUpOPnu 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)(376002)(136003)(39860400002)(396003)(451199021)(36840700001)(46966006)(40470700004)(316002)(2906002)(6916009)(5660300002)(15650500001)(4744005)(41300700001)(8676002)(4326008)(70206006)(70586007)(54906003)(8936002)(478600001)(36756003)(6666004)(107886003)(186003)(2616005)(40460700003)(86362001)(36860700001)(47076005)(426003)(40480700001)(82310400005)(336012)(16526019)(83380400001)(82740400003)(356005)(26005)(1076003)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2023 20:06:20.8841 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34f30362-ca5d-41af-65bb-08db6b807d99 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: SN1PEPF00026367.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5825 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 Add the implementation for the rte_flow_async_actions_update() API. Construct the new actions and replace them for the Flow handle. Old resources are freed during the rte_flow_pull() invocation. Alexander Kozyrev (1): net/mlx5: implement Flow update API Erez Shitrit (3): net/mlx5/hws: use the same function to check rule net/mlx5/hws: use union in the wqe-data struct net/mlx5/hws: support rule update after its creation drivers/net/mlx5/hws/mlx5dr.h | 17 +++ drivers/net/mlx5/hws/mlx5dr_rule.c | 123 +++++++++++++----- drivers/net/mlx5/hws/mlx5dr_send.c | 2 +- drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow.c | 56 +++++++++ drivers/net/mlx5/mlx5_flow.h | 13 ++ drivers/net/mlx5/mlx5_flow_hw.c | 194 ++++++++++++++++++++++++++--- 7 files changed, 362 insertions(+), 44 deletions(-)