get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/107186/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 107186,
    "url": "http://patches.dpdk.org/api/patches/107186/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220209213809.1208269-4-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": "<20220209213809.1208269-4-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220209213809.1208269-4-akozyrev@nvidia.com",
    "date": "2022-02-09T21:38:02",
    "name": "[v4,03/10] ethdev: bring in async queue-based flow rules operations",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f8ce670a579ce51a434668e5630273d0ba4c98ad",
    "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/20220209213809.1208269-4-akozyrev@nvidia.com/mbox/",
    "series": [
        {
            "id": 21577,
            "url": "http://patches.dpdk.org/api/series/21577/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21577",
            "date": "2022-02-09T21:37:59",
            "name": "ethdev: datapath-focused flow rules management",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/21577/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/107186/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/107186/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 AB352A0032;\n\tWed,  9 Feb 2022 22:38:59 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 516614114F;\n\tWed,  9 Feb 2022 22:38:48 +0100 (CET)",
            "from NAM11-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam11on2052.outbound.protection.outlook.com [40.107.223.52])\n by mails.dpdk.org (Postfix) with ESMTP id D540640140\n for <dev@dpdk.org>; Wed,  9 Feb 2022 22:38:46 +0100 (CET)",
            "from CH2PR12MB3896.namprd12.prod.outlook.com (2603:10b6:610:25::14)\n by BYAPR12MB3159.namprd12.prod.outlook.com (2603:10b6:a03:134::15)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.17; Wed, 9 Feb\n 2022 21:38:43 +0000",
            "from BN6PR13CA0057.namprd13.prod.outlook.com (2603:10b6:404:11::19)\n by CH2PR12MB3896.namprd12.prod.outlook.com (2603:10b6:610:25::14)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Wed, 9 Feb\n 2022 21:38:41 +0000",
            "from BN8NAM11FT044.eop-nam11.prod.protection.outlook.com\n (2603:10b6:404:11:cafe::62) by BN6PR13CA0057.outlook.office365.com\n (2603:10b6:404:11::19) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11 via Frontend\n Transport; Wed, 9 Feb 2022 21:38:41 +0000",
            "from mail.nvidia.com (12.22.5.235) by\n BN8NAM11FT044.mail.protection.outlook.com (10.13.177.219) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4975.11 via Frontend Transport; Wed, 9 Feb 2022 21:38:40 +0000",
            "from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com\n (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Wed, 9 Feb 2022 21:38:40 +0000",
            "from pegasus01.mtr.labs.mlnx (10.126.231.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 Wed, 9 Feb 2022 13:38:36 -0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=ZrvkNfrciEwO59SOT1H1/wbetsxZsMVTaqJ6k0vTAMZH9zJfbsUo+kvMhi3aWozMdhwGNMKOBZZwQ3HXUH6Vn1bNGi8JKFRnm/95v6Q/mpX00nyci9Gx/9ToEnYI0oAxh9BAX8eCOKS5vVzpw0menECwU6MVsAYjBJkWv1Eq0MvNZO+Ah81y97F/otCktmLtCPaZiVzUu3gzcGpUbdOh/8Voe392GfjdlroSN9+t5HUAph102CLe7AVBuXQ/qdfvZkr1MW2NkrL5IVj5BcB24CS9LZmjy9kqdHA4kV3vB4Onit7v/wZGxledU4LQ/tpljOiCEU+Xa4bvH1ItfFCKgQ==",
        "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=Uu5MchZux1E8iROMrCTmFQh2WAINStMa9D9YAF5ZWMk=;\n b=SYdBqaZiDigqa7C1TIEYUeUeXfruHpk4rveDcby5jcGSiTkTthMdp3TrgYjbmfVpppan0pN7+168ZFUeK5irZKY2XD7HQn4XxbUzEftHLbDfvdm/xjMLhRy8O2pMCk6ZWFqAcRjqjbCWBZAmJk5KjqwZLbczSupt3fMtypQJD5Y/4b4KKdYKLWt5/9lHJaEWJl3Zf4SilRK0H0y+TlBR0luV80+2LtHy7fxFr8nT36wQkEH4toxEIIvnjfcGSoVQBwtEJ5gA0ccFQc2Xe/QSF7CcXMSvaZoOdyXrNVSoPm1t0aqIwM8JoFp6gtq5PzY/KygGPpSztEprmi72HripoQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 12.22.5.235) 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=Uu5MchZux1E8iROMrCTmFQh2WAINStMa9D9YAF5ZWMk=;\n b=DfMG0+KFHyA/tuD6sSXuRcMXR/5eDMkaf2SQ92Yp3tHGAY24eU7iApRzD7qzzf/kl3RgebeXCdzMDWhNljMzy5lwn/gVzhKA0zQa8rshWycP3YmcJkIcgJdcTO74n8zqK5EZyLsdME6JHpvt0szqC9hfTWWZEV+xj/PzhXU4+RB3ONrijfyZFMljWNi7GcbyWrP5MzenTjzHrbBUnj8527j5NsEEDcE0W5Ugo1LnSn/n0z9WoTmVuslJdxE3n8hW0Ne5YME3NXFQRm7FONFmfve6TuxNOOYzVkf3hbxmRJv5OjmVsToIkV5Oq1tvlz5FH1zu24u8avjO8xLZlwc3Ww==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 12.22.5.235)\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.235 as permitted sender) receiver=protection.outlook.com;\n client-ip=12.22.5.235; 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 v4 03/10] ethdev: bring in async queue-based flow rules\n operations",
        "Date": "Wed, 9 Feb 2022 23:38:02 +0200",
        "Message-ID": "<20220209213809.1208269-4-akozyrev@nvidia.com>",
        "X-Mailer": "git-send-email 2.18.2",
        "In-Reply-To": "<20220209213809.1208269-1-akozyrev@nvidia.com>",
        "References": "<20220206032526.816079-1-akozyrev@nvidia.com >\n <20220209213809.1208269-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\n rnnvmail201.nvidia.com (10.129.68.8)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "a083172a-ab80-4f14-15be-08d9ec148a3a",
        "X-MS-TrafficTypeDiagnostic": "CH2PR12MB3896:EE_|BYAPR12MB3159:EE_",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <CH2PR12MB3896E91774184B7E30C0C294AF2E9@CH2PR12MB3896.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:10000;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n B8r6HfcoCjcFBJZqRYm+Go099e2Wbxv5JDoRnaXobmSrlhnQutkC2iV82gB6rY1iiIj1/dShenveuAk9vYbXtOcuuh5yLEjABHhIgBZwI+yoGkqCyNDxqt9Aq4arD9xMDqKGX9InH9XpHL8O1+/BkrxEnfcQ2gv089VYvOT7Mn/+gIeJ1W7SIVCcJdyTDDx+DNLg1AS3Yy1eF+6flPLBp1aARRbR5IMVsX08eS8B6EAceS4IJk2D3oTKzdtrGXZ5SV7oe7XYQJK0z//b7YuCrCUEi5eGJJeZfuTY66hbigGolTChY2grv+1akzAL7udDCUzLQpbxEmu5S7D73WfBWl0Tm+JK0TVwiB0bi2faO4CizochNUq+3FgziYI2NZQs95FRcDw6DeYP7LFAUFx2UqWE3IAV9pNej4zwLlVbaVUhwb46SUhX5e8xJBavuVjVA7pyXpF7P40gN7DkfTzlSHw4nXdyDqRS1EtI+/49eXixg0UsC8fh2xTHlecv92juyRgYTez1MNFpul07osNGYGv2bXCofup2v5YgchSfSOd1POI3iHtiAsk8BvToIrBk75R8XQxJJI0n4f1lzIkVFnmOfh+h9V0smNhXMlBH0dFrGldZl771gT6atC8dw2TiRlQSM+SJE4Oyt03OdXeIG91ebv0DgQJvEAIcje8JkN++WpQG0+eOTAmFz0TpUexIGUWr5671hFRoMC8RD3Q+i/Ys6lx7TKdp6R3RNcjcHMCNKuZQY3r6G2CLpuXQwyN9I1nzP8nH7c1CGtDS+EYyiY4cOH1M/4lWE3j+1dgGUt6Jc0sm0OxzHz2Qhyaj50Dy",
        "X-Forefront-Antispam-Report": "CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE;\n SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(83380400001)(6666004)(186003)(36756003)(70206006)(70586007)(19273905006)(508600001)(356005)(16526019)(336012)(7416002)(1076003)(426003)(5660300002)(26005)(30864003)(36860700001)(2906002)(8676002)(316002)(82310400004)(4326008)(8936002)(47076005)(54906003)(81166007)(2616005)(6916009)(40460700003)(86362001)(36900700001)(579004)(563064011);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "09 Feb 2022 21:38:40.9699 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n a083172a-ab80-4f14-15be-08d9ec148a3a",
        "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.235];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT044.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BYAPR12MB3159",
        "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": "A new, faster, queue-based flow rules management mechanism is needed for\napplications offloading rules inside the datapath. This asynchronous\nand lockless mechanism frees the CPU for further packet processing and\nreduces the performance impact of the flow rules creation/destruction\non the datapath. Note that queues are not thread-safe and the queue\nshould be accessed from the same thread for all queue operations.\nIt is the responsibility of the app to sync the queue functions in case\nof multi-threaded access to the same queue.\n\nThe rte_flow_q_flow_create() function enqueues a flow creation to the\nrequested queue. It benefits from already configured resources and sets\nunique values on top of item and action templates. A flow rule is enqueued\non the specified flow queue and offloaded asynchronously to the hardware.\nThe function returns immediately to spare CPU for further packet\nprocessing. The application must invoke the rte_flow_q_pull() function\nto complete the flow rule operation offloading, to clear the queue, and to\nreceive the operation status. The rte_flow_q_flow_destroy() function\nenqueues a flow destruction to the requested queue.\n\nSigned-off-by: Alexander Kozyrev <akozyrev@nvidia.com>\nAcked-by: Ori Kam <orika@nvidia.com>\n---\n doc/guides/prog_guide/img/rte_flow_q_init.svg | 205 ++++++++++\n .../prog_guide/img/rte_flow_q_usage.svg       | 351 ++++++++++++++++++\n doc/guides/prog_guide/rte_flow.rst            | 167 ++++++++-\n doc/guides/rel_notes/release_22_03.rst        |   8 +\n lib/ethdev/rte_flow.c                         | 174 ++++++++-\n lib/ethdev/rte_flow.h                         | 334 +++++++++++++++++\n lib/ethdev/rte_flow_driver.h                  |  55 +++\n lib/ethdev/version.map                        |   7 +\n 8 files changed, 1299 insertions(+), 2 deletions(-)\n create mode 100644 doc/guides/prog_guide/img/rte_flow_q_init.svg\n create mode 100644 doc/guides/prog_guide/img/rte_flow_q_usage.svg",
    "diff": "diff --git a/doc/guides/prog_guide/img/rte_flow_q_init.svg b/doc/guides/prog_guide/img/rte_flow_q_init.svg\nnew file mode 100644\nindex 0000000000..96160bde42\n--- /dev/null\n+++ b/doc/guides/prog_guide/img/rte_flow_q_init.svg\n@@ -0,0 +1,205 @@\n+<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n+<!-- SPDX-License-Identifier: BSD-3-Clause -->\n+\n+<!-- Copyright(c) 2022 NVIDIA Corporation & Affiliates -->\n+\n+<svg\n+   width=\"485\"\n+   height=\"535\"\n+   overflow=\"hidden\"\n+   version=\"1.1\"\n+   id=\"svg61\"\n+   sodipodi:docname=\"rte_flow_q_init.svg\"\n+   inkscape:version=\"1.1.1 (3bf5ae0d25, 2021-09-20)\"\n+   xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n+   xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n+   xmlns=\"http://www.w3.org/2000/svg\"\n+   xmlns:svg=\"http://www.w3.org/2000/svg\">\n+  <sodipodi:namedview\n+     id=\"namedview63\"\n+     pagecolor=\"#ffffff\"\n+     bordercolor=\"#666666\"\n+     borderopacity=\"1.0\"\n+     inkscape:pageshadow=\"2\"\n+     inkscape:pageopacity=\"0.0\"\n+     inkscape:pagecheckerboard=\"0\"\n+     showgrid=\"false\"\n+     inkscape:zoom=\"1.517757\"\n+     inkscape:cx=\"242.79249\"\n+     inkscape:cy=\"267.17057\"\n+     inkscape:window-width=\"2400\"\n+     inkscape:window-height=\"1271\"\n+     inkscape:window-x=\"2391\"\n+     inkscape:window-y=\"-9\"\n+     inkscape:window-maximized=\"1\"\n+     inkscape:current-layer=\"g59\" />\n+  <defs\n+     id=\"defs5\">\n+    <clipPath\n+       id=\"clip0\">\n+      <rect\n+         x=\"0\"\n+         y=\"0\"\n+         width=\"485\"\n+         height=\"535\"\n+         id=\"rect2\" />\n+    </clipPath>\n+  </defs>\n+  <g\n+     clip-path=\"url(#clip0)\"\n+     id=\"g59\">\n+    <rect\n+       x=\"0\"\n+       y=\"0\"\n+       width=\"485\"\n+       height=\"535\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect7\" />\n+    <rect\n+       x=\"0.500053\"\n+       y=\"79.5001\"\n+       width=\"482\"\n+       height=\"59\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#A6A6A6\"\n+       id=\"rect9\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"24\"\n+       transform=\"translate(121.6 116)\"\n+       id=\"text13\">\n+         rte_eth_dev_configure\n+         <tspan\n+   font-size=\"24\"\n+   x=\"224.007\"\n+   y=\"0\"\n+   id=\"tspan11\">()</tspan></text>\n+    <rect\n+       x=\"0.500053\"\n+       y=\"158.5\"\n+       width=\"482\"\n+       height=\"59\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect15\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"24\"\n+       transform=\"translate(140.273 195)\"\n+       id=\"text17\">\n+         rte_flow_configure()\n+      </text>\n+    <rect\n+       x=\"0.500053\"\n+       y=\"236.5\"\n+       width=\"482\"\n+       height=\"60\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect19\" />\n+    <text\n+       font-family=\"Calibri, Calibri_MSFontService, sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"24px\"\n+       id=\"text21\"\n+       x=\"63.425903\"\n+       y=\"274\">rte_flow_pattern_template_create()</text>\n+    <rect\n+       x=\"0.500053\"\n+       y=\"316.5\"\n+       width=\"482\"\n+       height=\"59\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect23\" />\n+    <text\n+       font-family=\"Calibri, Calibri_MSFontService, sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"24px\"\n+       id=\"text27\"\n+       x=\"69.379204\"\n+       y=\"353\">rte_flow_actions_template_create()</text>\n+    <rect\n+       x=\"0.500053\"\n+       y=\"0.500053\"\n+       width=\"482\"\n+       height=\"60\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#A6A6A6\"\n+       id=\"rect29\" />\n+    <text\n+       font-family=\"Calibri, Calibri_MSFontService, sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"24px\"\n+       transform=\"translate(177.233,37)\"\n+       id=\"text33\">rte_eal_init()</text>\n+    <path\n+       d=\"M2-1.09108e-05 2.00005 9.2445-1.99995 9.24452-2 1.09108e-05ZM6.00004 7.24448 0.000104987 19.2445-5.99996 7.24455Z\"\n+       transform=\"matrix(-1 0 0 1 241 60)\"\n+       id=\"path35\" />\n+    <path\n+       d=\"M2-1.08133e-05 2.00005 9.41805-1.99995 9.41807-2 1.08133e-05ZM6.00004 7.41802 0.000104987 19.4181-5.99996 7.41809Z\"\n+       transform=\"matrix(-1 0 0 1 241 138)\"\n+       id=\"path37\" />\n+    <path\n+       d=\"M2-1.09108e-05 2.00005 9.2445-1.99995 9.24452-2 1.09108e-05ZM6.00004 7.24448 0.000104987 19.2445-5.99996 7.24455Z\"\n+       transform=\"matrix(-1 0 0 1 241 217)\"\n+       id=\"path39\" />\n+    <rect\n+       x=\"0.500053\"\n+       y=\"395.5\"\n+       width=\"482\"\n+       height=\"59\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect41\" />\n+    <text\n+       font-family=\"Calibri, Calibri_MSFontService, sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"24px\"\n+       id=\"text47\"\n+       x=\"76.988998\"\n+       y=\"432\">rte_flow_template_table_create()</text>\n+    <path\n+       d=\"M2-1.05859e-05 2.00005 9.83526-1.99995 9.83529-2 1.05859e-05ZM6.00004 7.83524 0.000104987 19.8353-5.99996 7.83531Z\"\n+       transform=\"matrix(-1 0 0 1 241 296)\"\n+       id=\"path49\" />\n+    <path\n+       d=\"M243 375 243 384.191 239 384.191 239 375ZM247 382.191 241 394.191 235 382.191Z\"\n+       id=\"path51\" />\n+    <rect\n+       x=\"0.500053\"\n+       y=\"473.5\"\n+       width=\"482\"\n+       height=\"60\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#A6A6A6\"\n+       id=\"rect53\" />\n+    <text\n+       font-family=\"Calibri, Calibri_MSFontService, sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"24px\"\n+       id=\"text55\"\n+       x=\"149.30299\"\n+       y=\"511\">rte_eth_dev_start()</text>\n+    <path\n+       d=\"M245 454 245 463.191 241 463.191 241 454ZM249 461.191 243 473.191 237 461.191Z\"\n+       id=\"path57\" />\n+  </g>\n+</svg>\ndiff --git a/doc/guides/prog_guide/img/rte_flow_q_usage.svg b/doc/guides/prog_guide/img/rte_flow_q_usage.svg\nnew file mode 100644\nindex 0000000000..a1f6c0a0a8\n--- /dev/null\n+++ b/doc/guides/prog_guide/img/rte_flow_q_usage.svg\n@@ -0,0 +1,351 @@\n+<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n+<!-- SPDX-License-Identifier: BSD-3-Clause -->\n+\n+<!-- Copyright(c) 2022 NVIDIA Corporation & Affiliates -->\n+\n+<svg\n+   width=\"880\"\n+   height=\"610\"\n+   overflow=\"hidden\"\n+   version=\"1.1\"\n+   id=\"svg103\"\n+   sodipodi:docname=\"rte_flow_q_usage.svg\"\n+   inkscape:version=\"1.1.1 (3bf5ae0d25, 2021-09-20)\"\n+   xmlns:inkscape=\"http://www.inkscape.org/namespaces/inkscape\"\n+   xmlns:sodipodi=\"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd\"\n+   xmlns=\"http://www.w3.org/2000/svg\"\n+   xmlns:svg=\"http://www.w3.org/2000/svg\">\n+  <sodipodi:namedview\n+     id=\"namedview105\"\n+     pagecolor=\"#ffffff\"\n+     bordercolor=\"#666666\"\n+     borderopacity=\"1.0\"\n+     inkscape:pageshadow=\"2\"\n+     inkscape:pageopacity=\"0.0\"\n+     inkscape:pagecheckerboard=\"0\"\n+     showgrid=\"false\"\n+     inkscape:zoom=\"1.3311475\"\n+     inkscape:cx=\"439.84606\"\n+     inkscape:cy=\"305.37562\"\n+     inkscape:window-width=\"2400\"\n+     inkscape:window-height=\"1271\"\n+     inkscape:window-x=\"2391\"\n+     inkscape:window-y=\"-9\"\n+     inkscape:window-maximized=\"1\"\n+     inkscape:current-layer=\"g101\" />\n+  <defs\n+     id=\"defs5\">\n+    <clipPath\n+       id=\"clip0\">\n+      <rect\n+         x=\"0\"\n+         y=\"0\"\n+         width=\"880\"\n+         height=\"610\"\n+         id=\"rect2\" />\n+    </clipPath>\n+  </defs>\n+  <g\n+     clip-path=\"url(#clip0)\"\n+     id=\"g101\">\n+    <rect\n+       x=\"0\"\n+       y=\"0\"\n+       width=\"880\"\n+       height=\"610\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect7\" />\n+    <rect\n+       x=\"333.5\"\n+       y=\"0.500053\"\n+       width=\"234\"\n+       height=\"45\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#A6A6A6\"\n+       id=\"rect9\" />\n+    <text\n+       font-family=\"Consolas, Consolas_MSFontService, sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19px\"\n+       transform=\"translate(357.196,29)\"\n+       id=\"text11\">rte_eth_rx_burst()</text>\n+    <rect\n+       x=\"333.5\"\n+       y=\"63.5001\"\n+       width=\"234\"\n+       height=\"45\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       id=\"rect13\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(394.666 91)\"\n+       id=\"text17\">analyze <tspan\n+   font-size=\"19\"\n+   x=\"60.9267\"\n+   y=\"0\"\n+   id=\"tspan15\">packet </tspan></text>\n+    <rect\n+       x=\"572.5\"\n+       y=\"279.5\"\n+       width=\"234\"\n+       height=\"46\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect19\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(591.429 308)\"\n+       id=\"text21\">rte_flow_q_flow_create()</text>\n+    <path\n+       d=\"M333.5 384 450.5 350.5 567.5 384 450.5 417.5Z\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       fill-rule=\"evenodd\"\n+       id=\"path23\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(430.069 378)\"\n+       id=\"text27\">more <tspan\n+   font-size=\"19\"\n+   x=\"-12.94\"\n+   y=\"23\"\n+   id=\"tspan25\">packets?</tspan></text>\n+    <path\n+       d=\"M689.249 325.5 689.249 338.402 450.5 338.402 450.833 338.069 450.833 343.971 450.167 343.971 450.167 337.735 688.916 337.735 688.582 338.069 688.582 325.5ZM454.5 342.638 450.5 350.638 446.5 342.638Z\"\n+       id=\"path29\" />\n+    <path\n+       d=\"M450.833 45.5 450.833 56.8197 450.167 56.8197 450.167 45.5001ZM454.5 55.4864 450.5 63.4864 446.5 55.4864Z\"\n+       id=\"path31\" />\n+    <path\n+       d=\"M450.833 108.5 450.833 120.375 450.167 120.375 450.167 108.5ZM454.5 119.041 450.5 127.041 446.5 119.041Z\"\n+       id=\"path33\" />\n+    <path\n+       d=\"M451.833 507.5 451.833 533.61 451.167 533.61 451.167 507.5ZM455.5 532.277 451.5 540.277 447.5 532.277Z\"\n+       id=\"path35\" />\n+    <path\n+       d=\"M0 0.333333-23.9993 0.333333-23.666 0-23.666 141.649-23.9993 141.316 562.966 141.316 562.633 141.649 562.633 124.315 563.299 124.315 563.299 141.983-24.3327 141.983-24.3327-0.333333 0-0.333333ZM558.966 125.649 562.966 117.649 566.966 125.649Z\"\n+       transform=\"matrix(-6.12323e-17 -1 -1 6.12323e-17 451.149 585.466)\"\n+       id=\"path37\" />\n+    <path\n+       d=\"M333.5 160.5 450.5 126.5 567.5 160.5 450.5 194.5Z\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       fill-rule=\"evenodd\"\n+       id=\"path39\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(417.576 155)\"\n+       id=\"text43\">add new <tspan\n+   font-size=\"19\"\n+   x=\"13.2867\"\n+   y=\"23\"\n+   id=\"tspan41\">rule?</tspan></text>\n+    <path\n+       d=\"M567.5 160.167 689.267 160.167 689.267 273.228 688.6 273.228 688.6 160.5 688.933 160.833 567.5 160.833ZM692.933 271.894 688.933 279.894 684.933 271.894Z\"\n+       id=\"path45\" />\n+    <rect\n+       x=\"602.5\"\n+       y=\"127.5\"\n+       width=\"46\"\n+       height=\"30\"\n+       stroke=\"#000000\"\n+       stroke-width=\"0.666667\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       id=\"rect47\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(611.34 148)\"\n+       id=\"text49\">yes</text>\n+    <rect\n+       x=\"254.5\"\n+       y=\"126.5\"\n+       width=\"46\"\n+       height=\"31\"\n+       stroke=\"#000000\"\n+       stroke-width=\"0.666667\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       id=\"rect51\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(267.182 147)\"\n+       id=\"text53\">no</text>\n+    <path\n+       d=\"M0-0.333333 251.563-0.333333 251.563 298.328 8.00002 298.328 8.00002 297.662 251.229 297.662 250.896 297.995 250.896 0 251.229 0.333333 0 0.333333ZM9.33333 301.995 1.33333 297.995 9.33333 293.995Z\"\n+       transform=\"matrix(1 0 0 -1 567.5 383.495)\"\n+       id=\"path55\" />\n+    <path\n+       d=\"M86.5001 213.5 203.5 180.5 320.5 213.5 203.5 246.5Z\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       fill-rule=\"evenodd\"\n+       id=\"path57\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(159.155 208)\"\n+       id=\"text61\">destroy the <tspan\n+   font-size=\"19\"\n+   x=\"24.0333\"\n+   y=\"23\"\n+   id=\"tspan59\">rule?</tspan></text>\n+    <path\n+       d=\"M0-0.333333 131.029-0.333333 131.029 12.9778 130.363 12.9778 130.363 0 130.696 0.333333 0 0.333333ZM134.696 11.6445 130.696 19.6445 126.696 11.6445Z\"\n+       transform=\"matrix(-1 1.22465e-16 1.22465e-16 1 334.196 160.5)\"\n+       id=\"path63\" />\n+    <rect\n+       x=\"81.5001\"\n+       y=\"280.5\"\n+       width=\"234\"\n+       height=\"45\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect65\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(96.2282 308)\"\n+       id=\"text67\">rte_flow_q_flow_destroy()</text>\n+    <path\n+       d=\"M0 0.333333-24.0001 0.333333-23.6667 0-23.6667 49.9498-24.0001 49.6165 121.748 49.6165 121.748 59.958 121.082 59.958 121.082 49.9498 121.415 50.2832-24.3334 50.2832-24.3334-0.333333 0-0.333333ZM125.415 58.6247 121.415 66.6247 117.415 58.6247Z\"\n+       transform=\"matrix(-1 0 0 1 319.915 213.5)\"\n+       id=\"path69\" />\n+    <path\n+       d=\"M86.5001 213.833 62.5002 213.833 62.8335 213.5 62.8335 383.95 62.5002 383.617 327.511 383.617 327.511 384.283 62.1668 384.283 62.1668 213.167 86.5001 213.167ZM326.178 379.95 334.178 383.95 326.178 387.95Z\"\n+       id=\"path71\" />\n+    <path\n+       d=\"M0-0.333333 12.8273-0.333333 12.8273 252.111 12.494 251.778 18.321 251.778 18.321 252.445 12.1607 252.445 12.1607 0 12.494 0.333333 0 0.333333ZM16.9877 248.111 24.9877 252.111 16.9877 256.111Z\"\n+       transform=\"matrix(1.83697e-16 1 1 -1.83697e-16 198.5 325.5)\"\n+       id=\"path73\" />\n+    <rect\n+       x=\"334.5\"\n+       y=\"540.5\"\n+       width=\"234\"\n+       height=\"45\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect75\" />\n+    <text\n+       font-family=\"Calibri, Calibri_MSFontService, sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19px\"\n+       id=\"text77\"\n+       x=\"385.08301\"\n+       y=\"569\">rte_flow_q_pull()</text>\n+    <rect\n+       x=\"334.5\"\n+       y=\"462.5\"\n+       width=\"234\"\n+       height=\"45\"\n+       stroke=\"#000000\"\n+       stroke-width=\"1.33333\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#FFFFFF\"\n+       id=\"rect79\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(379.19 491)\"\n+       id=\"text81\">rte_flow_q_push()</text>\n+    <path\n+       d=\"M450.833 417.495 451.402 455.999 450.735 456.008 450.167 417.505ZM455.048 454.611 451.167 462.669 447.049 454.729Z\"\n+       id=\"path83\" />\n+    <rect\n+       x=\"0.500053\"\n+       y=\"287.5\"\n+       width=\"46\"\n+       height=\"30\"\n+       stroke=\"#000000\"\n+       stroke-width=\"0.666667\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       id=\"rect85\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(12.8617 308)\"\n+       id=\"text87\">no</text>\n+    <rect\n+       x=\"357.5\"\n+       y=\"223.5\"\n+       width=\"47\"\n+       height=\"31\"\n+       stroke=\"#000000\"\n+       stroke-width=\"0.666667\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       id=\"rect89\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(367.001 244)\"\n+       id=\"text91\">yes</text>\n+    <rect\n+       x=\"469.5\"\n+       y=\"421.5\"\n+       width=\"46\"\n+       height=\"30\"\n+       stroke=\"#000000\"\n+       stroke-width=\"0.666667\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       id=\"rect93\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(481.872 442)\"\n+       id=\"text95\">no</text>\n+    <rect\n+       x=\"832.5\"\n+       y=\"223.5\"\n+       width=\"46\"\n+       height=\"31\"\n+       stroke=\"#000000\"\n+       stroke-width=\"0.666667\"\n+       stroke-miterlimit=\"8\"\n+       fill=\"#D9D9D9\"\n+       id=\"rect97\" />\n+    <text\n+       font-family=\"Calibri,Calibri_MSFontService,sans-serif\"\n+       font-weight=\"400\"\n+       font-size=\"19\"\n+       transform=\"translate(841.777 244)\"\n+       id=\"text99\">yes</text>\n+  </g>\n+</svg>\ndiff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex 5391648833..964c104ed3 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -3607,12 +3607,16 @@ Expected number of counters or meters in an application, for example,\n allow PMD to prepare and optimize NIC memory layout in advance.\n ``rte_flow_configure()`` must be called before any flow rule is created,\n but after an Ethernet device is configured.\n+It also creates flow queues for asynchronous flow rules operations via\n+queue-based API, see `Asynchronous operations`_ section.\n \n .. code-block:: c\n \n    int\n    rte_flow_configure(uint16_t port_id,\n                      const struct rte_flow_port_attr *port_attr,\n+                     uint16_t nb_queue,\n+                     const struct rte_flow_queue_attr *queue_attr[],\n                      struct rte_flow_error *error);\n \n Information about resources that can benefit from pre-allocation can be\n@@ -3737,7 +3741,7 @@ and pattern and actions templates are created.\n \n .. code-block:: c\n \n-\trte_flow_configure(port, *port_attr, *error);\n+\trte_flow_configure(port, *port_attr, nb_queue, *queue_attr, *error);\n \n \tstruct rte_flow_pattern_template *pattern_templates[0] =\n \t\trte_flow_pattern_template_create(port, &itr, &pattern, &error);\n@@ -3750,6 +3754,167 @@ and pattern and actions templates are created.\n \t\t\t\t*actions_templates, nb_actions_templates,\n \t\t\t\t*error);\n \n+Asynchronous operations\n+-----------------------\n+\n+Flow rules management can be done via special lockless flow management queues.\n+- Queue operations are asynchronous and not thread-safe.\n+\n+- Operations can thus be invoked by the app's datapath,\n+packet processing can continue while queue operations are processed by NIC.\n+\n+- The queue number is configured at initialization stage.\n+\n+- Available operation types: rule creation, rule destruction,\n+indirect rule creation, indirect rule destruction, indirect rule update.\n+\n+- Operations may be reordered within a queue.\n+\n+- Operations can be postponed and pushed to NIC in batches.\n+\n+- Results pulling must be done on time to avoid queue overflows.\n+\n+- User data is returned as part of the result to identify an operation.\n+\n+- Flow handle is valid once the creation operation is enqueued and must be\n+destroyed even if the operation is not successful and the rule is not inserted.\n+\n+The asynchronous flow rule insertion logic can be broken into two phases.\n+\n+1. Initialization stage as shown here:\n+\n+.. _figure_rte_flow_q_init:\n+\n+.. figure:: img/rte_flow_q_init.*\n+\n+2. Main loop as presented on a datapath application example:\n+\n+.. _figure_rte_flow_q_usage:\n+\n+.. figure:: img/rte_flow_q_usage.*\n+\n+Enqueue creation operation\n+~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Enqueueing a flow rule creation operation is similar to simple creation.\n+\n+.. code-block:: c\n+\n+\tstruct rte_flow *\n+\trte_flow_q_flow_create(uint16_t port_id,\n+\t\t\t\tuint32_t queue_id,\n+\t\t\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t\t\tstruct rte_flow_template_table *template_table,\n+\t\t\t\tconst struct rte_flow_item pattern[],\n+\t\t\t\tuint8_t pattern_template_index,\n+\t\t\t\tconst struct rte_flow_action actions[],\n+\t\t\t\tuint8_t actions_template_index,\n+\t\t\t\tstruct rte_flow_error *error);\n+\n+A valid handle in case of success is returned. It must be destroyed later\n+by calling ``rte_flow_q_flow_destroy()`` even if the rule is rejected by HW.\n+\n+Enqueue destruction operation\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Enqueueing a flow rule destruction operation is similar to simple destruction.\n+\n+.. code-block:: c\n+\n+\tint\n+\trte_flow_q_flow_destroy(uint16_t port_id,\n+\t\t\t\tuint32_t queue_id,\n+\t\t\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t\t\tstruct rte_flow *flow,\n+\t\t\t\tstruct rte_flow_error *error);\n+\n+Push enqueued operations\n+~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Pushing all internally stored rules from a queue to the NIC.\n+\n+.. code-block:: c\n+\n+\tint\n+\trte_flow_q_push(uint16_t port_id,\n+\t\t\tuint32_t queue_id,\n+\t\t\tstruct rte_flow_error *error);\n+\n+There is the postpone attribute in the queue operation attributes.\n+When it is set, multiple operations can be bulked together and not sent to HW\n+right away to save SW/HW interactions and prioritize throughput over latency.\n+The application must invoke this function to actually push all outstanding\n+operations to HW in this case.\n+\n+Pull enqueued operations\n+~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+Pulling asynchronous operations results.\n+\n+The application must invoke this function in order to complete asynchronous\n+flow rule operations and to receive flow rule operations statuses.\n+\n+.. code-block:: c\n+\n+\tint\n+\trte_flow_q_pull(uint16_t port_id,\n+\t\t\tuint32_t queue_id,\n+\t\t\tstruct rte_flow_q_op_res res[],\n+\t\t\tuint16_t n_res,\n+\t\t\tstruct rte_flow_error *error);\n+\n+Multiple outstanding operation results can be pulled simultaneously.\n+User data may be provided during a flow creation/destruction in order\n+to distinguish between multiple operations. User data is returned as part\n+of the result to provide a method to detect which operation is completed.\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_q_action_handle_create(uint16_t port_id,\n+\t\t\tuint32_t queue_id,\n+\t\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t\tconst struct rte_flow_indir_action_conf *indir_action_conf,\n+\t\t\tconst struct rte_flow_action *action,\n+\t\t\tstruct rte_flow_error *error);\n+\n+A valid handle in case of success is returned. It must be destroyed later by\n+calling ``rte_flow_q_action_handle_destroy()`` even if the rule is 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_q_action_handle_destroy(uint16_t port_id,\n+\t\t\tuint32_t queue_id,\n+\t\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t\tstruct rte_flow_action_handle *action_handle,\n+\t\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_q_action_handle_update(uint16_t port_id,\n+\t\t\tuint32_t queue_id,\n+\t\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t\tstruct rte_flow_action_handle *action_handle,\n+\t\t\tconst void *update,\n+\t\t\tstruct rte_flow_error *error);\n+\n .. _flow_isolated_mode:\n \n Flow isolated mode\ndiff --git a/doc/guides/rel_notes/release_22_03.rst b/doc/guides/rel_notes/release_22_03.rst\nindex 6656b35295..b4e18836ea 100644\n--- a/doc/guides/rel_notes/release_22_03.rst\n+++ b/doc/guides/rel_notes/release_22_03.rst\n@@ -83,6 +83,14 @@ New Features\n     ``rte_flow_template_table_destroy``, ``rte_flow_pattern_template_destroy``\n     and ``rte_flow_actions_template_destroy``.\n \n+  * ethdev: Added ``rte_flow_q_flow_create`` and ``rte_flow_q_flow_destroy``\n+    API to enqueue flow creaion/destruction operations asynchronously as well\n+\tas ``rte_flow_q_pull`` to poll and retrieve results of these operations\n+\tand ``rte_flow_q_push`` to push all the in-flight operations to the NIC.\n+    Introduced asynchronous API for indirect actions management as well:\n+    ``rte_flow_q_action_handle_create``, ``rte_flow_q_action_handle_destroy``\n+\tand ``rte_flow_q_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 b53f8c9b89..bf1d3d2062 100644\n--- a/lib/ethdev/rte_flow.c\n+++ b/lib/ethdev/rte_flow.c\n@@ -1415,6 +1415,8 @@ rte_flow_info_get(uint16_t port_id,\n int\n rte_flow_configure(uint16_t port_id,\n \t\t   const struct rte_flow_port_attr *port_attr,\n+\t\t   uint16_t nb_queue,\n+\t\t   const struct rte_flow_queue_attr *queue_attr[],\n \t\t   struct rte_flow_error *error)\n {\n \tstruct rte_eth_dev *dev = &rte_eth_devices[port_id];\n@@ -1424,7 +1426,7 @@ rte_flow_configure(uint16_t port_id,\n \t\treturn -rte_errno;\n \tif (likely(!!ops->configure)) {\n \t\treturn flow_err(port_id,\n-\t\t\t\tops->configure(dev, port_attr, error),\n+\t\t\t\tops->configure(dev, port_attr, nb_queue, queue_attr, error),\n \t\t\t\terror);\n \t}\n \treturn rte_flow_error_set(error, ENOTSUP,\n@@ -1578,3 +1580,173 @@ rte_flow_template_table_destroy(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 *\n+rte_flow_q_flow_create(uint16_t port_id,\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_template_table *template_table,\n+\t\t       const struct rte_flow_item pattern[],\n+\t\t       uint8_t pattern_template_index,\n+\t\t       const struct rte_flow_action actions[],\n+\t\t       uint8_t actions_template_index,\n+\t\t       struct 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 *flow;\n+\n+\tif (unlikely(!ops))\n+\t\treturn NULL;\n+\tif (likely(!!ops->q_flow_create)) {\n+\t\tflow = ops->q_flow_create(dev, queue_id,\n+\t\t\t\t\t  q_ops_attr, template_table,\n+\t\t\t\t\t  pattern, pattern_template_index,\n+\t\t\t\t\t  actions, actions_template_index,\n+\t\t\t\t\t  error);\n+\t\tif (flow == NULL)\n+\t\t\tflow_err(port_id, -rte_errno, error);\n+\t\treturn flow;\n+\t}\n+\trte_flow_error_set(error, ENOTSUP,\n+\t\t\t   RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t   NULL, rte_strerror(ENOTSUP));\n+\treturn NULL;\n+}\n+\n+int\n+rte_flow_q_flow_destroy(uint16_t port_id,\n+\t\t\tuint32_t queue_id,\n+\t\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t\tstruct rte_flow *flow,\n+\t\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+\n+\tif (unlikely(!ops))\n+\t\treturn -rte_errno;\n+\tif (likely(!!ops->q_flow_destroy)) {\n+\t\treturn flow_err(port_id,\n+\t\t\t\tops->q_flow_destroy(dev, queue_id,\n+\t\t\t\t\t\t    q_ops_attr, flow, error),\n+\t\t\t\terror);\n+\t}\n+\treturn rte_flow_error_set(error, ENOTSUP,\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_q_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\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->q_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->q_action_handle_create(dev, queue_id, q_ops_attr,\n+\t\t\t\t\t     indir_action_conf, action, error);\n+\tif (handle == NULL)\n+\t\tflow_err(port_id, -rte_errno, error);\n+\treturn handle;\n+}\n+\n+int\n+rte_flow_q_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\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->q_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->q_action_handle_destroy(dev, queue_id, q_ops_attr,\n+\t\t\t\t\t   action_handle, error);\n+\treturn flow_err(port_id, ret, error);\n+}\n+\n+int\n+rte_flow_q_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\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->q_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->q_action_handle_update(dev, queue_id, q_ops_attr,\n+\t\t\t\t\t  action_handle, update, error);\n+\treturn flow_err(port_id, ret, error);\n+}\n+\n+int\n+rte_flow_q_push(uint16_t port_id,\n+\t\tuint32_t queue_id,\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+\n+\tif (unlikely(!ops))\n+\t\treturn -rte_errno;\n+\tif (likely(!!ops->q_push)) {\n+\t\treturn flow_err(port_id,\n+\t\t\t\tops->q_push(dev, queue_id, error),\n+\t\t\t\terror);\n+\t}\n+\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t  RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t  NULL, rte_strerror(ENOTSUP));\n+}\n+\n+int\n+rte_flow_q_pull(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tstruct rte_flow_q_op_res res[],\n+\t\tuint16_t n_res,\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 (likely(!!ops->q_pull)) {\n+\t\tret = ops->q_pull(dev, queue_id, res, n_res, error);\n+\t\treturn ret ? ret : flow_err(port_id, ret, error);\n+\t}\n+\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t  RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t  NULL, rte_strerror(ENOTSUP));\n+}\ndiff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h\nindex e87db5a540..b0d4f33bfd 100644\n--- a/lib/ethdev/rte_flow.h\n+++ b/lib/ethdev/rte_flow.h\n@@ -4862,6 +4862,10 @@ rte_flow_flex_item_release(uint16_t port_id,\n  *\n  */\n struct rte_flow_port_info {\n+\t/**\n+\t * Number of queues for asynchronous operations.\n+\t */\n+\tuint32_t nb_queues;\n \t/**\n \t * Number of pre-configurable counter actions.\n \t * @see RTE_FLOW_ACTION_TYPE_COUNT\n@@ -4879,6 +4883,17 @@ struct rte_flow_port_info {\n \tuint32_t nb_meters;\n };\n \n+/**\n+ * Flow engine queue configuration.\n+ */\n+__extension__\n+struct rte_flow_queue_attr {\n+\t/**\n+\t * Number of flow rule operations a queue can hold.\n+\t */\n+\tuint32_t size;\n+};\n+\n /**\n  * @warning\n  * @b EXPERIMENTAL: this API may change without prior notice.\n@@ -4948,6 +4963,11 @@ struct rte_flow_port_attr {\n  *   Port identifier of Ethernet device.\n  * @param[in] port_attr\n  *   Port configuration attributes.\n+ * @param[in] nb_queue\n+ *   Number of flow queues to be configured.\n+ * @param[in] queue_attr\n+ *   Array that holds attributes for each flow queue.\n+ *   Number of elements is set in @p port_attr.nb_queues.\n  * @param[out] error\n  *   Perform verbose error reporting if not NULL.\n  *   PMDs initialize this structure in case of error only.\n@@ -4959,6 +4979,8 @@ __rte_experimental\n int\n rte_flow_configure(uint16_t port_id,\n \t\t   const struct rte_flow_port_attr *port_attr,\n+\t\t   uint16_t nb_queue,\n+\t\t   const struct rte_flow_queue_attr *queue_attr[],\n \t\t   struct rte_flow_error *error);\n \n /**\n@@ -5221,6 +5243,318 @@ rte_flow_template_table_destroy(uint16_t port_id,\n \t\tstruct rte_flow_template_table *template_table,\n \t\tstruct rte_flow_error *error);\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Queue operation attributes.\n+ */\n+struct rte_flow_q_ops_attr {\n+\t/**\n+\t * The user data that will be returned on the completion events.\n+\t */\n+\tvoid *user_data;\n+\t /**\n+\t  * When set, the requested action will not be sent to the HW immediately.\n+\t  * The application must call the rte_flow_queue_push to actually send it.\n+\t  */\n+\tuint32_t postpone:1;\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enqueue rule creation operation.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param queue_id\n+ *   Flow queue used to insert the rule.\n+ * @param[in] q_ops_attr\n+ *   Rule creation operation attributes.\n+ * @param[in] template_table\n+ *   Template table to select templates from.\n+ * @param[in] pattern\n+ *   List of pattern items to be used.\n+ *   The list order should match the order in the pattern template.\n+ *   The spec is the only relevant member of the item that is being used.\n+ * @param[in] pattern_template_index\n+ *   Pattern template index in the table.\n+ * @param[in] actions\n+ *   List of actions to be used.\n+ *   The list order should match the order in the actions template.\n+ * @param[in] actions_template_index\n+ *   Actions template index in the table.\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+ *   Handle on success, NULL otherwise and rte_errno is set.\n+ *   The rule handle doesn't mean that the rule was offloaded.\n+ *   Only completion result indicates that the rule was offloaded.\n+ */\n+__rte_experimental\n+struct rte_flow *\n+rte_flow_q_flow_create(uint16_t port_id,\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_template_table *template_table,\n+\t\t       const struct rte_flow_item pattern[],\n+\t\t       uint8_t pattern_template_index,\n+\t\t       const struct rte_flow_action actions[],\n+\t\t       uint8_t actions_template_index,\n+\t\t       struct rte_flow_error *error);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Enqueue rule destruction operation.\n+ *\n+ * This function enqueues a destruction operation on the queue.\n+ * Application should assume that after calling this function\n+ * the rule handle is not valid anymore.\n+ * Completion indicates the full removal of the rule from the HW.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param queue_id\n+ *   Flow queue which is used to destroy the rule.\n+ *   This must match the queue on which the rule was created.\n+ * @param[in] q_ops_attr\n+ *   Rule destroy operation attributes.\n+ * @param[in] flow\n+ *   Flow handle to be destroyed.\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 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+__rte_experimental\n+int\n+rte_flow_q_flow_destroy(uint16_t port_id,\n+\t\t\tuint32_t queue_id,\n+\t\t\tconst struct rte_flow_q_ops_attr *q_ops_attr,\n+\t\t\tstruct rte_flow *flow,\n+\t\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 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[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+ */\n+__rte_experimental\n+struct rte_flow_action_handle *\n+rte_flow_q_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\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[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+ */\n+__rte_experimental\n+int\n+rte_flow_q_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\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[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+ */\n+__rte_experimental\n+int\n+rte_flow_q_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\tstruct rte_flow_error *error);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Push all internally stored rules to the HW.\n+ * Postponed rules are rules that were inserted with the postpone flag set.\n+ * Can be used to notify the HW about batch of rules prepared by the SW to\n+ * reduce the number of communications between the HW and SW.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param queue_id\n+ *   Flow queue to be pushed.\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 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+__rte_experimental\n+int\n+rte_flow_q_push(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tstruct rte_flow_error *error);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Queue operation status.\n+ */\n+enum rte_flow_q_op_status {\n+\t/**\n+\t * The operation was completed successfully.\n+\t */\n+\tRTE_FLOW_Q_OP_SUCCESS,\n+\t/**\n+\t * The operation was not completed successfully.\n+\t */\n+\tRTE_FLOW_Q_OP_ERROR,\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Queue operation results.\n+ */\n+__extension__\n+struct rte_flow_q_op_res {\n+\t/**\n+\t * Returns the status of the operation that this completion signals.\n+\t */\n+\tenum rte_flow_q_op_status status;\n+\t/**\n+\t * The user data that will be returned on the completion events.\n+\t */\n+\tvoid *user_data;\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Pull a rte flow operation.\n+ * The application must invoke this function in order to complete\n+ * the flow rule offloading and to retrieve the flow rule operation status.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param queue_id\n+ *   Flow queue which is used to pull the operation.\n+ * @param[out] res\n+ *   Array of results that will be set.\n+ * @param[in] n_res\n+ *   Maximum number of results that can be returned.\n+ *   This value is equal to the size of the res array.\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+ *   Number of results that were pulled,\n+ *   a negative errno value otherwise and rte_errno is set.\n+ */\n+__rte_experimental\n+int\n+rte_flow_q_pull(uint16_t port_id,\n+\t\tuint32_t queue_id,\n+\t\tstruct rte_flow_q_op_res res[],\n+\t\tuint16_t n_res,\n+\t\tstruct rte_flow_error *error);\n+\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/ethdev/rte_flow_driver.h b/lib/ethdev/rte_flow_driver.h\nindex 2d96db1dc7..33dc57a15e 100644\n--- a/lib/ethdev/rte_flow_driver.h\n+++ b/lib/ethdev/rte_flow_driver.h\n@@ -161,6 +161,8 @@ struct rte_flow_ops {\n \tint (*configure)\n \t\t(struct rte_eth_dev *dev,\n \t\t const struct rte_flow_port_attr *port_attr,\n+\t\t uint16_t nb_queue,\n+\t\t const struct rte_flow_queue_attr *queue_attr[],\n \t\t struct rte_flow_error *err);\n \t/** See rte_flow_pattern_template_create() */\n \tstruct rte_flow_pattern_template *(*pattern_template_create)\n@@ -199,6 +201,59 @@ struct rte_flow_ops {\n \t\t(struct rte_eth_dev *dev,\n \t\t struct rte_flow_template_table *template_table,\n \t\t struct rte_flow_error *err);\n+\t/** See rte_flow_q_flow_create() */\n+\tstruct rte_flow *(*q_flow_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 struct rte_flow_template_table *template_table,\n+\t\t const struct rte_flow_item pattern[],\n+\t\t uint8_t pattern_template_index,\n+\t\t const struct rte_flow_action actions[],\n+\t\t uint8_t actions_template_index,\n+\t\t struct rte_flow_error *err);\n+\t/** See rte_flow_q_flow_destroy() */\n+\tint (*q_flow_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 *flow,\n+\t\t struct rte_flow_error *err);\n+\t/** See rte_flow_q_action_handle_create() */\n+\tstruct rte_flow_action_handle *(*q_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 struct rte_flow_error *err);\n+\t/** See rte_flow_q_action_handle_destroy() */\n+\tint (*q_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 struct rte_flow_error *error);\n+\t/** See rte_flow_q_action_handle_update() */\n+\tint (*q_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 struct rte_flow_error *error);\n+\t/** See rte_flow_q_push() */\n+\tint (*q_push)\n+\t\t(struct rte_eth_dev *dev,\n+\t\t uint32_t queue_id,\n+\t\t struct rte_flow_error *err);\n+\t/** See rte_flow_q_pull() */\n+\tint (*q_pull)\n+\t\t(struct rte_eth_dev *dev,\n+\t\t uint32_t queue_id,\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 };\n \n /**\ndiff --git a/lib/ethdev/version.map b/lib/ethdev/version.map\nindex 5fd2108895..46a4151053 100644\n--- a/lib/ethdev/version.map\n+++ b/lib/ethdev/version.map\n@@ -268,6 +268,13 @@ EXPERIMENTAL {\n \trte_flow_actions_template_destroy;\n \trte_flow_template_table_create;\n \trte_flow_template_table_destroy;\n+\trte_flow_q_flow_create;\n+\trte_flow_q_flow_destroy;\n+\trte_flow_q_action_handle_create;\n+\trte_flow_q_action_handle_destroy;\n+\trte_flow_q_action_handle_update;\n+\trte_flow_q_push;\n+\trte_flow_q_pull;\n };\n \n INTERNAL {\n",
    "prefixes": [
        "v4",
        "03/10"
    ]
}