get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116574,
    "url": "https://patches.dpdk.org/api/patches/116574/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220921145409.511328-4-michaelba@nvidia.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20220921145409.511328-4-michaelba@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220921145409.511328-4-michaelba@nvidia.com",
    "date": "2022-09-21T14:54:09",
    "name": "[3/3] ethdev: add structure for indirect AGE update",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "84c4032634e9e1e6aee2ae7ace203b2999a22151",
    "submitter": {
        "id": 1949,
        "url": "https://patches.dpdk.org/api/people/1949/?format=api",
        "name": "Michael Baum",
        "email": "michaelba@nvidia.com"
    },
    "delegate": {
        "id": 3961,
        "url": "https://patches.dpdk.org/api/users/3961/?format=api",
        "username": "arybchenko",
        "first_name": "Andrew",
        "last_name": "Rybchenko",
        "email": "andrew.rybchenko@oktetlabs.ru"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220921145409.511328-4-michaelba@nvidia.com/mbox/",
    "series": [
        {
            "id": 24755,
            "url": "https://patches.dpdk.org/api/series/24755/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24755",
            "date": "2022-09-21T14:54:06",
            "name": "ethdev: AGE action preparation",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24755/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/116574/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/116574/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 8BC33A00C3;\n\tWed, 21 Sep 2022 16:54:50 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0360241181;\n\tWed, 21 Sep 2022 16:54:39 +0200 (CEST)",
            "from NAM02-SN1-obe.outbound.protection.outlook.com\n (mail-sn1anam02on2071.outbound.protection.outlook.com [40.107.96.71])\n by mails.dpdk.org (Postfix) with ESMTP id 7CDB242B6E\n for <dev@dpdk.org>; Wed, 21 Sep 2022 16:54:37 +0200 (CEST)",
            "from BN9PR03CA0281.namprd03.prod.outlook.com (2603:10b6:408:f5::16)\n by PH7PR12MB6693.namprd12.prod.outlook.com (2603:10b6:510:1b0::6)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Wed, 21 Sep\n 2022 14:54:35 +0000",
            "from BN8NAM11FT092.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:f5:cafe::f7) by BN9PR03CA0281.outlook.office365.com\n (2603:10b6:408:f5::16) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.15 via Frontend\n Transport; Wed, 21 Sep 2022 14:54:35 +0000",
            "from mail.nvidia.com (216.228.117.161) by\n BN8NAM11FT092.mail.protection.outlook.com (10.13.176.180) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.5654.14 via Frontend Transport; Wed, 21 Sep 2022 14:54:34 +0000",
            "from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com\n (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Wed, 21 Sep\n 2022 07:54:21 -0700",
            "from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail202.nvidia.com\n (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Wed, 21 Sep\n 2022 07:54:21 -0700",
            "from nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29 via Frontend\n Transport; Wed, 21 Sep 2022 07:54:19 -0700"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=lQCu3DhFIoHNqBld9DIaLpGFILBXeT9HdvCYkmdWF7J94Lsf2T0+0IrbsgRXSqCcdw3Px6aIichUJh9OT0sLrtjKpUS5q/LaEvNb92Swt+Co5I7KGO/5XbcSWyb+aK7Ta4sQCqbBZpzTF93b9oGLJPGw/vnNUOu05vIHLe8mhnfrS8kQhvfdHyk97q6nX59NWxBepQciOqrp/XLZg37A4zZ8+5cUqThxBrT6AtQzPQqCXGEaJu6k5cnOxhJAImNDbouly3GQ+DLISaanynRiiMoDH5JbyitURuPmaHGGUhvjg9tFhsAGS8HbYvCilzynFWdpklwrx1sD15nz27CctQ==",
        "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=T/uKzlEo01s2UeoQlGhmrD7OqMz/l7caR0TAyvRJuzI=;\n b=GLlmhY/46MIYG3qggi3GGDMOIEq1RmN+Diww0PzhvB43A/O4HzK31jeArpN2GaXHOAx61xfP9z7FA25HVdebE0ZVQVYR9Ike2Iq++Bh398qnOzVUp+fuvfUbfhtKZ/STAhYjhzN5eouM+OXo8klziUEnSeF5pp+OAvGfZ38SqM1Lin5fg/9tfosFynedPRdTFZtUcKu/sWzUP0ImgQqi5EvKIy1KlNaMapouOFiOeGOcjKTUFv69RLXdV0iVeCCKZCDnK9vJD2KMb8+1uScpSzvayHRTma5lZ1bbTqnWFN8U9OUjjTFe67shV/C7xW9p+a16AyXBOHq0zfz92szgyQ==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com;\n dkim=none (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=T/uKzlEo01s2UeoQlGhmrD7OqMz/l7caR0TAyvRJuzI=;\n b=AcWK2XkPzhgbaP5MK81Nhdgj68gH4IC3NOMNx9FnMGRYEZ4H5I/2Wfs3YGRU+zkxqYkYRcrW3u1ZTPHgG8jfKl5nfMHpv4BdBJ0HT/v23hRQmHRr+gvCwxaVVwJFZJ/SznbROBNNdNCSdopquRE+v6RsFRKpnvzlDQ09eeLnncfDVLrz20pv6//0Kr67SwzAYAQbM/D2z8K43+7tsNVqHGsPNQ52iYboTjDSL8ns9sGpoxjfNQ9dhbLVzHWpT6h4lf2/N/uvacow/kkmHoPNm5DG5vSlVtlf8DOZUQBOrVS4gNQj8L3iehL0WqHyBgqRsxlD91tT6HH92SG9zutE6A==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.117.161)\n smtp.mailfrom=nvidia.com;\n 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 216.228.117.161 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C",
        "From": "Michael Baum <michaelba@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Matan Azrad <matan@nvidia.com>, Raslan Darawsheh <rasland@nvidia.com>,\n \"Ori Kam\" <orika@nvidia.com>",
        "Subject": "[PATCH 3/3] ethdev: add structure for indirect AGE update",
        "Date": "Wed, 21 Sep 2022 17:54:09 +0300",
        "Message-ID": "<20220921145409.511328-4-michaelba@nvidia.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220921145409.511328-1-michaelba@nvidia.com>",
        "References": "<20220921145409.511328-1-michaelba@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "BN8NAM11FT092:EE_|PH7PR12MB6693:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "4d380e85-4e54-4407-ca95-08da9be132ed",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n clYV+oHNEUHd19UbdeBsbVTSmpQeq8KNU5BjzmWb1c4o31aYoZ752jzO5hABmYQuJgzarrYzHWqzIq9xp5tmOkG9t5lZvoODTU/XwdLL16lUcV0gp4iu9vEi9lYHFIBiMllO0sAp9hmReyPAhmKMwckp/JtP+zLXCV/jzDxiOkuKdlMCSQlOciPTTeDhCHhHPrctlK7eZGsXotYnNma5EarK6APIIb9cLyC2Rod3d5bpwugcHtt8Z/CSY/D9xqW1u1YMAa3tdbaNneVCBRiHxzrA0i1bWlMkxhd/9OQZr81YZkuuopA4wTpV1QN6D2DZ7tCWygHEAHFnWbzuvyj/X1ySQW+xYFKjXl/RP4KPxr6LyeSe8KPXH5+qg1CBKfQJ1HA1mNpXospThXlt15iIOI+91LFtAN+tq6ZLSmKUduqGCLmW/p+JVxTzy9wje/zcUXQKOkIYcZiHMhSv9twYSa4qWMn+09Lj3X8IQ9BGgZgm6QxbjnNTeUwIXILnn2JVvlv5t6P+qHUCLDmQHMzPbG2HK6JuLxLNoQzy84NjWTDANytOEQ0MimfUU4Ww/+FmgrV9XNASxBjyMJMxn0l7+83nuV/I0Uc5PBHVBrfgPUKiJ/Trl0IDwfUD8C6TqrkOVu3E4SK8Inh4I0Euu2iubLTGxcZ9tKQbB2SpcgmJHzalIpbE59LzGG48n8+eFGcuVHJVrjChfa2j2IxNzISH2QMHQWTeuWCQZbfvVicDIiuvjYZCrEvZovbldnMyrDWUz+px4QXp8PZZ10hSem5A3A==",
        "X-Forefront-Antispam-Report": "CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE;\n SFS:(13230022)(4636009)(136003)(376002)(396003)(346002)(39860400002)(451199015)(46966006)(36840700001)(40470700004)(36756003)(7636003)(36860700001)(82740400003)(8936002)(356005)(186003)(2616005)(1076003)(83380400001)(70206006)(336012)(426003)(86362001)(47076005)(26005)(6286002)(478600001)(41300700001)(54906003)(6916009)(316002)(7696005)(40460700003)(2906002)(70586007)(107886003)(5660300002)(8676002)(6666004)(15650500001)(4326008)(55016003)(82310400005)(40480700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "21 Sep 2022 14:54:34.8706 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 4d380e85-4e54-4407-ca95-08da9be132ed",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT092.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "PH7PR12MB6693",
        "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 a new structure for indirect AGE update.\n\nThis new structure enables:\n1. Update timeout value.\n2. Stop AGE checking.\n3. Start AGE checking.\n4. restart AGE checking.\n\nSigned-off-by: Michael Baum <michaelba@nvidia.com>\n---\n app/test-pmd/cmdline_flow.c        | 66 ++++++++++++++++++++++++++++++\n app/test-pmd/config.c              | 18 +++++++-\n doc/guides/prog_guide/rte_flow.rst | 25 +++++++++--\n lib/ethdev/rte_flow.h              | 27 ++++++++++++\n 4 files changed, 132 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 4fb90a92cb..a315fd9ded 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -583,6 +583,9 @@ enum index {\n \tACTION_SET_IPV6_DSCP_VALUE,\n \tACTION_AGE,\n \tACTION_AGE_TIMEOUT,\n+\tACTION_AGE_UPDATE,\n+\tACTION_AGE_UPDATE_TIMEOUT,\n+\tACTION_AGE_UPDATE_TOUCH,\n \tACTION_SAMPLE,\n \tACTION_SAMPLE_RATIO,\n \tACTION_SAMPLE_INDEX,\n@@ -1869,6 +1872,7 @@ static const enum index next_action[] = {\n \tACTION_SET_IPV4_DSCP,\n \tACTION_SET_IPV6_DSCP,\n \tACTION_AGE,\n+\tACTION_AGE_UPDATE,\n \tACTION_SAMPLE,\n \tACTION_INDIRECT,\n \tACTION_MODIFY_FIELD,\n@@ -2113,6 +2117,14 @@ static const enum index action_age[] = {\n \tZERO,\n };\n \n+static const enum index action_age_update[] = {\n+\tACTION_AGE_UPDATE,\n+\tACTION_AGE_UPDATE_TIMEOUT,\n+\tACTION_AGE_UPDATE_TOUCH,\n+\tACTION_NEXT,\n+\tZERO,\n+};\n+\n static const enum index action_sample[] = {\n \tACTION_SAMPLE,\n \tACTION_SAMPLE_RATIO,\n@@ -2191,6 +2203,9 @@ static int parse_vc_spec(struct context *, const struct token *,\n \t\t\t const char *, unsigned int, void *, unsigned int);\n static int parse_vc_conf(struct context *, const struct token *,\n \t\t\t const char *, unsigned int, void *, unsigned int);\n+static int parse_vc_conf_timeout(struct context *, const struct token *,\n+\t\t\t\t const char *, unsigned int, void *,\n+\t\t\t\t unsigned int);\n static int parse_vc_item_ecpri_type(struct context *, const struct token *,\n \t\t\t\t    const char *, unsigned int,\n \t\t\t\t    void *, unsigned int);\n@@ -6194,6 +6209,30 @@ static const struct token token_list[] = {\n \t\t.next = NEXT(action_age, NEXT_ENTRY(COMMON_UNSIGNED)),\n \t\t.call = parse_vc_conf,\n \t},\n+\t[ACTION_AGE_UPDATE] = {\n+\t\t.name = \"age_update\",\n+\t\t.help = \"update aging parameter\",\n+\t\t.next = NEXT(action_age_update),\n+\t\t.priv = PRIV_ACTION(AGE,\n+\t\t\t\t    sizeof(struct rte_flow_update_age)),\n+\t\t.call = parse_vc,\n+\t},\n+\t[ACTION_AGE_UPDATE_TIMEOUT] = {\n+\t\t.name = \"timeout\",\n+\t\t.help = \"age timeout update value\",\n+\t\t.args = ARGS(ARGS_ENTRY_BF(struct rte_flow_update_age,\n+\t\t\t\t\t   timeout, 24)),\n+\t\t.next = NEXT(action_age_update, NEXT_ENTRY(COMMON_UNSIGNED)),\n+\t\t.call = parse_vc_conf_timeout,\n+\t},\n+\t[ACTION_AGE_UPDATE_TOUCH] = {\n+\t\t.name = \"touch\",\n+\t\t.help = \"this flow is touched\",\n+\t\t.next = NEXT(action_age_update, NEXT_ENTRY(COMMON_BOOLEAN)),\n+\t\t.args = ARGS(ARGS_ENTRY_BF(struct rte_flow_update_age,\n+\t\t\t\t\t   touch, 1)),\n+\t\t.call = parse_vc_conf,\n+\t},\n \t[ACTION_SAMPLE] = {\n \t\t.name = \"sample\",\n \t\t.help = \"set a sample action\",\n@@ -7031,6 +7070,33 @@ parse_vc_conf(struct context *ctx, const struct token *token,\n \treturn len;\n }\n \n+/** Parse action configuration field. */\n+static int\n+parse_vc_conf_timeout(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+\tstruct rte_flow_update_age *update;\n+\n+\t(void)size;\n+\tif (ctx->curr != ACTION_AGE_UPDATE_TIMEOUT)\n+\t\treturn -1;\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+\t/* Point to selected object. */\n+\tctx->object = out->args.vc.data;\n+\tctx->objmask = NULL;\n+\t/* Update the timeout is valid. */\n+\tupdate = (struct rte_flow_update_age *)out->args.vc.data;\n+\tupdate->timeout_valid = 1;\n+\treturn len;\n+}\n+\n /** Parse eCPRI common header type field. */\n static int\n parse_vc_item_ecpri_type(struct context *ctx, const struct token *token,\ndiff --git a/app/test-pmd/config.c b/app/test-pmd/config.c\nindex 31952467fb..45495385d7 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -2065,6 +2065,7 @@ port_action_handle_update(portid_t port_id, uint32_t id,\n \tif (!pia)\n \t\treturn -EINVAL;\n \tswitch (pia->type) {\n+\tcase RTE_FLOW_ACTION_TYPE_AGE:\n \tcase RTE_FLOW_ACTION_TYPE_CONNTRACK:\n \t\tupdate = action->conf;\n \t\tbreak;\n@@ -2904,6 +2905,8 @@ port_queue_action_handle_update(portid_t port_id,\n \tstruct rte_port *port;\n \tstruct rte_flow_error error;\n \tstruct rte_flow_action_handle *action_handle;\n+\tstruct port_indirect_action *pia;\n+\tconst void *update;\n \n \taction_handle = port_action_handle_get_by_id(port_id, id);\n \tif (!action_handle)\n@@ -2915,8 +2918,21 @@ port_queue_action_handle_update(portid_t port_id,\n \t\treturn -EINVAL;\n \t}\n \n+\tpia = action_get_by_id(port_id, id);\n+\tif (!pia)\n+\t\treturn -EINVAL;\n+\n+\tswitch (pia->type) {\n+\tcase RTE_FLOW_ACTION_TYPE_AGE:\n+\t\tupdate = action->conf;\n+\t\tbreak;\n+\tdefault:\n+\t\tupdate = action;\n+\t\tbreak;\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\t\t\t    action_handle, update, NULL, &error)) {\n \t\treturn port_flow_complain(&error);\n \t}\n \tprintf(\"Indirect action #%u update queued\\n\", id);\ndiff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex 588914b231..dae9121279 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -2958,7 +2958,7 @@ Otherwise, RTE_FLOW_ERROR_TYPE_ACTION error will be returned.\n Action: ``AGE``\n ^^^^^^^^^^^^^^^\n \n-Set ageing timeout configuration to a flow.\n+Set aging timeout configuration to a flow.\n \n Event RTE_ETH_EVENT_FLOW_AGED will be reported if\n timeout passed without any matching on the flow.\n@@ -2977,8 +2977,8 @@ timeout passed without any matching on the flow.\n    | ``context``  | user input flow context         |\n    +--------------+---------------------------------+\n \n-Query structure to retrieve ageing status information of a\n-shared AGE action, or a flow rule using the AGE action:\n+Query structure to retrieve aging status information of an\n+indirect AGE action, or a flow rule using the AGE action:\n \n .. _table_rte_flow_query_age:\n \n@@ -2994,6 +2994,25 @@ shared AGE action, or a flow rule using the AGE action:\n    | ``sec_since_last_hit``       | out | Seconds since last traffic hit         |\n    +------------------------------+-----+----------------------------------------+\n \n+Update structure to modify the parameters of an indirect AGE action.\n+The update structure is used by ``rte_flow_action_handle_update()`` function.\n+\n+.. _table_rte_flow_update_age:\n+\n+.. table:: AGE update\n+\n+   +-------------------+--------------------------------------------------------------+\n+   | Field             | Value                                                        |\n+   +===================+==============================================================+\n+   | ``timeout``       | 24 bits timeout value                                        |\n+   +-------------------+--------------------------------------------------------------+\n+   | ``timeout_valid`` | 1 bit, timeout value is valid                                |\n+   +-------------------+--------------------------------------------------------------+\n+   | ``touch``         | 1 bit, touch the AGE action to set ``sec_since_last_hit`` 0  |\n+   +-------------------+--------------------------------------------------------------+\n+   | ``reserved``      | 6 bits reserved, must be zero                                |\n+   +-------------------+--------------------------------------------------------------+\n+\n Action: ``SAMPLE``\n ^^^^^^^^^^^^^^^^^^\n \ndiff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h\nindex d830b02321..a21d437cf8 100644\n--- a/lib/ethdev/rte_flow.h\n+++ b/lib/ethdev/rte_flow.h\n@@ -2954,6 +2954,33 @@ struct rte_flow_query_age {\n \tuint32_t sec_since_last_hit:24; /**< Seconds since last traffic hit. */\n };\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this structure may change without prior notice\n+ *\n+ * RTE_FLOW_ACTION_TYPE_AGE\n+ *\n+ * Update indirect AGE action attributes:\n+ *  - Timeout can be updated including stop/start action:\n+ *     +-------------+-------------+------------------------------+\n+ *     | Old Timeout | New Timeout | Updating                     |\n+ *     +=============+=============+==============================+\n+ *     | 0           | positive    | Start aging with new value   |\n+ *     +-------------+-------------+------------------------------+\n+ *     | positive    | 0           | Stop aging\t\t\t  |\n+ *     +-------------+-------------+------------------------------+\n+ *     | positive    | positive    | Change timeout to new value  |\n+ *     +-------------+-------------+------------------------------+\n+ *  - sec_since_last_hit can be reset.\n+ */\n+struct rte_flow_update_age {\n+\tuint32_t reserved:6; /**< Reserved, must be zero. */\n+\tuint32_t timeout_valid:1; /**< The timeout is valid for update. */\n+\tuint32_t timeout:24; /**< Time in seconds. */\n+\tuint32_t touch:1;\n+\t/**< Means that aging should assume packet passed the aging. */\n+};\n+\n /**\n  * @warning\n  * @b EXPERIMENTAL: this structure may change without prior notice\n",
    "prefixes": [
        "3/3"
    ]
}