get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105999,
    "url": "http://patchwork.dpdk.org/api/patches/105999/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220118050958.3915333-11-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": "<20220118050958.3915333-11-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220118050958.3915333-11-akozyrev@nvidia.com",
    "date": "2022-01-18T05:09:58",
    "name": "[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/20220118050958.3915333-11-akozyrev@nvidia.com/mbox/",
    "series": [
        {
            "id": 21222,
            "url": "http://patchwork.dpdk.org/api/series/21222/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=21222",
            "date": "2022-01-18T05:02:11",
            "name": "ethdev: datapath-focused flow rules management",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/21222/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/105999/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/105999/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 B6C33A00C3;\n\tTue, 18 Jan 2022 06:10:43 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A2C05426E2;\n\tTue, 18 Jan 2022 06:10:43 +0100 (CET)",
            "from NAM04-DM6-obe.outbound.protection.outlook.com\n (mail-dm6nam08on2066.outbound.protection.outlook.com [40.107.102.66])\n by mails.dpdk.org (Postfix) with ESMTP id C84F9426EA\n for <dev@dpdk.org>; Tue, 18 Jan 2022 06:10:41 +0100 (CET)",
            "from SN6PR12MB2782.namprd12.prod.outlook.com (2603:10b6:805:73::19)\n by BN8PR12MB2995.namprd12.prod.outlook.com (2603:10b6:408:41::31)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.10; Tue, 18 Jan\n 2022 05:10:39 +0000",
            "from DS7PR07CA0006.namprd07.prod.outlook.com (2603:10b6:5:3af::16)\n by SN6PR12MB2782.namprd12.prod.outlook.com (2603:10b6:805:73::19) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Tue, 18 Jan\n 2022 05:10:38 +0000",
            "from DM6NAM11FT010.eop-nam11.prod.protection.outlook.com\n (2603:10b6:5:3af:cafe::1e) by DS7PR07CA0006.outlook.office365.com\n (2603:10b6:5:3af::16) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.9 via Frontend\n Transport; Tue, 18 Jan 2022 05:10:38 +0000",
            "from mail.nvidia.com (12.22.5.234) by\n DM6NAM11FT010.mail.protection.outlook.com (10.13.172.222) 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 05:10:38 +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 05:10:37 +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; Mon, 17 Jan 2022\n 21:10:34 -0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=XI/+Y84SUs95vn5gaFiFK2HNkVDrH5DhNNv6FXUI2VzD+I7c1TugR0VgBEs+5J2mK5hClLrcevcC2UT6AdBffNjCVixJ6lhYxpwhZRGUyF4OThRJEeDHFg+M8oW6tLfCgTPdIpJirU/Vl2QAoJpKIB4TTc289SyG4ICZ8uiplYlFWPCFvC+HfPoe+OpQsnYy/qL7W5txgyXQ8eY5nFFCJQwiK6vHMap1heAz0Npe5dkH7PP6os+VJ8ZNNb4ChmwUYYBg+lf8ShoymapuEqnroD2ldEyL9U7YCUoyZl+gEPc+Mp6HQL8RsnSHAkGF8hsqouDe+UBPPle1oy2zorFPrQ==",
        "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=Z7XztIL7RBZKoH5OWMXMJgup2swg/s2m4A0pO6Sbqt5pgZJHzlekC5bTXr7vYCULMqWc/umxawdRhf5BhscZDyTapLNtaJwIXs+GkMclrb6ndraWjZ4rI2uYQlTIzxvXvWojbVXqZ8G0DPfKaoLnpteZf7oWatoGtJOJ+FBKJ9kMIDxjeNLn6i7BRouOyqrTjR22IswGJos/NJL7wAOJDNU5QktaL9UJd/Vi74DnROyLKkP0Fr4eYOsvzeEI9JfVDyIX1odwpJ0h+k2VkSv5eEAcRKgFh2Xc8DuXtt/aTBlcSLP5BKfzFpNpdhYyxPfsi/hpEtcpzxQnpqivDJmoAg==",
        "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=ACAYMeAeVY5GdDihtp5KNp7kWzbzwH9MG89A9zDnDYoSJDBHM/qTvrH3ccGp5+eCMRPaHT6Aqh6K2DLYsRv5i2f17SXfVWhYmymZC3zigkxdrjNJuhDaYqXIooRNfSUL7/B9p8IURGW+xSZFyN+otY3tKPhQd5Z+xHGykvu9oEBvRMMm17UUNVl+Pb6FIP/66OcbNDYmMVPBBBuYAG5rk5XQeKYyMKjzSTegGxwaMW4aOx+VIudafuq6mPsYl81ljkB5QmiA7OoeX4iW2vIPsYDFuX9oYn0hu64WDRn7MaOzPV8kWd5cfwcwNQMomTetlvYKOiQKYHKy6UfjJ+h+cw==",
        "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": "[PATCH 10/10] app/testpmd: implement rte flow queue indirect action",
        "Date": "Tue, 18 Jan 2022 07:09:58 +0200",
        "Message-ID": "<20220118050958.3915333-11-akozyrev@nvidia.com>",
        "X-Mailer": "git-send-email 2.18.2",
        "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": "a7f58e26-3b9d-46c8-77cf-08d9da40dde2",
        "X-MS-TrafficTypeDiagnostic": "SN6PR12MB2782:EE_|BN8PR12MB2995:EE_",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <SN6PR12MB2782263A4D79E974A33BEA9BAF589@SN6PR12MB2782.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 PHnxNyLg5+Sjj6/WWjnI3n+JEI0PQoQf/Yf8je4XOsBlEJyQbkkl3IV53wisoJt7PKfABofZGxjs5iit1Bs29IIgi0Jh1w6jYeyH1gYaR1bpnonsncUjYcBxkaPufTMq+uGo7KpuBiRXV1Zs9FmuikhSYOX+mCuWxZpQ46ZpPzl15cRFPS4GC32iEuzmyMopRhLtXp0ES7lz+2aMSvYKG4qVl1vY5lTNny/3hFTwiq4sc0NZwP9KxMNEBEl71uZPOUNmJII5SFbtWG54oG70zprdBz2YGyXhYRhU6+/tnjjeUULXM4lKTqg8NUyJaBRP7MkGUY8daceYZkxICBbZiC8HvRUngPTaz+OpSDRaoVK/CnCfInb7OPrlWUgDjSX7XMkZruP0UuyO7/RJEhxiPVwxzZUOP4QM2/p5edn7lHzx3PA2exsXl3hEA8Mus1h8rOfaXBt6aGibAkKT1sSnfcemuNdmie8SYIYhytWEBBog+5mDzXt0GwWtWVT4zyyYqQj+E8ujiwBObmH3YRldgkhX+ISbxwWev2gXI9HILp/bLeAkrVc5ZNsm6+391TqWh+AbEybp8xIIcux0UlpLFULyOwVSBbH8Eule4pf6psb7N3AO+WqWaCYwS3+UG6yo4rjVx34+G66Sp07F8+1ZT6WkTDSM8bqT5TQsiQBg1yblGBb/vx6qax0mKouJ5ZAWgFPpvDVrIBkVhvry+ZQyvP6tN1wB9N60Qjsb3g0yzLodWXuB08X3RzyF0QjT+XbXZ0x9A+H44RvgwtiO0SRhBVxqfBoFFYsUtKvAROyB8CY=",
        "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)(36840700001)(40470700002)(8936002)(54906003)(356005)(36860700001)(336012)(47076005)(7696005)(82310400004)(6916009)(1076003)(36756003)(8676002)(55016003)(6666004)(83380400001)(316002)(16526019)(26005)(70206006)(81166007)(86362001)(2616005)(426003)(5660300002)(70586007)(6286002)(186003)(30864003)(2906002)(508600001)(4326008)(40460700001)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "18 Jan 2022 05:10:38.3598 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n a7f58e26-3b9d-46c8-77cf-08d9da40dde2",
        "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 DM6NAM11FT010.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "BN8PR12MB2995",
        "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": [
        "10/10"
    ]
}