Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/107861/?format=api
http://patches.dpdk.org/api/patches/107861/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220220034409.2226860-5-akozyrev@nvidia.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220220034409.2226860-5-akozyrev@nvidia.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220220034409.2226860-5-akozyrev@nvidia.com", "date": "2022-02-20T03:44:02", "name": "[v8,04/11] ethdev: bring in async indirect actions operations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "75570a9c458971181e9d832f1ed445bbd8d4f5c9", "submitter": { "id": 1873, "url": "http://patches.dpdk.org/api/people/1873/?format=api", "name": "Alexander Kozyrev", "email": "akozyrev@nvidia.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220220034409.2226860-5-akozyrev@nvidia.com/mbox/", "series": [ { "id": 21750, "url": "http://patches.dpdk.org/api/series/21750/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21750", "date": "2022-02-20T03:43:58", "name": "ethdev: datapath-focused flow rules management", "version": 8, "mbox": "http://patches.dpdk.org/series/21750/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/107861/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/107861/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 59FE2A00C2;\n\tSun, 20 Feb 2022 04:45:04 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 690F84115F;\n\tSun, 20 Feb 2022 04:44:52 +0100 (CET)", "from NAM10-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam10on2055.outbound.protection.outlook.com [40.107.93.55])\n by mails.dpdk.org (Postfix) with ESMTP id 6CFB841153\n for <dev@dpdk.org>; Sun, 20 Feb 2022 04:44:49 +0100 (CET)", "from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17)\n by DM6PR12MB2714.namprd12.prod.outlook.com (2603:10b6:5:42::18) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.22; Sun, 20 Feb\n 2022 03:44:46 +0000", "from BN9P222CA0023.NAMP222.PROD.OUTLOOK.COM (2603:10b6:408:10c::28)\n by MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.24; Sun, 20 Feb\n 2022 03:44:46 +0000", "from BN8NAM11FT038.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:10c:cafe::94) by BN9P222CA0023.outlook.office365.com\n (2603:10b6:408:10c::28) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.15 via Frontend\n Transport; Sun, 20 Feb 2022 03:44:46 +0000", "from mail.nvidia.com (12.22.5.234) by\n BN8NAM11FT038.mail.protection.outlook.com (10.13.176.246) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4995.15 via Frontend Transport; Sun, 20 Feb 2022 03:44:45 +0000", "from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com\n (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Sun, 20 Feb 2022 03:44:43 +0000", "from pegasus01.mtr.labs.mlnx (10.126.230.35) by\n rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9;\n Sat, 19 Feb 2022 19:44:39 -0800" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=ANhL6zmITmSmPnXokIqaYzgG4DVdy/6cL79RAZ8Zw9yrIY/xSRr+hJz4Oh9mVDB4R/obYRe0iJvs5lPYdqkyLH3mzEXOg/ZFSxmybPtZ/GSX5FxNd9oO6qKWUU41ZGTmpayza6CSMUaN7dDJ5zp/AF1iU4tvXCwe78i7znddKMZqu3Kz3TIUe9t6UhLuErlgedochnaHMOlzUVIMxs4y8z4/Hks0BhTDRVcHgZLJSUf846b/OYJRs0XnecxbEIXX77g1VR41Sgyn3F4XINRbZOiWQm60AufVb/RgoqR4+rqxEZNxHdyFavYrlFZHBvhexh9NzT1UnpiRJmHiefsdJQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n 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;\n bh=7kgKwXoyFLxACtf1oq5zs3WkRxfN6fOA9O8IRumulwA=;\n b=TFHNTxu8fGtq2fkgGS6CWecBpmEzdK1k0Lq+okpQYYoFJoG3x0VRFL1bWIKyLzZGVYIszMdh8grBMej5sPWxfMWQSh2gMPC/8nJgC/7mEYe9vd6FhndTDM4Gk6D+zW4M5woeF6PocnJPM4MVWzLng+AEKymc/NhvBLyZPk5Y25vWI0psUw/5rkfBIFAmrcoyaVYKy3Ino8tdHtE99X3Pm3JKO3zznsEzih4ptV88AoEa7E/VLbcuiNpOJhF3fJ5tYgJRYFvaUdvNsIlfOM5B+NjXWxz2z7algcCcnLAALxW2cqsHAZJOCwLgd9/Wtwn4Bxp2L9+9eeu6IjwY5maz4w==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 12.22.5.234) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass\n (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none\n (message not signed); arc=none", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=7kgKwXoyFLxACtf1oq5zs3WkRxfN6fOA9O8IRumulwA=;\n b=V5V1H516l9KcNgmtINm0iYP0OMYsfA05irHe+S2fucbTt1QaZs0QhvyKbANoVe67lwXPXNAOOHmhIoq/bDLQaIrHZpxFla12ceWOn5AX0htgSCtx7W8ytLnt3LWmhunh7w5xv8CwW3LwUCZiV9tzbAQcaAQWbVfCBPLhq2qM+l6mGPHe9svVy/TzBplrApTkSrfbbQxk+LAc9GudEzQLGuUQvy5r0h291HIMWUFgHHGn/mH9k9r2faQJzTSGI/xTABGmeUIy9TC8/4dOrzohx+R+k/NncYBh3p3UlXQMcKsj2KMuAWPc0tH8a6iDGIGtt4MCkYL9xjBfFbYuds1o3Q==", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 12.22.5.234)\n smtp.mailfrom=nvidia.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;", "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 12.22.5.234 as permitted sender) receiver=protection.outlook.com;\n client-ip=12.22.5.234; helo=mail.nvidia.com;", "From": "Alexander Kozyrev <akozyrev@nvidia.com>", "To": "<dev@dpdk.org>", "CC": "<orika@nvidia.com>, <thomas@monjalon.net>, <ivan.malov@oktetlabs.ru>,\n <andrew.rybchenko@oktetlabs.ru>, <ferruh.yigit@intel.com>,\n <mohammad.abdul.awal@intel.com>, <qi.z.zhang@intel.com>,\n <jerinj@marvell.com>, <ajit.khaparde@broadcom.com>,\n <bruce.richardson@intel.com>", "Subject": "[PATCH v8 04/11] ethdev: bring in async indirect actions operations", "Date": "Sun, 20 Feb 2022 05:44:02 +0200", "Message-ID": "<20220220034409.2226860-5-akozyrev@nvidia.com>", "X-Mailer": "git-send-email 2.18.2", "In-Reply-To": "<20220220034409.2226860-1-akozyrev@nvidia.com>", "References": "<20220219041144.2145380-1-akozyrev@nvidia.com>\n <20220220034409.2226860-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\n rnnvmail201.nvidia.com (10.129.68.8)", "X-EOPAttributedMessage": "0", "X-MS-PublicTrafficType": "Email", "X-MS-Office365-Filtering-Correlation-Id": "f42200da-d6a9-4dce-83bf-08d9f4235670", "X-MS-TrafficTypeDiagnostic": "MN2PR12MB3613:EE_|DM6PR12MB2714:EE_", "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr", "X-Microsoft-Antispam-PRVS": "\n <MN2PR12MB36133AEBC3B685037076CEF9AF399@MN2PR12MB3613.namprd12.prod.outlook.com>", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "BCL:0;", "X-Microsoft-Antispam-Message-Info": "\n heZvhX3NbyMXJYeCOOAV+PAW34Ev28TqA2Ez18xOe4rqrlDHJolRgL+qYfFZ6sF9+wB3XKm+wA+Y0kW1C7nSc3tP++s2XX2ZkgFeGkRz2BnQX927Kkr1+jyAGZTDnhIUTZvt/bqwQdEgfiX9HHY21xzeChwEecG3GvPayUeRowao2RclWuYPJawRcYkZ0GfCAyiVkd6rmNN8AB7q0oO5/RSpbK/RVcMutn3AMiKJJ0L3+xz0tGc0i8UwjDLtwF4qO7M5rAGrBcwA8hKDKo32YCxVNOpkqCG/Iswgd+EUo1tcWoZd0KFDmuwCCS25pQz6r394NGHY7Qfndb14OtnLW7iJCeF6myyc3NOES4rWhicwM3I3DKWhcnBU0LV1R4BFftf/dbYOxTVvQcdYjsXSU9hApkJ4n5UXMH8w5ScIftNACiGhAkgv5zwpwHbRhXcZXcZXyHzRTH3bJRS+Z+8B76G0tty76j2Fm1UHdqKHqKrms+bdqptxQ8+N8mwQROubMrIG9Zgoo1sOo4cyfK0Nm42GPJM5jtCj3QQ8+SLLF3E1bd9kR0RRuTHb+JVHcHjY8K07zoSdkYwa8Q82G/EL92CpVT3+nJPGBrjCJYXAzU2l3uIKYw0+puzKqWQePyZfj5K+K8uIOtsTJgRoGIkX50pC4HDjcZR5M6YhTYPHrPVWFZWodmyEOwLoTFSoB9XSH7vxPs+F5ePj6jPLyQJaxw==", "X-Forefront-Antispam-Report": "CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE;\n SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(70206006)(70586007)(36860700001)(356005)(83380400001)(81166007)(4326008)(8676002)(7416002)(508600001)(82310400004)(2906002)(5660300002)(6666004)(30864003)(1076003)(26005)(8936002)(6916009)(54906003)(186003)(86362001)(40460700003)(36756003)(16526019)(316002)(426003)(336012)(2616005)(47076005)(36900700001);\n DIR:OUT; SFP:1101;", "X-OriginatorOrg": "Nvidia.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "20 Feb 2022 03:44:45.9318 (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n f42200da-d6a9-4dce-83bf-08d9f4235670", "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a", "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.234];\n Helo=[mail.nvidia.com]", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT038.eop-nam11.prod.protection.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM6PR12MB2714", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "Queue-based flow rules management mechanism is suitable\nnot only for flow rules creation/destruction, but also\nfor speeding up other types of Flow API management.\nIndirect action object operations may be executed\nasynchronously as well. Provide async versions for all\nindirect action operations, namely:\nrte_flow_async_action_handle_create,\nrte_flow_async_action_handle_destroy and\nrte_flow_async_action_handle_update.\n\nSigned-off-by: Alexander Kozyrev <akozyrev@nvidia.com>\nAcked-by: Ori Kam <orika@nvidia.com>\n---\n doc/guides/prog_guide/rte_flow.rst | 50 ++++++++++\n doc/guides/rel_notes/release_22_03.rst | 5 +\n lib/ethdev/rte_flow.c | 75 ++++++++++++++\n lib/ethdev/rte_flow.h | 130 +++++++++++++++++++++++++\n lib/ethdev/rte_flow_driver.h | 26 +++++\n lib/ethdev/version.map | 3 +\n 6 files changed, 289 insertions(+)", "diff": "diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex 436845717f..ac5e2046e4 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -3861,6 +3861,56 @@ Enqueueing a flow rule destruction operation is similar to simple destruction.\n \t\t\t void *user_data,\n \t\t\t struct rte_flow_error *error);\n \n+Enqueue indirect action creation operation\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Asynchronous version of indirect action creation API.\n+\n+.. code-block:: c\n+\n+\tstruct rte_flow_action_handle *\n+\trte_flow_async_action_handle_create(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tconst struct rte_flow_indir_action_conf *indir_action_conf,\n+\t\tconst struct rte_flow_action *action,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error);\n+\n+A valid handle in case of success is returned. It must be destroyed later by\n+``rte_flow_async_action_handle_destroy()`` even if the rule was rejected.\n+\n+Enqueue indirect action destruction operation\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Asynchronous version of indirect action destruction API.\n+\n+.. code-block:: c\n+\n+\tint\n+\trte_flow_async_action_handle_destroy(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tstruct rte_flow_action_handle *action_handle,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error);\n+\n+Enqueue indirect action update operation\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Asynchronous version of indirect action update API.\n+\n+.. code-block:: c\n+\n+\tint\n+\trte_flow_async_action_handle_update(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tstruct rte_flow_action_handle *action_handle,\n+\t\tconst void *update,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error);\n+\n Push enqueued operations\n ~~~~~~~~~~~~~~~~~~~~~~~~\n \ndiff --git a/doc/guides/rel_notes/release_22_03.rst b/doc/guides/rel_notes/release_22_03.rst\nindex cd495ef40c..c9c9078cab 100644\n--- a/doc/guides/rel_notes/release_22_03.rst\n+++ b/doc/guides/rel_notes/release_22_03.rst\n@@ -120,6 +120,11 @@ New Features\n ``rte_flow_pull`` to poll and retrieve results of these operations and\n ``rte_flow_push`` to push all the in-flight\toperations to the NIC.\n \n+ * ethdev: Added asynchronous API for indirect actions management:\n+ ``rte_flow_async_action_handle_create``,\n+ ``rte_flow_async_action_handle_destroy`` and\n+ ``rte_flow_async_action_handle_update``.\n+\n * **Updated AF_XDP PMD**\n \n * Added support for libxdp >=v1.2.2.\ndiff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c\nindex 4e7b202522..38886edb0b 100644\n--- a/lib/ethdev/rte_flow.c\n+++ b/lib/ethdev/rte_flow.c\n@@ -1817,3 +1817,78 @@ rte_flow_pull(uint16_t port_id,\n \t\t\t\t RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n \t\t\t\t NULL, rte_strerror(ENOTSUP));\n }\n+\n+struct rte_flow_action_handle *\n+rte_flow_async_action_handle_create(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tconst struct rte_flow_indir_action_conf *indir_action_conf,\n+\t\tconst struct rte_flow_action *action,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error)\n+{\n+\tstruct rte_eth_dev *dev = &rte_eth_devices[port_id];\n+\tconst struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);\n+\tstruct rte_flow_action_handle *handle;\n+\n+\tif (unlikely(!ops))\n+\t\treturn NULL;\n+\tif (unlikely(!ops->async_action_handle_create)) {\n+\t\trte_flow_error_set(error, ENOSYS,\n+\t\t\t\t RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL,\n+\t\t\t\t rte_strerror(ENOSYS));\n+\t\treturn NULL;\n+\t}\n+\thandle = ops->async_action_handle_create(dev, queue_id, q_ops_attr,\n+\t\t\t\t\t indir_action_conf, action, user_data, error);\n+\tif (handle == NULL)\n+\t\tflow_err(port_id, -rte_errno, error);\n+\treturn handle;\n+}\n+\n+int\n+rte_flow_async_action_handle_destroy(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tstruct rte_flow_action_handle *action_handle,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error)\n+{\n+\tstruct rte_eth_dev *dev = &rte_eth_devices[port_id];\n+\tconst struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);\n+\tint ret;\n+\n+\tif (unlikely(!ops))\n+\t\treturn -rte_errno;\n+\tif (unlikely(!ops->async_action_handle_destroy))\n+\t\treturn rte_flow_error_set(error, ENOSYS,\n+\t\t\t\t\t RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\t NULL, rte_strerror(ENOSYS));\n+\tret = ops->async_action_handle_destroy(dev, queue_id, q_ops_attr,\n+\t\t\t\t\t action_handle, user_data, error);\n+\treturn flow_err(port_id, ret, error);\n+}\n+\n+int\n+rte_flow_async_action_handle_update(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tstruct rte_flow_action_handle *action_handle,\n+\t\tconst void *update,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error)\n+{\n+\tstruct rte_eth_dev *dev = &rte_eth_devices[port_id];\n+\tconst struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);\n+\tint ret;\n+\n+\tif (unlikely(!ops))\n+\t\treturn -rte_errno;\n+\tif (unlikely(!ops->async_action_handle_update))\n+\t\treturn rte_flow_error_set(error, ENOSYS,\n+\t\t\t\t\t RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t\t NULL, rte_strerror(ENOSYS));\n+\tret = ops->async_action_handle_update(dev, queue_id, q_ops_attr,\n+\t\t\t\t\t action_handle, update, user_data, error);\n+\treturn flow_err(port_id, ret, error);\n+}\ndiff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h\nindex 9e71a576f6..f85f20abe6 100644\n--- a/lib/ethdev/rte_flow.h\n+++ b/lib/ethdev/rte_flow.h\n@@ -5508,6 +5508,136 @@ rte_flow_pull(uint16_t port_id,\n \t uint16_t n_res,\n \t struct rte_flow_error *error);\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enqueue indirect action creation operation.\n+ * @see rte_flow_action_handle_create\n+ *\n+ * @param[in] port_id\n+ * Port identifier of Ethernet device.\n+ * @param[in] queue_id\n+ * Flow queue which is used to create the rule.\n+ * @param[in] q_ops_attr\n+ * Queue operation attributes.\n+ * @param[in] indir_action_conf\n+ * Action configuration for the indirect action object creation.\n+ * @param[in] action\n+ * Specific configuration of the indirect action object.\n+ * @param[in] user_data\n+ * The user data that will be returned on the completion events.\n+ * @param[out] error\n+ * Perform verbose error reporting if not NULL.\n+ * PMDs initialize this structure in case of error only.\n+ *\n+ * @return\n+ * A valid handle in case of success, NULL otherwise and rte_errno is set\n+ * to one of the error codes defined:\n+ * - (ENODEV) if *port_id* invalid.\n+ * - (ENOSYS) if underlying device does not support this functionality.\n+ * - (EIO) if underlying device is removed.\n+ * - (EINVAL) if *action* invalid.\n+ * - (ENOTSUP) if *action* valid but unsupported.\n+ * - (EAGAIN) if *queue* is full\n+ */\n+__rte_experimental\n+struct rte_flow_action_handle *\n+rte_flow_async_action_handle_create(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tconst struct rte_flow_indir_action_conf *indir_action_conf,\n+\t\tconst struct rte_flow_action *action,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enqueue indirect action destruction operation.\n+ * The destroy queue must be the same\n+ * as the queue on which the action was created.\n+ *\n+ * @param[in] port_id\n+ * Port identifier of Ethernet device.\n+ * @param[in] queue_id\n+ * Flow queue which is used to destroy the rule.\n+ * @param[in] q_ops_attr\n+ * Queue operation attributes.\n+ * @param[in] action_handle\n+ * Handle for the indirect action object to be destroyed.\n+ * @param[in] user_data\n+ * The user data that will be returned on the completion events.\n+ * @param[out] error\n+ * Perform verbose error reporting if not NULL.\n+ * PMDs initialize this structure in case of error only.\n+ *\n+ * @return\n+ * - (0) if success.\n+ * - (-ENODEV) if *port_id* invalid.\n+ * - (-ENOSYS) if underlying device does not support this functionality.\n+ * - (-EIO) if underlying device is removed.\n+ * - (-ENOENT) if action pointed by *action* handle was not found.\n+ * - (-EBUSY) if action pointed by *action* handle still used by some rules\n+ * rte_errno is also set.\n+ * - (EAGAIN) if *queue* is full\n+ */\n+__rte_experimental\n+int\n+rte_flow_async_action_handle_destroy(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tstruct rte_flow_action_handle *action_handle,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enqueue indirect action update operation.\n+ * @see rte_flow_action_handle_create\n+ *\n+ * @param[in] port_id\n+ * Port identifier of Ethernet device.\n+ * @param[in] queue_id\n+ * Flow queue which is used to update the rule.\n+ * @param[in] q_ops_attr\n+ * Queue operation attributes.\n+ * @param[in] action_handle\n+ * Handle for the indirect action object to be updated.\n+ * @param[in] update\n+ * Update profile specification used to modify the action pointed by handle.\n+ * *update* could be with the same type of the immediate action corresponding\n+ * to the *handle* argument when creating, or a wrapper structure includes\n+ * action configuration to be updated and bit fields to indicate the member\n+ * of fields inside the action to update.\n+ * @param[in] user_data\n+ * The user data that will be returned on the completion events.\n+ * @param[out] error\n+ * Perform verbose error reporting if not NULL.\n+ * PMDs initialize this structure in case of error only.\n+ *\n+ * @return\n+ * - (0) if success.\n+ * - (-ENODEV) if *port_id* invalid.\n+ * - (-ENOSYS) if underlying device does not support this functionality.\n+ * - (-EIO) if underlying device is removed.\n+ * - (-ENOENT) if action pointed by *action* handle was not found.\n+ * - (-EBUSY) if action pointed by *action* handle still used by some rules\n+ * rte_errno is also set.\n+ * - (EAGAIN) if *queue* is full\n+ */\n+__rte_experimental\n+int\n+rte_flow_async_action_handle_update(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\tstruct rte_flow_action_handle *action_handle,\n+\t\tconst void *update,\n+\t\tvoid *user_data,\n+\t\tstruct rte_flow_error *error);\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/ethdev/rte_flow_driver.h b/lib/ethdev/rte_flow_driver.h\nindex 332783cf78..d660e29c6a 100644\n--- a/lib/ethdev/rte_flow_driver.h\n+++ b/lib/ethdev/rte_flow_driver.h\n@@ -234,6 +234,32 @@ struct rte_flow_ops {\n \t\t struct rte_flow_q_op_res res[],\n \t\t uint16_t n_res,\n \t\t struct rte_flow_error *error);\n+\t/** See rte_flow_async_action_handle_create() */\n+\tstruct rte_flow_action_handle *(*async_action_handle_create)\n+\t\t(struct rte_eth_dev *dev,\n+\t\t uint32_t queue_id,\n+\t\t const struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t const struct rte_flow_indir_action_conf *indir_action_conf,\n+\t\t const struct rte_flow_action *action,\n+\t\t void *user_data,\n+\t\t struct rte_flow_error *err);\n+\t/** See rte_flow_async_action_handle_destroy() */\n+\tint (*async_action_handle_destroy)\n+\t\t(struct rte_eth_dev *dev,\n+\t\t uint32_t queue_id,\n+\t\t const struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t struct rte_flow_action_handle *action_handle,\n+\t\t void *user_data,\n+\t\t struct rte_flow_error *error);\n+\t/** See rte_flow_async_action_handle_update() */\n+\tint (*async_action_handle_update)\n+\t\t(struct rte_eth_dev *dev,\n+\t\t uint32_t queue_id,\n+\t\t const struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t struct rte_flow_action_handle *action_handle,\n+\t\t const void *update,\n+\t\t void *user_data,\n+\t\t struct rte_flow_error *error);\n };\n \n /**\ndiff --git a/lib/ethdev/version.map b/lib/ethdev/version.map\nindex 13c1a22118..20391ab29e 100644\n--- a/lib/ethdev/version.map\n+++ b/lib/ethdev/version.map\n@@ -276,6 +276,9 @@ EXPERIMENTAL {\n \trte_flow_async_destroy;\n \trte_flow_push;\n \trte_flow_pull;\n+\trte_flow_async_action_handle_create;\n+\trte_flow_async_action_handle_destroy;\n+\trte_flow_async_action_handle_update;\n };\n \n INTERNAL {\n", "prefixes": [ "v8", "04/11" ] }{ "id": 107861, "url": "