get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105990,
    "url": "http://patches.dpdk.org/api/patches/105990/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220118050221.3914960-2-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": "<20220118050221.3914960-2-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220118050221.3914960-2-akozyrev@nvidia.com",
    "date": "2022-01-18T05:02:12",
    "name": "[01/10] ethdev: introduce flow pre-configuration hints",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7fc2dbd0f465f1a0ca8f98962c69b368249769eb",
    "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/20220118050221.3914960-2-akozyrev@nvidia.com/mbox/",
    "series": [
        {
            "id": 21222,
            "url": "http://patches.dpdk.org/api/series/21222/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21222",
            "date": "2022-01-18T05:02:11",
            "name": "ethdev: datapath-focused flow rules management",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/21222/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/105990/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/105990/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 69244A00C3;\n\tTue, 18 Jan 2022 06:02:51 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6E4ED426E3;\n\tTue, 18 Jan 2022 06:02:48 +0100 (CET)",
            "from NAM04-BN8-obe.outbound.protection.outlook.com\n (mail-bn8nam08on2067.outbound.protection.outlook.com [40.107.100.67])\n by mails.dpdk.org (Postfix) with ESMTP id C4B38426E3\n for <dev@dpdk.org>; Tue, 18 Jan 2022 06:02:46 +0100 (CET)",
            "from CY4PR12MB1670.namprd12.prod.outlook.com (2603:10b6:910:4::9) by\n MN2PR12MB4191.namprd12.prod.outlook.com (2603:10b6:208:1d3::7) 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 05:02:45 +0000",
            "from BN8PR12CA0015.namprd12.prod.outlook.com (2603:10b6:408:60::28)\n by CY4PR12MB1670.namprd12.prod.outlook.com (2603:10b6:910:4::9) 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:02:43 +0000",
            "from BN8NAM11FT006.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:60:cafe::b5) by BN8PR12CA0015.outlook.office365.com\n (2603:10b6:408:60::28) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.10 via Frontend\n Transport; Tue, 18 Jan 2022 05:02:43 +0000",
            "from mail.nvidia.com (12.22.5.236) by\n BN8NAM11FT006.mail.protection.outlook.com (10.13.177.21) 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:02:42 +0000",
            "from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com\n (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Tue, 18 Jan 2022 05:02:41 +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:02:38 -0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=bXbdAXtRRi1tcBLQPxQyFo/ucp2lq7bjUczvIV7X9VylWbSzECEM4+3xiSNOGKZXyGNIHF4m9WOI294Ae75EoUm16kP0DmbAokaq9tSbpLF3VVGiLyqBWpMO7qExTnax0jYJXB0Kb1eeECbGkJSFSrQbIKrUL5qnQhP3lmPmMxC8ac0kXD+J7EfeS/EEOlR/otFh5avFR197shk9wJubS/+QXpf1Rdl6AyaV0Q5zw5lwPbhmK3IDnJrpLahLF+4ldQjs426r96Ak++oIzSZOXvRIxmUazCknw1GTSK6H6ut2m6Zr4RScivkei1MWyQhD1dPJARM9olPtE3SEZ7rvcw==",
        "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=FvN0KM5JZaCB/g6dIwzBKwJnmR8zfYpNq9LmEndfKC8=;\n b=MurRIxNtoeX1X4cBw8PC156Ha1m7wI2TYdQBhOIMy4Csv36ubBudPxlfTjyYViDdapyyXFa5ZpiP2GxBpQvWvbTRk2VEaa701naR1nOgO7KnEcGlSAqU3ztHXDsVsXCTNxt/wz0KrJDZWSLzqKSiSOCWQNARlHoWW0QHrXb0F/mV1GQD+voCSI12sL6SDYRPuSwpKYv4ADkmwst9DBJtZMJeh+Frka6A3jxF4KWF2lskByF6MPJlnyIE0AYmXl+YzGqqe1zVn6g2+k2g09D057G36Vshw1gJmINPzNBcakbi5duXQIIFnbUZd32QWvzNKMN6B1Y0+D13rtTGy3Z29g==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 12.22.5.236) 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=FvN0KM5JZaCB/g6dIwzBKwJnmR8zfYpNq9LmEndfKC8=;\n b=ioy9JT1xkbBp7hDrcVbQZ6xzE2MrwXB/jcxDLVaC8I1Wtmztb11YT2hFBAVUBdBbHeb7VFx2VhKhrG6l/h0G/SEGmtQ2FkMlmmEk+CldqxyekxorCvnKNng/5Lj+QlKNQc5UT9pXYfO5kFM4h4k0NFcwuKh4quAEcvUp5AQH43+XX3H5+hDq5ZEucUqohssbiAcFdT9ZviSJv7dKMeJlavbYvGaCwbcoCUZEtE22Bn4Rf3eQOAsHYGNPF4tCt9bCiHb3P519B5Oe6tuhHAL+pU9Qp2iprwYdtA0hdqkLW5oTb0Dhgeud9SWRRN3sZLbA8DGyG0vcX3byQT6hfkV+jQ==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 12.22.5.236)\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.236 as permitted sender) receiver=protection.outlook.com;\n client-ip=12.22.5.236; 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 01/10] ethdev: introduce flow pre-configuration hints",
        "Date": "Tue, 18 Jan 2022 07:02:12 +0200",
        "Message-ID": "<20220118050221.3914960-2-akozyrev@nvidia.com>",
        "X-Mailer": "git-send-email 2.18.2",
        "In-Reply-To": "<20220118050221.3914960-1-akozyrev@nvidia.com>",
        "References": "<20220118050221.3914960-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": "b4ba2db3-5e36-4e0c-dc54-08d9da3fc28c",
        "X-MS-TrafficTypeDiagnostic": "CY4PR12MB1670:EE_|MN2PR12MB4191:EE_",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <CY4PR12MB1670D814D0CB3B0B72D92F63AF589@CY4PR12MB1670.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:10000;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n tezZ3LQW4VQE0gwPrLuH8w3+8UMZ1/SZxGu2zPWvYU1A+UXjT0vIaxTOlKTDCcU2ea1DqkURASQrzgDnWtA7DDT8yINWel78qZdkMnkbIrlOyERrMyQsjbT3CwJLL71eNgczagSLckkSfxg8jcIStfdwUq8Eg49hGRmYKpXz2jnG432NMTIRahGEsZO0mHQ1Lqih0TaOm53Z9r/izZHdlCiZQDkb/8x2fOxh/w5SrpNYeN06Lo8AJUhOnI2HodFmJntjq2RFmbxTc11l0Qb/3El33vkTaVuussRdqjn/i1daxVNDS+tGpqGjhPCbQ3nJKvvqqTgncT/O+yEL/1wuRwjjyKAzFwlMdjaUCKB8poTgOrZKL8GTU+06SX1hn1ZnS1B6fGblT/SIxX1cSX9Js3C6PbRI7nWn7rSMXlO98MpmhkI+P+f0i494sZXNt4q7ypuc94GSFz7PYCc1WRwnmPHFb9KoSp7Wz2usiX1YHMOfPec4YrrW91IAtTOdHgMIghRm7zqrXojEdI4eU3pIypEAZIarh/yn21NAHI5bkF0oJVipb5nOs41Pf33KDfTWwJOZByI93Aeb80Q+R+ACz8o44dIr4zzc8OgwomHXx556lqZO4FeiR5cVUosVFkCnNR4rXbp+Q5ILTvOzYCQBToGMQruE+fM+8bFjPYnTOXEn0ehrhgycYP1/fTRgBAAHOipAUx0MMGMI/8b/NUxXmElPUXMbbOscz+S2NMvVsnD3OPdaPW4dB+g4dwzH5eAiws1RhzPMa1WBWCTRR4ki336Bq3Wu3aVkQ3A7bQInp4I=",
        "X-Forefront-Antispam-Report": "CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE;\n SFS:(4636009)(40470700002)(36840700001)(46966006)(1076003)(70586007)(8676002)(356005)(2906002)(336012)(36860700001)(83380400001)(70206006)(6916009)(8936002)(316002)(6666004)(54906003)(5660300002)(7696005)(36756003)(16526019)(6286002)(86362001)(47076005)(26005)(186003)(4326008)(508600001)(81166007)(82310400004)(426003)(55016003)(40460700001)(2616005)(36900700001);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "18 Jan 2022 05:02:42.9723 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n b4ba2db3-5e36-4e0c-dc54-08d9da3fc28c",
        "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.236];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT006.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MN2PR12MB4191",
        "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": "The flow rules creation/destruction at a large scale incurs a performance\npenalty and may negatively impact the packet processing when used\nas part of the datapath logic. This is mainly because software/hardware\nresources are allocated and prepared during the flow rule creation.\n\nIn order to optimize the insertion rate, PMD may use some hints provided\nby the application at the initialization phase. The rte_flow_configure()\nfunction allows to pre-allocate all the needed resources beforehand.\nThese resources can be used at a later stage without costly allocations.\nEvery PMD may use only the subset of hints and ignore unused ones or\nfail in case the requested configuration is not supported.\n\nSigned-off-by: Alexander Kozyrev <akozyrev@nvidia.com>\n---\n doc/guides/prog_guide/rte_flow.rst     | 37 +++++++++++++++\n doc/guides/rel_notes/release_22_03.rst |  2 +\n lib/ethdev/rte_flow.c                  | 20 ++++++++\n lib/ethdev/rte_flow.h                  | 63 ++++++++++++++++++++++++++\n lib/ethdev/rte_flow_driver.h           |  5 ++\n lib/ethdev/version.map                 |  3 ++\n 6 files changed, 130 insertions(+)",
    "diff": "diff --git a/doc/guides/prog_guide/rte_flow.rst b/doc/guides/prog_guide/rte_flow.rst\nindex b4aa9c47c2..86f8c8bda2 100644\n--- a/doc/guides/prog_guide/rte_flow.rst\n+++ b/doc/guides/prog_guide/rte_flow.rst\n@@ -3589,6 +3589,43 @@ Return values:\n \n - 0 on success, a negative errno value otherwise and ``rte_errno`` is set.\n \n+Rules management configuration\n+------------------------------\n+\n+Configure flow rules management.\n+\n+An application may provide some hints at the initialization phase about\n+rules management configuration and/or expected flow rules characteristics.\n+These hints may be used by PMD to pre-allocate resources and configure NIC.\n+\n+Configuration\n+~~~~~~~~~~~~~\n+\n+This function performs the flow rules management configuration and\n+pre-allocates needed resources beforehand to avoid costly allocations later.\n+Hints about the expected number of counters or meters in an application,\n+for example, allow PMD to prepare and optimize NIC memory layout in advance.\n+``rte_flow_configure()`` must be called before any flow rule is created,\n+but after an Ethernet device is configured.\n+\n+.. code-block:: c\n+\n+   int\n+   rte_flow_configure(uint16_t port_id,\n+                     const struct rte_flow_port_attr *port_attr,\n+                     struct rte_flow_error *error);\n+\n+Arguments:\n+\n+- ``port_id``: port identifier of Ethernet device.\n+- ``port_attr``: port attributes for flow management library.\n+- ``error``: perform verbose error reporting if not NULL. PMDs initialize\n+  this structure in case of error only.\n+\n+Return values:\n+\n+- 0 on success, a negative errno value otherwise and ``rte_errno`` is set.\n+\n .. _flow_isolated_mode:\n \n Flow isolated mode\ndiff --git a/doc/guides/rel_notes/release_22_03.rst b/doc/guides/rel_notes/release_22_03.rst\nindex 16c66c0641..71b3f0a651 100644\n--- a/doc/guides/rel_notes/release_22_03.rst\n+++ b/doc/guides/rel_notes/release_22_03.rst\n@@ -55,6 +55,8 @@ New Features\n      Also, make sure to start the actual text at the margin.\n      =======================================================\n \n+* ethdev: Added ``rte_flow_configure`` API to configure Flow Management\n+  library, allowing to pre-allocate some resources for better performance.\n \n Removed Items\n -------------\ndiff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c\nindex a93f68abbc..5b78780ef9 100644\n--- a/lib/ethdev/rte_flow.c\n+++ b/lib/ethdev/rte_flow.c\n@@ -1391,3 +1391,23 @@ rte_flow_flex_item_release(uint16_t port_id,\n \tret = ops->flex_item_release(dev, handle, error);\n \treturn flow_err(port_id, ret, error);\n }\n+\n+int\n+rte_flow_configure(uint16_t port_id,\n+\t\t   const struct rte_flow_port_attr *port_attr,\n+\t\t   struct rte_flow_error *error)\n+{\n+\tstruct rte_eth_dev *dev = &rte_eth_devices[port_id];\n+\tconst struct rte_flow_ops *ops = rte_flow_ops_get(port_id, error);\n+\n+\tif (unlikely(!ops))\n+\t\treturn -rte_errno;\n+\tif (likely(!!ops->configure)) {\n+\t\treturn flow_err(port_id,\n+\t\t\t\tops->configure(dev, port_attr, error),\n+\t\t\t\terror);\n+\t}\n+\treturn rte_flow_error_set(error, ENOTSUP,\n+\t\t\t\t  RTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\t\t  NULL, rte_strerror(ENOTSUP));\n+}\ndiff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h\nindex 1031fb246b..e145e68525 100644\n--- a/lib/ethdev/rte_flow.h\n+++ b/lib/ethdev/rte_flow.h\n@@ -4853,6 +4853,69 @@ rte_flow_flex_item_release(uint16_t port_id,\n \t\t\t   const struct rte_flow_item_flex_handle *handle,\n \t\t\t   struct rte_flow_error *error);\n \n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Flow engine port configuration attributes.\n+ */\n+__extension__\n+struct rte_flow_port_attr {\n+\t/**\n+\t * Version of the struct layout, should be 0.\n+\t */\n+\tuint32_t version;\n+\t/**\n+\t * Number of counter actions pre-configured.\n+\t * If set to 0, PMD will allocate counters dynamically.\n+\t * @see RTE_FLOW_ACTION_TYPE_COUNT\n+\t */\n+\tuint32_t nb_counters;\n+\t/**\n+\t * Number of aging actions pre-configured.\n+\t * If set to 0, PMD will allocate aging dynamically.\n+\t * @see RTE_FLOW_ACTION_TYPE_AGE\n+\t */\n+\tuint32_t nb_aging;\n+\t/**\n+\t * Number of traffic metering actions pre-configured.\n+\t * If set to 0, PMD will allocate meters dynamically.\n+\t * @see RTE_FLOW_ACTION_TYPE_METER\n+\t */\n+\tuint32_t nb_meters;\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Configure flow rules module.\n+ * To pre-allocate resources as per the flow port attributes\n+ * this configuration function must be called before any flow rule is created.\n+ * Must be called only after Ethernet device is configured, but may be called\n+ * before or after the device is started as long as there are no flow rules.\n+ * No other rte_flow function should be called while this function is invoked.\n+ * This function can be called again to change the configuration.\n+ * Some PMDs may not support re-configuration at all,\n+ * or may only allow increasing the number of resources allocated.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param[in] port_attr\n+ *   Port configuration attributes.\n+ * @param[out] error\n+ *   Perform verbose error reporting if not NULL.\n+ *   PMDs initialize this structure in case of error only.\n+ *\n+ * @return\n+ *   0 on success, a negative errno value otherwise and rte_errno is set.\n+ */\n+__rte_experimental\n+int\n+rte_flow_configure(uint16_t port_id,\n+\t\t   const struct rte_flow_port_attr *port_attr,\n+\t\t   struct rte_flow_error *error);\n+\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/ethdev/rte_flow_driver.h b/lib/ethdev/rte_flow_driver.h\nindex f691b04af4..5f722f1a39 100644\n--- a/lib/ethdev/rte_flow_driver.h\n+++ b/lib/ethdev/rte_flow_driver.h\n@@ -152,6 +152,11 @@ struct rte_flow_ops {\n \t\t(struct rte_eth_dev *dev,\n \t\t const struct rte_flow_item_flex_handle *handle,\n \t\t struct rte_flow_error *error);\n+\t/** See rte_flow_configure() */\n+\tint (*configure)\n+\t\t(struct rte_eth_dev *dev,\n+\t\t const struct rte_flow_port_attr *port_attr,\n+\t\t struct rte_flow_error *err);\n };\n \n /**\ndiff --git a/lib/ethdev/version.map b/lib/ethdev/version.map\nindex c2fb0669a4..7645796739 100644\n--- a/lib/ethdev/version.map\n+++ b/lib/ethdev/version.map\n@@ -256,6 +256,9 @@ EXPERIMENTAL {\n \trte_flow_flex_item_create;\n \trte_flow_flex_item_release;\n \trte_flow_pick_transfer_proxy;\n+\n+\t# added in 22.03\n+\trte_flow_configure;\n };\n \n INTERNAL {\n",
    "prefixes": [
        "01/10"
    ]
}