get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 106040,
    "url": "http://patchwork.dpdk.org/api/patches/106040/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220118153712.3947984-1-akozyrev@nvidia.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20220118153712.3947984-1-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220118153712.3947984-1-akozyrev@nvidia.com",
    "date": "2022-01-18T15:37:12",
    "name": "[v2,10/10] app/testpmd: implement rte flow queue indirect action",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c0be8182f9c801c907b2c815e907347c83b58c7b",
    "submitter": {
        "id": 1873,
        "url": "http://patchwork.dpdk.org/api/people/1873/?format=api",
        "name": "Alexander Kozyrev",
        "email": "akozyrev@nvidia.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patchwork.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220118153712.3947984-1-akozyrev@nvidia.com/mbox/",
    "series": [
        {
            "id": 21235,
            "url": "http://patchwork.dpdk.org/api/series/21235/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=21235",
            "date": "2022-01-18T15:30:17",
            "name": "ethdev: datapath-focused flow rules management",
            "version": 2,
            "mbox": "http://patchwork.dpdk.org/series/21235/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/106040/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/106040/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 A5621A034C;\n\tTue, 18 Jan 2022 16:37:33 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 929134273D;\n\tTue, 18 Jan 2022 16:37:33 +0100 (CET)",
            "from NAM02-BN1-obe.outbound.protection.outlook.com\n (mail-bn1nam07on2062.outbound.protection.outlook.com [40.107.212.62])\n by mails.dpdk.org (Postfix) with ESMTP id 9C2A34068E\n for <dev@dpdk.org>; Tue, 18 Jan 2022 16:37:32 +0100 (CET)",
            "from DM6PR12MB4941.namprd12.prod.outlook.com (2603:10b6:5:1b8::17)\n by DM6PR12MB3002.namprd12.prod.outlook.com (2603:10b6:5:117::15) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.12; Tue, 18 Jan\n 2022 15:37:30 +0000",
            "from DM5PR15CA0052.namprd15.prod.outlook.com (2603:10b6:3:ae::14) by\n DM6PR12MB4941.namprd12.prod.outlook.com (2603:10b6:5:1b8::17) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.4888.10; Tue, 18 Jan 2022 15:37:30 +0000",
            "from DM6NAM11FT021.eop-nam11.prod.protection.outlook.com\n (2603:10b6:3:ae:cafe::52) by DM5PR15CA0052.outlook.office365.com\n (2603:10b6:3:ae::14) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7 via Frontend\n Transport; Tue, 18 Jan 2022 15:37:30 +0000",
            "from mail.nvidia.com (12.22.5.234) by\n DM6NAM11FT021.mail.protection.outlook.com (10.13.173.76) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4888.9 via Frontend Transport; Tue, 18 Jan 2022 15:37:30 +0000",
            "from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com\n (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 18 Jan 2022 15:37:28 +0000",
            "from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com\n (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.9; Tue, 18 Jan 2022\n 07:37:25 -0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=VXqU896VFhbQQsyeq3QX0LY4jnTbrZ9xsTpiZEBwVYImZybM+2+507vKANxSRdpkS+svS9vjj8qaOblLF/UZx1UgqTkiGJGHUhtMuVIEeV8mDwqrf6CRw+exJQmH8iiPJiv1yOyZzmVaeakjvQJqFwvW7hpXtZbqtwTAMwXG72kx9E8szyR0JvD65dg5vq9w0FTOStHURC0pDeVmw9emKEQjuNyIpYltTnPR1v6MF4qy5gHWadgMxcVxlzcus5o0zI70ICnWPB+lusTWiSmUwrclWSL2/Ufh7Iq8DuUUE8WNJwRzRxOsjzllo1UFOIAez9G7znzSmItQGDnjexmC4w==",
        "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=16Air03rGTEm/t/M6PEuvdsDgR32V6eubN/eW9THhds=;\n b=e4Tf/uxx9OfdQ/BDj5Vtjn6YwJnkEws836kHV3jThbtc2uGmkQxV+0Igl6ZAofSY8Gi5hKXu71CeJwKIcnwbidp46FZhYfTNICJ5wHzrFNCUAc/wWSmw6pMqL4WHlYl+QNSEGkcbPNMcBP47+PiK2n4IwM/GlOUNblb6wrp4qg3bCE4LuhxetVJkVJEWBsQSbGQ335/UDsLqaibAsbP075nyIgNSnVsY0HWwGcr/3X7HjdQFxzKh2WmANk4CqVLqKbTxKIPxO5IIWox0jhSEI1IhCja0Mzv5WVtbQZJ7q82i9ijtDmGpyok8HsXXcqfh22Fu60GassH1d7jCA5IwmA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 12.22.5.234) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass\n (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none\n (message not signed); arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=16Air03rGTEm/t/M6PEuvdsDgR32V6eubN/eW9THhds=;\n b=i+hyLFlHnit8BBuZt8Kyeet1fWdz7TXgpuK3favfvvbPegBxDCdIb57kBcWNhA6Pd++42UMkZUM2tk/9FdaMDAIHYtZGGutmF+MLVP/y7Kt4kMHcWY81gjol35FiyALdoPB8j9US0HpzYmKc5JxroX+W6uMQHrFcazcdbSEGVet8DoWIP0pu2fQgzgtHW7mqxIPzLlNvGzM7bI5lOTV8dxigevhdcUrX8aVpGr3DdZRrkzKdb7ifZwCCkcOmiP/gQ2JAgiR1xcGjcWmNWst6RyfmTVs+9d2shFPr5kaKrfyi2GxKyqrYnYkuhPXaohjiIm+e5ObpQHZzhDTfn0sUKw==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 12.22.5.234)\n smtp.mailfrom=nvidia.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 12.22.5.234 as permitted sender) receiver=protection.outlook.com;\n client-ip=12.22.5.234; helo=mail.nvidia.com;",
        "From": "Alexander Kozyrev <akozyrev@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<orika@nvidia.com>, <thomas@monjalon.net>, <ivan.malov@oktetlabs.ru>,\n <andrew.rybchenko@oktetlabs.ru>, <ferruh.yigit@intel.com>,\n <mohammad.abdul.awal@intel.com>, <qi.z.zhang@intel.com>,\n <jerinj@marvell.com>, <ajit.khaparde@broadcom.com>",
        "Subject": "[v2,10/10] app/testpmd: implement rte flow queue indirect action",
        "Date": "Tue, 18 Jan 2022 17:37:12 +0200",
        "Message-ID": "<20220118153712.3947984-1-akozyrev@nvidia.com>",
        "X-Mailer": "git-send-email 2.18.2",
        "In-Reply-To": "<20220118153027.3947448-1-akozyrev@nvidia.com>",
        "References": "<20220118153027.3947448-1-akozyrev@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.126.230.35]",
        "X-ClientProxiedBy": "HQMAIL107.nvidia.com (172.20.187.13) To\n rnnvmail201.nvidia.com (10.129.68.8)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "33da60c2-8a4a-4022-ce9f-08d9da987036",
        "X-MS-TrafficTypeDiagnostic": "DM6PR12MB4941:EE_|DM6PR12MB3002:EE_",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <DM6PR12MB4941DEC47067F4642AECB006AF589@DM6PR12MB4941.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 wmzCP3yuu1iGSEw5sFHBu0CcAcgDpXA2BshzJZkn2x2EDEMfWiPpHTIP4IiprXgf1GJ5v6TWUoYtEQr88ZoYa0dISbQXpurX0VK/UZMR4arSPKVbY1foI1w+bRwkD5wh4BCgouhqaasZu1F3snMp/D02qZVKlMM7bSXN0Un2jxWdXqY1upu/uuJA5i8VRoh3PRfDxLNXZ/wMnY8fC9Lwm0eE9fu3j0AKbZu6O5Zs+ym7Gusk8418P0pKDpSL05284NlwOQarAwpnX4VyVmNieWrW1MGfh/3NwvOg0cr7DiJIR8VzGkHGrKDlpIRxj0OwaOGp7ywqpDQ6QIMIgFiOx7FOeWWxAI0tuT0FaRSQRCub5NtKbl1k5bONj4zUFiowHLYHYX4plSWvweeR8/r7O5WQhUwQxzNk3PeKR2nBKRKim+9j/9O3MDhyirBzELKN/Q9jjwghFfRn5oOgo+ezhpTMd3fFI/sg+tFFAvbInw860QbVNGjzY/o/Vz7REvVm3BTCFI2FVG8Dsv9wNXKQanOYyCMeJKgxfCADG1TJMMw4yEQ+ne8JV7dFkI87qIb5w5A7jcBbaclGCGBIdZeo75vyq9b5UX1/FGj7ta/9h47Dhw3M/1uvXc9bPMV1UK/frSxFTqIZD2Qm+peEaAbRFxuIewg0w5fMk3zGTsAva9iQaIHKhLiliBehanKk+lHeJYnJ84RkMCGD5l5S9qRTopbjP0jJj69l5xJTUcBBVN/TUb8em5uOH/qTbf1zkVoRlCJMZYWIK31QPeouuBZvU/MQOovdT9/2Y3tmlliOpdo=",
        "X-Forefront-Antispam-Report": "CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE;\n SFS:(4636009)(46966006)(40470700002)(36840700001)(16526019)(4326008)(36756003)(336012)(26005)(47076005)(316002)(2906002)(54906003)(6916009)(508600001)(6286002)(186003)(36860700001)(356005)(2616005)(8936002)(83380400001)(82310400004)(5660300002)(426003)(40460700001)(7696005)(55016003)(81166007)(8676002)(70586007)(6666004)(30864003)(70206006)(1076003)(86362001)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "18 Jan 2022 15:37:30.0753 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 33da60c2-8a4a-4022-ce9f-08d9da987036",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.234];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n DM6NAM11FT021.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM6PR12MB3002",
        "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 drain 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>\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 507eb87984..50b6424933 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -120,6 +120,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@@ -133,6 +134,26 @@ enum index {\n \tQUEUE_DESTROY_ID,\n \tQUEUE_DESTROY_DRAIN,\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_DRAIN,\n+\tQUEUE_INDIRECT_ACTION_SPEC,\n+\n+\t/* Queue indirect action update arguments */\n+\tQUEUE_INDIRECT_ACTION_UPDATE_DRAIN,\n+\n+\t/* Queue indirect action destroy arguments */\n+\tQUEUE_INDIRECT_ACTION_DESTROY_ID,\n+\tQUEUE_INDIRECT_ACTION_DESTROY_DRAIN,\n+\n \t/* Dequeue arguments. */\n \tDEQUEUE_QUEUE,\n \n@@ -1099,6 +1120,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@@ -1108,6 +1130,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_DRAIN,\n+\tQUEUE_INDIRECT_ACTION_SPEC,\n+\tZERO,\n+};\n+\n+static const enum index next_qia_update_attr[] = {\n+\tQUEUE_INDIRECT_ACTION_UPDATE_DRAIN,\n+\tQUEUE_INDIRECT_ACTION_SPEC,\n+\tZERO,\n+};\n+\n+static const enum index next_qia_destroy_attr[] = {\n+\tQUEUE_INDIRECT_ACTION_DESTROY_DRAIN,\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@@ -2163,6 +2215,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_dequeue(struct context *, const struct token *,\n \t\t\t const char *, unsigned int,\n \t\t\t void *, unsigned int);\n@@ -2729,6 +2787,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_TABLE] = {\n \t\t.name = \"table\",\n@@ -2782,6 +2847,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_DRAIN] = {\n+\t\t.name = \"drain\",\n+\t\t.help = \"drain operation immediately\",\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, drain)),\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_DRAIN] = {\n+\t\t.name = \"drain\",\n+\t\t.help = \"drain operation immediately\",\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, drain)),\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_DRAIN] = {\n+\t\t.name = \"drain\",\n+\t\t.help = \"drain operation immediately\",\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, drain)),\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[DEQUEUE] = {\n \t\t.name = \"dequeue\",\n@@ -6181,6 +6330,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_DRAIN:\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_DRAIN:\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@@ -9857,6 +10110,29 @@ cmd_flow_parsed(const struct buffer *in)\n \tcase DRAIN:\n \t\tport_queue_flow_drain(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->drain,\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->drain,\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->drain,\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 5d23edf562..634174eec6 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -2536,6 +2536,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 drain, 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 = { .drain = drain};\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 drain, 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 drain,\n+\t\t\t\t uint32_t n, const uint32_t *actions)\n+{\n+\tconst struct rte_flow_q_ops_attr attr = { .drain = drain};\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 drain, uint32_t id,\n+\t\t\t\tconst struct rte_flow_action *action)\n+{\n+\tconst struct rte_flow_q_ops_attr attr = { .drain = drain};\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 /** Drain all the queue operations down the queue. */\n int\n port_queue_flow_drain(portid_t port_id, queueid_t queue_id)\ndiff --git a/app/test-pmd/testpmd.h b/app/test-pmd/testpmd.h\nindex 3cf336dbae..eeaf1864cd 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -934,6 +934,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 drain, 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 drain, 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 drain,\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 drain, uint32_t id,\n+\t\t\t\t    const struct rte_flow_action *action);\n int port_queue_flow_drain(portid_t port_id, queueid_t queue_id);\n int port_queue_flow_dequeue(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 fff4de8f00..dfb81d56d8 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -4728,6 +4728,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} [drain {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 dequeue`` must be called to retrieve the operation status.\n+\n Updating indirect actions\n ~~~~~~~~~~~~~~~~~~~~~~~~~\n \n@@ -4757,6 +4782,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} [drain {boolean}] action {action} / end\n+\n+If successful, it will return a flow rule ID usable with other commands::\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 dequeue`` must be called to retrieve the operation status.\n+\n Destroying indirect actions\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n \n@@ -4780,6 +4824,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+      [drain {boolean}] action_id {indirect_action_id} [...]\n+\n+If successful, it will return a flow rule ID usable with other commands::\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 dequeue`` must be called to retrieve the operation status.\n+\n Query indirect actions\n ~~~~~~~~~~~~~~~~~~~~~~\n \n",
    "prefixes": [
        "v2",
        "10/10"
    ]
}