get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 107193,
    "url": "http://patches.dpdk.org/api/patches/107193/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220209213809.1208269-11-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-11-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220209213809.1208269-11-akozyrev@nvidia.com",
    "date": "2022-02-09T21:38:09",
    "name": "[v4,10/10] app/testpmd: implement rte flow queue indirect actions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "066b90f2a7614a7f403e076030dd0294e649baf8",
    "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-11-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/107193/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/107193/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 448E4A0032;\n\tWed,  9 Feb 2022 22:39:46 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EF04041168;\n\tWed,  9 Feb 2022 22:39:08 +0100 (CET)",
            "from NAM10-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam10on2056.outbound.protection.outlook.com [40.107.93.56])\n by mails.dpdk.org (Postfix) with ESMTP id DCF8F41163\n for <dev@dpdk.org>; Wed,  9 Feb 2022 22:39:06 +0100 (CET)",
            "from DM4PR12MB5327.namprd12.prod.outlook.com (2603:10b6:5:39e::21)\n by DM6PR12MB4108.namprd12.prod.outlook.com (2603:10b6:5:220::18) with\n 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:39:05 +0000",
            "from BN0PR03CA0048.namprd03.prod.outlook.com (2603:10b6:408:e7::23)\n by DM4PR12MB5327.namprd12.prod.outlook.com (2603:10b6:5:39e::21) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Wed, 9 Feb\n 2022 21:39:03 +0000",
            "from BN8NAM11FT050.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:e7:cafe::8b) by BN0PR03CA0048.outlook.office365.com\n (2603:10b6:408:e7::23) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12 via Frontend\n Transport; Wed, 9 Feb 2022 21:39:03 +0000",
            "from mail.nvidia.com (12.22.5.235) by\n BN8NAM11FT050.mail.protection.outlook.com (10.13.177.5) 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:39:03 +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:39:02 +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:59 -0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=CMF93j2D+m4iOKMt7M3sJmclAD8Wgn3qSIPzCvJm8QnSyt93ArCLx9OqHhlo4Zk4LQmsAvFDauDINQg+NkxJhtLuhBQ+cU8iuxg55yNu7rDT1H27Wby9aH2ZyHyDZO6Gl75zTgIoNqoARSNfS2rBSiF8QIjNBe0ew6OUj7nnocBdyyzo7hGlc1Z5XrnBgJo9QVoevB//4hbd0ZWz1Nv1uk1PEFwCILmPPoRfl744KHcFrp3zO+LSqlm4/6dFMSeJGj53n3MU26JhV3lh6zfTqqqX+uRVDWnvL8wRnFnnmotad2RKwuWLUc7+c9GeAkNy6onOncbmGgrXF7R86MAHBw==",
        "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=zF3zeA5GgLMdxWw8tZ6psssPlRLqC1sdhGtnseDqCZA=;\n b=JbbdVipJcl2U8qf7fBs0nh/8gFe9efxGS7gYxOPHfVUgCuUmeW2gAhkVU2Daf2mNVt2E13dAQzg8bSPcb++62e70QL5qDPUt6F7cYuo8c0+0ltR4tdUWW4wxKFcP6ReVhoaPWXLjFHvvp7kHpoPkmqVWg/B8bokDDP8ipTey38XPoUuqTuNNK3yl/wvWoT0BQAbr/4ISaEXb/KNOaZK8CqAI8sOi9mDCVasVodpCq4Xq5lkezKakA5HH7IKcizY2AX1BGRjF0NTTIh7B3DqnrMAUSGb8z6gLbkVgphx4xInuDDPzTtCDrcrWRkYomMd74oPG2s2aB3fXDc4VTzS83g==",
        "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=zF3zeA5GgLMdxWw8tZ6psssPlRLqC1sdhGtnseDqCZA=;\n b=kmWed0s0fb4jmxN6gnaR1+/x+bnqJBNu8OD3xhvpYwgEgtmvSI5EkI5XNKfhXtZRRjDoj8W0AOtr2sAqdulWdWpDBzMoyr37vgtpAv3+AAmQQ71ATn4iLIrPMBzrmKiR1n2eGQFhCbA2m/7vnmM5m9X1RxKeVIMxAYiDN3aJp9H+ouqElfiQzczxwj7tFKC/q/M/quV13/fAZXExOb/rH4YXC0ORYv7ChY92HWUuQFyx7dOZizY3f+qAZ73bcTD/j0MBcjpAX5F0bPKsTRVuzlj4dT73EKigSVjeFPp2bwJFNELaVdPluG77fxzaiW3gf1DJEJXl158Ia25G0a55qQ==",
        "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 10/10] app/testpmd: implement rte flow queue indirect\n actions",
        "Date": "Wed, 9 Feb 2022 23:38:09 +0200",
        "Message-ID": "<20220209213809.1208269-11-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": "775923a9-5a36-49cc-5be3-08d9ec149764",
        "X-MS-TrafficTypeDiagnostic": "DM4PR12MB5327:EE_|DM6PR12MB4108:EE_",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <DM4PR12MB5327ED5588B0AFB226999EEEAF2E9@DM4PR12MB5327.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:4502;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n V76F3h0wX9kbQb2qj8tchex563D2DYPhup8Hf+KAGyXhP7Ev1E8N6wBK9j0bO+NXD8Idxgz1mMvkMoL861kiZmzwnTBf6YpZljkyvVnx3tVw/LU4uDlM8s6yrNiKL7MSiy3h4boOKKKzE7RdMbkJBFsENTNrhW6xJD4G22+FmGYOjugQTTQwzZZ4HVxkyeNyOB5g2JBzQlljTCGP1ZzzM770e6WlNL1LINfy1RBtYu70mRKOLpOE/6W/0UJqjhNnkEif3hN36Td8O94CjOdl1LP0ATUg/WEI0oWdmgkjBs8CsqVK8YsaBoLKN0z6LDpWMLqn/a3l7uJMwwkNwNaRWTkAFE3NzRFUs6KMPbAo+t55H3EL5bY6iK7QdweFaKstfco0k8T9iQLiYkGx1NOrb2rfCHsoTpYdmzVcA9C6zL2mEf7JPewMIpljlcaabm9jLVwVF7Y/mUNpzUqAFgOPq5VXD5JtrB5ggT9UxZxbP+8LU9pEx1bedJ8oqdruPPurBquliowJKozN188PMQp5evz9+L2NnCVcdVtouQNC5XfxDoRPONq0FM8vTm/ZySusCITcpMgLZNHSJkxEt7tj6i+8LC+XU3/kjJomPW/3fh4fMTj5+qkmMTkMVtRdJ9TPh7c0xymRGIXlobaePEvwOB+dHkhbxkU8vWXJ7ojHYu9TEX3vtkqDu4KLvPPijsV3qfB18SImFLF10MpLJMx5tA==",
        "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)(36840700001)(46966006)(8936002)(6916009)(83380400001)(36756003)(5660300002)(40460700003)(81166007)(36860700001)(70586007)(70206006)(30864003)(8676002)(356005)(7416002)(54906003)(1076003)(86362001)(336012)(26005)(186003)(16526019)(47076005)(82310400004)(426003)(2906002)(316002)(4326008)(508600001)(6666004)(2616005)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "09 Feb 2022 21:39:03.0573 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 775923a9-5a36-49cc-5be3-08d9ec149764",
        "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 BN8NAM11FT050.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM6PR12MB4108",
        "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": "Add testpmd support for the rte_flow_q_action_handle API.\nProvide the command line interface for operations dequeue.\nUsage example:\n  flow queue 0 indirect_action 0 create action_id 9\n    ingress postpone yes action rss / end\n  flow queue 0 indirect_action 0 update action_id 9\n    action queue index 0 / end\nflow queue 0 indirect_action 0 destroy action_id 9\n\nSigned-off-by: Alexander Kozyrev <akozyrev@nvidia.com>\nAcked-by: Ori Kam <orika@nvidia.com>\n---\n app/test-pmd/cmdline_flow.c                 | 276 ++++++++++++++++++++\n app/test-pmd/config.c                       | 131 ++++++++++\n app/test-pmd/testpmd.h                      |  10 +\n doc/guides/testpmd_app_ug/testpmd_funcs.rst |  65 +++++\n 4 files changed, 482 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 26ef2ccfd4..b9edb1d482 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -121,6 +121,7 @@ enum index {\n \t/* Queue arguments. */\n \tQUEUE_CREATE,\n \tQUEUE_DESTROY,\n+\tQUEUE_INDIRECT_ACTION,\n \n \t/* Queue create arguments. */\n \tQUEUE_CREATE_ID,\n@@ -134,6 +135,26 @@ enum index {\n \tQUEUE_DESTROY_ID,\n \tQUEUE_DESTROY_POSTPONE,\n \n+\t/* Queue indirect action arguments */\n+\tQUEUE_INDIRECT_ACTION_CREATE,\n+\tQUEUE_INDIRECT_ACTION_UPDATE,\n+\tQUEUE_INDIRECT_ACTION_DESTROY,\n+\n+\t/* Queue indirect action create arguments */\n+\tQUEUE_INDIRECT_ACTION_CREATE_ID,\n+\tQUEUE_INDIRECT_ACTION_INGRESS,\n+\tQUEUE_INDIRECT_ACTION_EGRESS,\n+\tQUEUE_INDIRECT_ACTION_TRANSFER,\n+\tQUEUE_INDIRECT_ACTION_CREATE_POSTPONE,\n+\tQUEUE_INDIRECT_ACTION_SPEC,\n+\n+\t/* Queue indirect action update arguments */\n+\tQUEUE_INDIRECT_ACTION_UPDATE_POSTPONE,\n+\n+\t/* Queue indirect action destroy arguments */\n+\tQUEUE_INDIRECT_ACTION_DESTROY_ID,\n+\tQUEUE_INDIRECT_ACTION_DESTROY_POSTPONE,\n+\n \t/* Push arguments. */\n \tPUSH_QUEUE,\n \n@@ -1102,6 +1123,7 @@ static const enum index next_table_destroy_attr[] = {\n static const enum index next_queue_subcmd[] = {\n \tQUEUE_CREATE,\n \tQUEUE_DESTROY,\n+\tQUEUE_INDIRECT_ACTION,\n \tZERO,\n };\n \n@@ -1111,6 +1133,36 @@ static const enum index next_queue_destroy_attr[] = {\n \tZERO,\n };\n \n+static const enum index next_qia_subcmd[] = {\n+\tQUEUE_INDIRECT_ACTION_CREATE,\n+\tQUEUE_INDIRECT_ACTION_UPDATE,\n+\tQUEUE_INDIRECT_ACTION_DESTROY,\n+\tZERO,\n+};\n+\n+static const enum index next_qia_create_attr[] = {\n+\tQUEUE_INDIRECT_ACTION_CREATE_ID,\n+\tQUEUE_INDIRECT_ACTION_INGRESS,\n+\tQUEUE_INDIRECT_ACTION_EGRESS,\n+\tQUEUE_INDIRECT_ACTION_TRANSFER,\n+\tQUEUE_INDIRECT_ACTION_CREATE_POSTPONE,\n+\tQUEUE_INDIRECT_ACTION_SPEC,\n+\tZERO,\n+};\n+\n+static const enum index next_qia_update_attr[] = {\n+\tQUEUE_INDIRECT_ACTION_UPDATE_POSTPONE,\n+\tQUEUE_INDIRECT_ACTION_SPEC,\n+\tZERO,\n+};\n+\n+static const enum index next_qia_destroy_attr[] = {\n+\tQUEUE_INDIRECT_ACTION_DESTROY_POSTPONE,\n+\tQUEUE_INDIRECT_ACTION_DESTROY_ID,\n+\tEND,\n+\tZERO,\n+};\n+\n static const enum index next_ia_create_attr[] = {\n \tINDIRECT_ACTION_CREATE_ID,\n \tINDIRECT_ACTION_INGRESS,\n@@ -2167,6 +2219,12 @@ static int parse_qo(struct context *, const struct token *,\n static int parse_qo_destroy(struct context *, const struct token *,\n \t\t\t    const char *, unsigned int,\n \t\t\t    void *, unsigned int);\n+static int parse_qia(struct context *, const struct token *,\n+\t\t     const char *, unsigned int,\n+\t\t     void *, unsigned int);\n+static int parse_qia_destroy(struct context *, const struct token *,\n+\t\t\t     const char *, unsigned int,\n+\t\t\t     void *, unsigned int);\n static int parse_push(struct context *, const struct token *,\n \t\t      const char *, unsigned int,\n \t\t      void *, unsigned int);\n@@ -2744,6 +2802,13 @@ static const struct token token_list[] = {\n \t\t.args = ARGS(ARGS_ENTRY(struct buffer, queue)),\n \t\t.call = parse_qo_destroy,\n \t},\n+\t[QUEUE_INDIRECT_ACTION] = {\n+\t\t.name = \"indirect_action\",\n+\t\t.help = \"queue indirect actions\",\n+\t\t.next = NEXT(next_qia_subcmd, NEXT_ENTRY(COMMON_QUEUE_ID)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct buffer, queue)),\n+\t\t.call = parse_qia,\n+\t},\n \t/* Queue  arguments. */\n \t[QUEUE_TEMPLATE_TABLE] = {\n \t\t.name = \"template table\",\n@@ -2797,6 +2862,90 @@ static const struct token token_list[] = {\n \t\t\t\t\t    args.destroy.rule)),\n \t\t.call = parse_qo_destroy,\n \t},\n+\t/* Queue indirect action arguments */\n+\t[QUEUE_INDIRECT_ACTION_CREATE] = {\n+\t\t.name = \"create\",\n+\t\t.help = \"create indirect action\",\n+\t\t.next = NEXT(next_qia_create_attr),\n+\t\t.call = parse_qia,\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_UPDATE] = {\n+\t\t.name = \"update\",\n+\t\t.help = \"update indirect action\",\n+\t\t.next = NEXT(next_qia_update_attr,\n+\t\t\t     NEXT_ENTRY(COMMON_INDIRECT_ACTION_ID)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct buffer, args.vc.attr.group)),\n+\t\t.call = parse_qia,\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_DESTROY] = {\n+\t\t.name = \"destroy\",\n+\t\t.help = \"destroy indirect action\",\n+\t\t.next = NEXT(next_qia_destroy_attr),\n+\t\t.call = parse_qia_destroy,\n+\t},\n+\t/* Indirect action destroy arguments. */\n+\t[QUEUE_INDIRECT_ACTION_DESTROY_POSTPONE] = {\n+\t\t.name = \"postpone\",\n+\t\t.help = \"postpone destroy operation\",\n+\t\t.next = NEXT(next_qia_destroy_attr,\n+\t\t\t     NEXT_ENTRY(COMMON_BOOLEAN)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct buffer, postpone)),\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_DESTROY_ID] = {\n+\t\t.name = \"action_id\",\n+\t\t.help = \"specify a indirect action id to destroy\",\n+\t\t.next = NEXT(next_qia_destroy_attr,\n+\t\t\t     NEXT_ENTRY(COMMON_INDIRECT_ACTION_ID)),\n+\t\t.args = ARGS(ARGS_ENTRY_PTR(struct buffer,\n+\t\t\t\t\t    args.ia_destroy.action_id)),\n+\t\t.call = parse_qia_destroy,\n+\t},\n+\t/* Indirect action update arguments. */\n+\t[QUEUE_INDIRECT_ACTION_UPDATE_POSTPONE] = {\n+\t\t.name = \"postpone\",\n+\t\t.help = \"postpone update operation\",\n+\t\t.next = NEXT(next_qia_update_attr,\n+\t\t\t     NEXT_ENTRY(COMMON_BOOLEAN)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct buffer, postpone)),\n+\t},\n+\t/* Indirect action create arguments. */\n+\t[QUEUE_INDIRECT_ACTION_CREATE_ID] = {\n+\t\t.name = \"action_id\",\n+\t\t.help = \"specify a indirect action id to create\",\n+\t\t.next = NEXT(next_qia_create_attr,\n+\t\t\t     NEXT_ENTRY(COMMON_INDIRECT_ACTION_ID)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct buffer, args.vc.attr.group)),\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_INGRESS] = {\n+\t\t.name = \"ingress\",\n+\t\t.help = \"affect rule to ingress\",\n+\t\t.next = NEXT(next_qia_create_attr),\n+\t\t.call = parse_qia,\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_EGRESS] = {\n+\t\t.name = \"egress\",\n+\t\t.help = \"affect rule to egress\",\n+\t\t.next = NEXT(next_qia_create_attr),\n+\t\t.call = parse_qia,\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_TRANSFER] = {\n+\t\t.name = \"transfer\",\n+\t\t.help = \"affect rule to transfer\",\n+\t\t.next = NEXT(next_qia_create_attr),\n+\t\t.call = parse_qia,\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_CREATE_POSTPONE] = {\n+\t\t.name = \"postpone\",\n+\t\t.help = \"postpone create operation\",\n+\t\t.next = NEXT(next_qia_create_attr,\n+\t\t\t     NEXT_ENTRY(COMMON_BOOLEAN)),\n+\t\t.args = ARGS(ARGS_ENTRY(struct buffer, postpone)),\n+\t},\n+\t[QUEUE_INDIRECT_ACTION_SPEC] = {\n+\t\t.name = \"action\",\n+\t\t.help = \"specify action to create indirect handle\",\n+\t\t.next = NEXT(next_action),\n+\t},\n \t/* Top-level command. */\n \t[PUSH] = {\n \t\t.name = \"push\",\n@@ -6209,6 +6358,110 @@ parse_ia_destroy(struct context *ctx, const struct token *token,\n \treturn len;\n }\n \n+/** Parse tokens for indirect action commands. */\n+static int\n+parse_qia(struct context *ctx, const struct token *token,\n+\t  const char *str, unsigned int len,\n+\t  void *buf, unsigned int size)\n+{\n+\tstruct buffer *out = buf;\n+\n+\t/* Token name must match. */\n+\tif (parse_default(ctx, token, str, len, NULL, 0) < 0)\n+\t\treturn -1;\n+\t/* Nothing else to do if there is no buffer. */\n+\tif (!out)\n+\t\treturn len;\n+\tif (!out->command) {\n+\t\tif (ctx->curr != QUEUE)\n+\t\t\treturn -1;\n+\t\tif (sizeof(*out) > size)\n+\t\t\treturn -1;\n+\t\tout->args.vc.data = (uint8_t *)out + size;\n+\t\treturn len;\n+\t}\n+\tswitch (ctx->curr) {\n+\tcase QUEUE_INDIRECT_ACTION:\n+\t\treturn len;\n+\tcase QUEUE_INDIRECT_ACTION_CREATE:\n+\tcase QUEUE_INDIRECT_ACTION_UPDATE:\n+\t\tout->args.vc.actions =\n+\t\t\t(void *)RTE_ALIGN_CEIL((uintptr_t)(out + 1),\n+\t\t\t\t\t       sizeof(double));\n+\t\tout->args.vc.attr.group = UINT32_MAX;\n+\t\tout->command = ctx->curr;\n+\t\tctx->objdata = 0;\n+\t\tctx->object = out;\n+\t\tctx->objmask = NULL;\n+\t\treturn len;\n+\tcase QUEUE_INDIRECT_ACTION_EGRESS:\n+\t\tout->args.vc.attr.egress = 1;\n+\t\treturn len;\n+\tcase QUEUE_INDIRECT_ACTION_INGRESS:\n+\t\tout->args.vc.attr.ingress = 1;\n+\t\treturn len;\n+\tcase QUEUE_INDIRECT_ACTION_TRANSFER:\n+\t\tout->args.vc.attr.transfer = 1;\n+\t\treturn len;\n+\tcase QUEUE_INDIRECT_ACTION_CREATE_POSTPONE:\n+\t\treturn len;\n+\tdefault:\n+\t\treturn -1;\n+\t}\n+}\n+\n+/** Parse tokens for indirect action destroy command. */\n+static int\n+parse_qia_destroy(struct context *ctx, const struct token *token,\n+\t\t  const char *str, unsigned int len,\n+\t\t  void *buf, unsigned int size)\n+{\n+\tstruct buffer *out = buf;\n+\tuint32_t *action_id;\n+\n+\t/* Token name must match. */\n+\tif (parse_default(ctx, token, str, len, NULL, 0) < 0)\n+\t\treturn -1;\n+\t/* Nothing else to do if there is no buffer. */\n+\tif (!out)\n+\t\treturn len;\n+\tif (!out->command || out->command == QUEUE) {\n+\t\tif (ctx->curr != QUEUE_INDIRECT_ACTION_DESTROY)\n+\t\t\treturn -1;\n+\t\tif (sizeof(*out) > size)\n+\t\t\treturn -1;\n+\t\tout->command = ctx->curr;\n+\t\tctx->objdata = 0;\n+\t\tctx->object = out;\n+\t\tctx->objmask = NULL;\n+\t\tout->args.ia_destroy.action_id =\n+\t\t\t(void *)RTE_ALIGN_CEIL((uintptr_t)(out + 1),\n+\t\t\t\t\t       sizeof(double));\n+\t\treturn len;\n+\t}\n+\tswitch (ctx->curr) {\n+\tcase QUEUE_INDIRECT_ACTION:\n+\t\tout->command = ctx->curr;\n+\t\tctx->objdata = 0;\n+\t\tctx->object = out;\n+\t\tctx->objmask = NULL;\n+\t\treturn len;\n+\tcase QUEUE_INDIRECT_ACTION_DESTROY_ID:\n+\t\taction_id = out->args.ia_destroy.action_id\n+\t\t\t\t+ out->args.ia_destroy.action_id_n++;\n+\t\tif ((uint8_t *)action_id > (uint8_t *)out + size)\n+\t\t\treturn -1;\n+\t\tctx->objdata = 0;\n+\t\tctx->object = action_id;\n+\t\tctx->objmask = NULL;\n+\t\treturn len;\n+\tcase QUEUE_INDIRECT_ACTION_DESTROY_POSTPONE:\n+\t\treturn len;\n+\tdefault:\n+\t\treturn -1;\n+\t}\n+}\n+\n /** Parse tokens for meter policy action commands. */\n static int\n parse_mp(struct context *ctx, const struct token *token,\n@@ -9892,6 +10145,29 @@ cmd_flow_parsed(const struct buffer *in)\n \tcase PULL:\n \t\tport_queue_flow_pull(in->port, in->queue);\n \t\tbreak;\n+\tcase QUEUE_INDIRECT_ACTION_CREATE:\n+\t\tport_queue_action_handle_create(\n+\t\t\t\tin->port, in->queue, in->postpone,\n+\t\t\t\tin->args.vc.attr.group,\n+\t\t\t\t&((const struct rte_flow_indir_action_conf) {\n+\t\t\t\t\t.ingress = in->args.vc.attr.ingress,\n+\t\t\t\t\t.egress = in->args.vc.attr.egress,\n+\t\t\t\t\t.transfer = in->args.vc.attr.transfer,\n+\t\t\t\t}),\n+\t\t\t\tin->args.vc.actions);\n+\t\tbreak;\n+\tcase QUEUE_INDIRECT_ACTION_DESTROY:\n+\t\tport_queue_action_handle_destroy(in->port,\n+\t\t\t\t\t   in->queue, in->postpone,\n+\t\t\t\t\t   in->args.ia_destroy.action_id_n,\n+\t\t\t\t\t   in->args.ia_destroy.action_id);\n+\t\tbreak;\n+\tcase QUEUE_INDIRECT_ACTION_UPDATE:\n+\t\tport_queue_action_handle_update(in->port,\n+\t\t\t\t\t\tin->queue, in->postpone,\n+\t\t\t\t\t\tin->args.vc.attr.group,\n+\t\t\t\t\t\tin->args.vc.actions);\n+\t\tbreak;\n \tcase INDIRECT_ACTION_CREATE:\n \t\tport_action_handle_create(\n \t\t\t\tin->port, in->args.vc.attr.group,\ndiff --git a/app/test-pmd/config.c b/app/test-pmd/config.c\nindex 4937851c41..e69dd2feff 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -2590,6 +2590,137 @@ port_queue_flow_destroy(portid_t port_id, queueid_t queue_id,\n \treturn ret;\n }\n \n+/** Enqueue indirect action create operation. */\n+int\n+port_queue_action_handle_create(portid_t port_id, uint32_t queue_id,\n+\t\t\t\tbool postpone, uint32_t id,\n+\t\t\t\tconst struct rte_flow_indir_action_conf *conf,\n+\t\t\t\tconst struct rte_flow_action *action)\n+{\n+\tconst struct rte_flow_q_ops_attr attr = { .postpone = postpone};\n+\tstruct rte_port *port;\n+\tstruct port_indirect_action *pia;\n+\tint ret;\n+\tstruct rte_flow_error error;\n+\n+\tret = action_alloc(port_id, id, &pia);\n+\tif (ret)\n+\t\treturn ret;\n+\n+\tport = &ports[port_id];\n+\tif (queue_id >= port->queue_nb) {\n+\t\tprintf(\"Queue #%u is invalid\\n\", queue_id);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (action->type == RTE_FLOW_ACTION_TYPE_AGE) {\n+\t\tstruct rte_flow_action_age *age =\n+\t\t\t(struct rte_flow_action_age *)(uintptr_t)(action->conf);\n+\n+\t\tpia->age_type = ACTION_AGE_CONTEXT_TYPE_INDIRECT_ACTION;\n+\t\tage->context = &pia->age_type;\n+\t}\n+\t/* Poisoning to make sure PMDs update it in case of error. */\n+\tmemset(&error, 0x88, sizeof(error));\n+\tpia->handle = rte_flow_q_action_handle_create(port_id, queue_id, &attr,\n+\t\t\t\t\t\t      conf, action, &error);\n+\tif (!pia->handle) {\n+\t\tuint32_t destroy_id = pia->id;\n+\t\tport_queue_action_handle_destroy(port_id, queue_id,\n+\t\t\t\t\t\t postpone, 1, &destroy_id);\n+\t\treturn port_flow_complain(&error);\n+\t}\n+\tpia->type = action->type;\n+\tprintf(\"Indirect action #%u creation queued\\n\", pia->id);\n+\treturn 0;\n+}\n+\n+/** Enqueue indirect action destroy operation. */\n+int\n+port_queue_action_handle_destroy(portid_t port_id,\n+\t\t\t\t uint32_t queue_id, bool postpone,\n+\t\t\t\t uint32_t n, const uint32_t *actions)\n+{\n+\tconst struct rte_flow_q_ops_attr attr = { .postpone = postpone};\n+\tstruct rte_port *port;\n+\tstruct port_indirect_action **tmp;\n+\tuint32_t c = 0;\n+\tint ret = 0;\n+\n+\tif (port_id_is_invalid(port_id, ENABLED_WARN) ||\n+\t    port_id == (portid_t)RTE_PORT_ALL)\n+\t\treturn -EINVAL;\n+\tport = &ports[port_id];\n+\n+\tif (queue_id >= port->queue_nb) {\n+\t\tprintf(\"Queue #%u is invalid\\n\", queue_id);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\ttmp = &port->actions_list;\n+\twhile (*tmp) {\n+\t\tuint32_t i;\n+\n+\t\tfor (i = 0; i != n; ++i) {\n+\t\t\tstruct rte_flow_error error;\n+\t\t\tstruct port_indirect_action *pia = *tmp;\n+\n+\t\t\tif (actions[i] != pia->id)\n+\t\t\t\tcontinue;\n+\t\t\t/*\n+\t\t\t * Poisoning to make sure PMDs update it in case\n+\t\t\t * of error.\n+\t\t\t */\n+\t\t\tmemset(&error, 0x99, sizeof(error));\n+\n+\t\t\tif (pia->handle &&\n+\t\t\t    rte_flow_q_action_handle_destroy(port_id, queue_id,\n+\t\t\t\t\t\t&attr, pia->handle, &error)) {\n+\t\t\t\tret = port_flow_complain(&error);\n+\t\t\t\tcontinue;\n+\t\t\t}\n+\t\t\t*tmp = pia->next;\n+\t\t\tprintf(\"Indirect action #%u destruction queued\\n\",\n+\t\t\t       pia->id);\n+\t\t\tfree(pia);\n+\t\t\tbreak;\n+\t\t}\n+\t\tif (i == n)\n+\t\t\ttmp = &(*tmp)->next;\n+\t\t++c;\n+\t}\n+\treturn ret;\n+}\n+\n+/** Enqueue indirect action update operation. */\n+int\n+port_queue_action_handle_update(portid_t port_id,\n+\t\t\t\tuint32_t queue_id, bool postpone, uint32_t id,\n+\t\t\t\tconst struct rte_flow_action *action)\n+{\n+\tconst struct rte_flow_q_ops_attr attr = { .postpone = postpone};\n+\tstruct rte_port *port;\n+\tstruct rte_flow_error error;\n+\tstruct rte_flow_action_handle *action_handle;\n+\n+\taction_handle = port_action_handle_get_by_id(port_id, id);\n+\tif (!action_handle)\n+\t\treturn -EINVAL;\n+\n+\tport = &ports[port_id];\n+\tif (queue_id >= port->queue_nb) {\n+\t\tprintf(\"Queue #%u is invalid\\n\", queue_id);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\tif (rte_flow_q_action_handle_update(port_id, queue_id, &attr,\n+\t\t\t\t\t    action_handle, action, &error)) {\n+\t\treturn port_flow_complain(&error);\n+\t}\n+\tprintf(\"Indirect action #%u update queued\\n\", id);\n+\treturn 0;\n+}\n+\n /** Push all the queue operations in the queue to the NIC. */\n int\n port_queue_flow_push(portid_t port_id, queueid_t queue_id)\ndiff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h\nindex 6fe829edab..167f1741dc 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -939,6 +939,16 @@ int port_queue_flow_create(portid_t port_id, queueid_t queue_id,\n \t\t\t   const struct rte_flow_action *actions);\n int port_queue_flow_destroy(portid_t port_id, queueid_t queue_id,\n \t\t\t    bool postpone, uint32_t n, const uint32_t *rule);\n+int port_queue_action_handle_create(portid_t port_id, uint32_t queue_id,\n+\t\t\tbool postpone, uint32_t id,\n+\t\t\tconst struct rte_flow_indir_action_conf *conf,\n+\t\t\tconst struct rte_flow_action *action);\n+int port_queue_action_handle_destroy(portid_t port_id,\n+\t\t\t\t     uint32_t queue_id, bool postpone,\n+\t\t\t\t     uint32_t n, const uint32_t *action);\n+int port_queue_action_handle_update(portid_t port_id, uint32_t queue_id,\n+\t\t\t\t    bool postpone, uint32_t id,\n+\t\t\t\t    const struct rte_flow_action *action);\n int port_queue_flow_push(portid_t port_id, queueid_t queue_id);\n int port_queue_flow_pull(portid_t port_id, queueid_t queue_id);\n int port_flow_validate(portid_t port_id,\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex d5d9125d50..65ecef754e 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -4780,6 +4780,31 @@ port 0::\n \ttestpmd> flow indirect_action 0 create action_id \\\n \t\tingress action rss queues 0 1 end / end\n \n+Enqueueing creation of indirect actions\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+``flow queue indirect_action create`` adds creation operation of an indirect\n+action to a queue. It is bound to ``rte_flow_q_action_handle_create()``::\n+\n+   flow queue {port_id} create {queue_id} [postpone {boolean}]\n+       table {table_id} item_template {item_template_id}\n+       action_template {action_template_id}\n+       pattern {item} [/ {item} [...]] / end\n+       actions {action} [/ {action} [...]] / end\n+\n+If successful, it will show::\n+\n+   Indirect action #[...] creation queued\n+\n+Otherwise it will show an error message of the form::\n+\n+   Caught error type [...] ([...]): [...]\n+\n+This command uses the same parameters as  ``flow indirect_action create``,\n+described in `Creating indirect actions`_.\n+\n+``flow queue pull`` must be called to retrieve the operation status.\n+\n Updating indirect actions\n ~~~~~~~~~~~~~~~~~~~~~~~~~\n \n@@ -4809,6 +4834,25 @@ Update indirect rss action having id 100 on port 0 with rss to queues 0 and 3\n \n    testpmd> flow indirect_action 0 update 100 action rss queues 0 3 end / end\n \n+Enqueueing update of indirect actions\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+``flow queue indirect_action update`` adds update operation for an indirect\n+action to a queue. It is bound to ``rte_flow_q_action_handle_update()``::\n+\n+   flow queue {port_id} indirect_action {queue_id} update\n+      {indirect_action_id} [postpone {boolean}] action {action} / end\n+\n+If successful, it will show::\n+\n+   Indirect action #[...] update queued\n+\n+Otherwise it will show an error message of the form::\n+\n+   Caught error type [...] ([...]): [...]\n+\n+``flow queue pull`` must be called to retrieve the operation status.\n+\n Destroying indirect actions\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n@@ -4832,6 +4876,27 @@ Destroy indirect actions having id 100 & 101::\n \n    testpmd> flow indirect_action 0 destroy action_id 100 action_id 101\n \n+Enqueueing destruction of indirect actions\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+``flow queue indirect_action destroy`` adds destruction operation to destroy\n+one or more indirect actions from their indirect action IDs (as returned by\n+``flow queue {port_id} indirect_action {queue_id} create``) to a queue.\n+It is bound to ``rte_flow_q_action_handle_destroy()``::\n+\n+   flow queue {port_id} indirect_action {queue_id} destroy\n+      [postpone {boolean}] action_id {indirect_action_id} [...]\n+\n+If successful, it will show::\n+\n+   Indirect action #[...] destruction queued\n+\n+Otherwise it will show an error message of the form::\n+\n+   Caught error type [...] ([...]): [...]\n+\n+``flow queue pull`` must be called to retrieve the operation status.\n+\n Query indirect actions\n ~~~~~~~~~~~~~~~~~~~~~~\n \n",
    "prefixes": [
        "v4",
        "10/10"
    ]
}