get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 107923,
    "url": "http://patches.dpdk.org/api/patches/107923/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220221230240.2409665-12-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": "<20220221230240.2409665-12-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220221230240.2409665-12-akozyrev@nvidia.com",
    "date": "2022-02-21T23:02:40",
    "name": "[v9,11/11] app/testpmd: add async indirect actions operations",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "55def39b8f3cf02016eccdc5ec3f14627c2aabf3",
    "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/20220221230240.2409665-12-akozyrev@nvidia.com/mbox/",
    "series": [
        {
            "id": 21774,
            "url": "http://patches.dpdk.org/api/series/21774/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21774",
            "date": "2022-02-21T23:02:29",
            "name": "ethdev: datapath-focused flow rules management",
            "version": 9,
            "mbox": "http://patches.dpdk.org/series/21774/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/107923/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/107923/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 C004DA034F;\n\tTue, 22 Feb 2022 00:04:26 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 840DF41171;\n\tTue, 22 Feb 2022 00:03:47 +0100 (CET)",
            "from NAM12-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam12on2078.outbound.protection.outlook.com [40.107.237.78])\n by mails.dpdk.org (Postfix) with ESMTP id 58D2241180\n for <dev@dpdk.org>; Tue, 22 Feb 2022 00:03:46 +0100 (CET)",
            "from DM8PR12MB5464.namprd12.prod.outlook.com (2603:10b6:8:3d::13) by\n MWHPR1201MB0222.namprd12.prod.outlook.com (2603:10b6:301:54::17) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.24; Mon, 21 Feb\n 2022 23:03:43 +0000",
            "from BN9P221CA0010.NAMP221.PROD.OUTLOOK.COM (2603:10b6:408:10a::13)\n by DM8PR12MB5464.namprd12.prod.outlook.com (2603:10b6:8:3d::13) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.24; Mon, 21 Feb\n 2022 23:03:32 +0000",
            "from BN8NAM11FT012.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:10a:cafe::47) by BN9P221CA0010.outlook.office365.com\n (2603:10b6:408:10a::13) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16 via Frontend\n Transport; Mon, 21 Feb 2022 23:03:32 +0000",
            "from mail.nvidia.com (12.22.5.235) by\n BN8NAM11FT012.mail.protection.outlook.com (10.13.177.55) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4995.15 via Frontend Transport; Mon, 21 Feb 2022 23:03:32 +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 Mon, 21 Feb 2022 23:03:31 +0000",
            "from pegasus01.mtr.labs.mlnx (10.126.230.35) by\n rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.9;\n Mon, 21 Feb 2022 15:03:27 -0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=eM6lefn/17umfCugpbqTpy8Uqhe0OucYemoa4/uAJC/GgiBOWk6VQvaes4oG+zRkE16WGtzX0IiNfUvkjjbfd626/8HI1GRNdoThaSRoBzJHtiqTxK80Y9f6YEVedhddQFc6E0t2L2qIv8pDU45RxBJt7qTxDvqrBNqSZffwjf//BbmunsPn4cABdzcSBMjm8urzV8HC7NR7wVCDpuOkObXE7+WhrmTshMvJBzggvDe/DzZrAZCg/fdSAmpLuBQniu1sd156uSWw9+YPzJBP9Jhe7p2QiG+B8S6+AbMeYZi1vQa5pMXwMsJYbj3FQ3UnhoF1dIyjTjvXk7ml8rRVpA==",
        "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=6isooIwRS2RhH47ayqKlrXJLzETLRVD30seqGY5i8yo=;\n b=aj3KvDrVsJEtFNKnEbE+yrcZE5EMG2piBVGHj7lGLxnwLbjtVtOgEm1J230bnt2cpUthbGbBOJ3dfVyNrVWPuuLRPqk2Q1J87yN49B2R+IAPDIPYx5NMiewnfZPsK6pvy/FifrHpG191HzWCswRosB3EYlXSoELdd3Dgy8umQRy1NGSZwJItT2ICkMi0xSGmAhW8sEvXFaBYDPJli3KVIkdqkWIPKc+DYjeGmRxb6LOrdwiuzNW6yRf85Dj02JBFZwncniMR3MCz+TzDKhpoSORla4slEomC1gqGoJM1WwKT79IKUY8qYzCZ5bSSkph/dDEcc4N/jGxyfrrO4BTSOQ==",
        "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=6isooIwRS2RhH47ayqKlrXJLzETLRVD30seqGY5i8yo=;\n b=pcA/x1CRC4flGpEOlyjISfEd0AWCqyQuuhkoHuZY8vb7x9vTzqDu7OkAx5qVGA+y0ozcZbkeJFBpvHXb/V5k+y+RX88uoxfzIxtsmrgmfigLXl2GudwGomGVDmnl2EuIzjfHgda6XCKNHiTe0tUkLURdosISuZ9m610yXAJWv6PuGG/QIMWNgSKNtPQXBNER7rh0LrTdGAwUGVVUgIddbD+MRa72YP4YhB9d54ik9v0KRXFJd3FvQeUCNalbTtvVp8kUgkvBJQe/1hT1Y+5r33loBQKmjORX9dSL85b7hOGqVOIs1qbwdxHSrBp1E6IjmrJXpnSLaASrTErC9dyrkg==",
        "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 v9 11/11] app/testpmd: add async indirect actions operations",
        "Date": "Tue, 22 Feb 2022 01:02:40 +0200",
        "Message-ID": "<20220221230240.2409665-12-akozyrev@nvidia.com>",
        "X-Mailer": "git-send-email 2.18.2",
        "In-Reply-To": "<20220221230240.2409665-1-akozyrev@nvidia.com>",
        "References": "<20220220034409.2226860-1-akozyrev@nvidia.com>\n <20220221230240.2409665-1-akozyrev@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.126.230.35]",
        "X-ClientProxiedBy": "rnnvmail203.nvidia.com (10.129.68.9) To\n rnnvmail201.nvidia.com (10.129.68.8)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "109c17aa-3355-465f-993f-08d9f58e61b8",
        "X-MS-TrafficTypeDiagnostic": "DM8PR12MB5464:EE_|MWHPR1201MB0222:EE_",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <DM8PR12MB54642FC679C03B549CC53F0CAF3A9@DM8PR12MB5464.namprd12.prod.outlook.com>",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n XKA9LY4Yu//XzqiSjSmCEdjK5ynDvs8RHR/ZqhM4Uv6IRS+ozkuutI9Xm2DCeAwQIoOzg7bmtOytNxq3k+x4XqdIWXyUnJZkhwhX+y2hYi6nWttvs0knxmPiKjO713J1SZg+IGLOD3SZRDD+0K8ni75ag3XH4dVzTP9b+626OWZAJaK9m3T1ElLHfyDscuv2oZLcAc2Es14tUx3PK2oRqbeNg/Hw+wmR5NaGpVf/o3KDQIGnlyTvWNdDn7i4AykmkmxxLlwp/8vumteLXaw5VuNelqEdZOWQ8C6ZVsmLIY7lWfZ/ABKgsrcs4Jvdg1B4BVfcQqrPWMRRZpBA4nNHvM+AoIKnfYQHhCWMIPUJSe6MDH6aFTlAyan00wS49GVAQwSuIYrQuxh/57JcjXy9MRD2Tk4XbZmo1ZeXGh70v9PS62dKiRt2pLHkGt1lwU+IAiNh2imGEeWG06OlYL3KAhxiBruqM7MK0/Ele5t5B9ZzmVzuExfysznKcNRSLz1hLxmX7eaA/LM7PbfvhYuWczZDN66qMJbDK5Z+6Yd8HbszgrPqeU+UguxjTSrQXLeaZJS4mRzdCviIwfb4zHONATJMjtx+oMW8peXaqEe6++0mCjfc3oZyZM960RfNvQdid0J7TWSJ6UlMWRkHchwnQsHY9x6WwE1l+QwII6zzPZyFo8oPCq4bMPnHj5jBkVrNU2MgDZxjKTEZHMryoC/Shw==",
        "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)(6916009)(54906003)(86362001)(7416002)(5660300002)(8936002)(70586007)(4326008)(508600001)(40460700003)(8676002)(316002)(6666004)(30864003)(83380400001)(2906002)(26005)(16526019)(186003)(2616005)(70206006)(1076003)(36756003)(336012)(426003)(81166007)(356005)(36860700001)(47076005)(82310400004)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "21 Feb 2022 23:03:32.1409 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 109c17aa-3355-465f-993f-08d9f58e61b8",
        "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 BN8NAM11FT012.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MWHPR1201MB0222",
        "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_async_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 d4b72724e6..b5f1191e55 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -127,6 +127,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@@ -140,6 +141,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@@ -1135,6 +1156,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@@ -1144,6 +1166,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@@ -2260,6 +2312,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@@ -2873,6 +2931,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@@ -2926,6 +2991,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@@ -6501,6 +6650,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@@ -10228,6 +10481,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 158d1b38a8..cc8e7aa138 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -2598,6 +2598,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_op_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_async_action_handle_create(port_id, queue_id,\n+\t\t\t\t\t&attr, conf, action, NULL, &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_op_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_async_action_handle_destroy(port_id,\n+\t\t\t\tqueue_id, &attr, pia->handle, NULL, &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_op_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_async_action_handle_update(port_id, queue_id, &attr,\n+\t\t\t\t    action_handle, action, NULL, &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 5ea2408a0b..31f766c965 100644\n--- a/app/test-pmd/testpmd.h\n+++ b/app/test-pmd/testpmd.h\n@@ -940,6 +940,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 5080ddb256..1083c6d538 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -4792,6 +4792,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_async_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@@ -4821,6 +4846,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_async_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@@ -4844,6 +4888,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_async_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": [
        "v9",
        "11/11"
    ]
}