get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100559,
    "url": "http://patches.dpdk.org/api/patches/100559/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211006044835.3936226-3-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": "<20211006044835.3936226-3-akozyrev@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211006044835.3936226-3-akozyrev@nvidia.com",
    "date": "2021-10-06T04:48:34",
    "name": "[2/3] ethdev: add flow item/action templates",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "d74b433f283ff7971c87ac8fb1aa930634051be1",
    "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/20211006044835.3936226-3-akozyrev@nvidia.com/mbox/",
    "series": [
        {
            "id": 19403,
            "url": "http://patches.dpdk.org/api/series/19403/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19403",
            "date": "2021-10-06T04:48:33",
            "name": "ethdev: datapath-focused flow rules management",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/19403/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/100559/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/100559/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 22FA8A0C45;\n\tWed,  6 Oct 2021 06:49:16 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A253F413BF;\n\tWed,  6 Oct 2021 06:49:04 +0200 (CEST)",
            "from NAM10-MW2-obe.outbound.protection.outlook.com\n (mail-mw2nam10on2057.outbound.protection.outlook.com [40.107.94.57])\n by mails.dpdk.org (Postfix) with ESMTP id D706F413B7\n for <dev@dpdk.org>; Wed,  6 Oct 2021 06:49:02 +0200 (CEST)",
            "from BN9PR03CA0318.namprd03.prod.outlook.com (2603:10b6:408:112::23)\n by DM6PR12MB4603.namprd12.prod.outlook.com (2603:10b6:5:166::11) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.19; Wed, 6 Oct\n 2021 04:49:00 +0000",
            "from BN8NAM11FT046.eop-nam11.prod.protection.outlook.com\n (2603:10b6:408:112:cafe::ef) by BN9PR03CA0318.outlook.office365.com\n (2603:10b6:408:112::23) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.22 via Frontend\n Transport; Wed, 6 Oct 2021 04:49:00 +0000",
            "from mail.nvidia.com (216.228.112.34) by\n BN8NAM11FT046.mail.protection.outlook.com (10.13.177.127) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4587.18 via Frontend Transport; Wed, 6 Oct 2021 04:48:59 +0000",
            "from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com\n (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 6 Oct\n 2021 04:48:56 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=U0XsF6TSkOZ5C7Dn6OIcgw/9B057UVBBxFK8FlOufcIGClVAIEsRaHW7Nl0oZXUyMgEqO1fqVyy1jXuc2YiTPhYCTaHisS0aJTu3j1ClLV/yUdbfO4PTkE1D1SXSBLUeKzhRsYNwm3cwvdiGG6uilpedoIMS0ulbn8CgU4xNaUU5e25ahcB44NplMjupxpNAuw6p8iJEnFqTtA+Vy6xclnwm/H9LbBw9K073vY32ZLi7dUVziW3eK4iAyBEu8w+ngWJoe3ihBQG5RtnAKKZ5rHF5LOqhu1hv5s6+66Znskmg1Em+wDVaDQnQqiaXpk6T6MipZpa+xfyLMIeC7tIAeg==",
        "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=3zexaPHokFKDxS4cE9KItiY9yF05uhHzi7Z3zJbWO1A=;\n b=SFq6E0lcj6lAM4FTsa6+sUB70iaAeDkjiLdVnkpk5cjGL3h2+FOefVAjkQqpHTf832MMZdXUEcO7+cy6D0Y6rQftMGxj8xrctCNEVacHTL9jp0MWX/Dd4jb+UBaEqSWccrPJnmzA3yhFHR9fiKspH2mKJpnX6FxqftCtcJ5tGcklwY6U+srv33QLwg+6eFGv0rNjPE9EqPtaqxU7KGWF2mYcM5m2uKsKK4C5BlPeuu3tNy5QCD2be6EYO+8+qeYFyh7cobo9IqncRpdeOqewsi2gNkNCbd78sKeS7emhmLf0VsmRu3W2X25z5nP5b5ImZ71nfoWFFDG978Nfx1XXkw==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com;\n dmarc=pass (p=quarantine sp=none 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=3zexaPHokFKDxS4cE9KItiY9yF05uhHzi7Z3zJbWO1A=;\n b=SsvqsEPm9HAGkplJ0r9VaRFnyudtNd+5uaz+V2AtK85N37rFOBxK9IpLxz584EY1+tpRdIPEOYDNAuu5xkkyB3KSxwBcMuHMgNe60Ngje5t4aoNVsYkqru3/1bL9RUWsq9Yrv4eMy4O8VTKsmPfbN0XsBJq0dgawDH5OxXdoKkFOCw/2AeACdkfJTf58It1qXtPTCvRAqA3ZxTXLb/beY1KjaoBYlxUYGgVwV7/CaRrGv075VvJVmqLU1kXPnYmupssu02MF/KGEQAHsguVNgBh0Vmhz11taVU4un1L3QnrHraCy/iNs1+CAgnw8zsMEmPHw/L3jD7n5UZpSUxPDHQ==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.112.34)\n smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed)\n header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.112.34 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.112.34; helo=mail.nvidia.com;",
        "From": "Alexander Kozyrev <akozyrev@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<thomas@monjalon.net>, <orika@nvidia.com>, <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>",
        "Date": "Wed, 6 Oct 2021 07:48:34 +0300",
        "Message-ID": "<20211006044835.3936226-3-akozyrev@nvidia.com>",
        "X-Mailer": "git-send-email 2.18.2",
        "In-Reply-To": "<20211006044835.3936226-1-akozyrev@nvidia.com>",
        "References": "<20211006044835.3936226-1-akozyrev@nvidia.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[172.20.187.6]",
        "X-ClientProxiedBy": "HQMAIL107.nvidia.com (172.20.187.13) To\n HQMAIL107.nvidia.com (172.20.187.13)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "17948f5f-9abc-4f76-6037-08d988849cf6",
        "X-MS-TrafficTypeDiagnostic": "DM6PR12MB4603:",
        "X-LD-Processed": "43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr",
        "X-Microsoft-Antispam-PRVS": "\n <DM6PR12MB4603278B6DF5F1983A3A0EC5AFB09@DM6PR12MB4603.namprd12.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:3631;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n 1hH0KptwSRInI6obYJlGyF6QYXG5kPYqOjdvCbIRWqrlefDiuQQId1vBV82N8Bcqr30l8/o+mV31Qi7V5aZfYwb8f+rINrUndmsKdA2LaWKB695qn8hnpcjJtT2IWdYSyYk9QZ2rtEgM38D7roivDZLPV+7lhWZZpAHkXusL3/xRXc7NTvchMeb0+dPLxIwECw+Cj35TRJFnDsSVsvm/8e+weG1DRf3xFrcLQR6kkabRfsDLVWiGFlF3dlInZ43pQ488hgyQ47bt8Qo1RHp6QIBMvwPv0DlHPb5U/4OJr42B+DOdxmq5j10tXeCWVD2HZY6/zEitBBk5rPoK7kDYYbL2cyMO2MWyNJrbqWraks97WAbO5UD8Aqeiew9Tptsd2ovaCgUTOSgDr45S5wKT0bVskXdq8ngWbnhn0mcqeU5eChQeS4xxyUCUfd0NzHyvS8sHSP7VaziirhVV7ZZU6NiJRTIADRVXtrdC798fSgo0pRT4FVQ34QPOl59kVLPxRmMRIVShZ7gbkanl1mh0NwaIEoszpYGnaMZv/gZCtt9MvULrkPbhFIM41XHzA+H++tA6urU9eyqZBF5rSh9GNd8mxNJS9RGu+V9MbypuZRLnpFWZM8ZxKwT38EEymaROSJ2OauSNa33E6xzoA4d4vIHgNR/C2cGTI4MGjmwFDmTKPKVVSOkhPkPyTpTz315W3eK21hp40GlL90IXHCk9Og==",
        "X-Forefront-Antispam-Report": "CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE;\n SFS:(4636009)(36840700001)(46966006)(54906003)(47076005)(36756003)(36860700001)(26005)(83380400001)(86362001)(16526019)(55016002)(7696005)(6286002)(186003)(508600001)(2906002)(6916009)(6666004)(356005)(70586007)(70206006)(426003)(30864003)(336012)(1076003)(5660300002)(4326008)(8936002)(8676002)(316002)(82310400003)(2616005)(7636003);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "06 Oct 2021 04:48:59.7703 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 17948f5f-9abc-4f76-6037-08d988849cf6",
        "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.112.34];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n BN8NAM11FT046.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DM6PR12MB4603",
        "Subject": "[dpdk-dev] [PATCH 2/3] ethdev: add flow item/action templates",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Treating every single flow rule as a completely independent and separate\nentity negatively impacts the flow rules insertion rate. Oftentimes in an\napplication, many flow rules share a common structure (the same item mask\nand/or action list) so they can be grouped and classified together.\nThis knowledge may be used as a source of optimization by a PMD/HW.\n\nThe item template defines common matching fields (the item mask) without\nvalues. The action template holds a list of action types that will be used\ntogether in the same rule. The specific values for items and actions will\nbe given only during the rule creation.\n\nA table combines item and action templates along with shared flow rule\nattributes (group ID, priority and traffic direction). This way a PMD/HW\ncan prepare all the resources needed for efficient flow rules creation in\nthe datapath. To avoid any hiccups due to memory reallocation, the maximum\nnumber of flow rules is defined at table creation time.\n\nThe flow rule creation is done by selecting a table, an item template\nand an action template (which are bound to the table), and setting unique\nvalues for the items and actions.\n\nSigned-off-by: Alexander Kozyrev <akozyrev@nvidia.com>\nSuggested-by: Ori Kam <orika@nvidia.com>\n---\n lib/ethdev/rte_flow.h | 268 ++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 268 insertions(+)",
    "diff": "diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h\nindex c69d503b90..ba3204b17e 100644\n--- a/lib/ethdev/rte_flow.h\n+++ b/lib/ethdev/rte_flow.h\n@@ -4358,6 +4358,274 @@ 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+/**\n+ * Opaque type returned after successfull creation of item template.\n+ * This handle can be used to manage the created item template.\n+ */\n+struct rte_flow_item_template;\n+\n+__extension__\n+struct rte_flow_item_template_attr {\n+\t/**\n+\t * Version of the struct layout, should be 0.\n+\t */\n+\tuint32_t version;\n+\t/* No attributes so far. */\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Create item template.\n+ * The item template defines common matching fields (item mask) without values.\n+ * For example, matching on 5 tuple TCP flow, the template will be\n+ * eth(null) + IPv4(source + dest) + TCP(s_port + d_port),\n+ * while values for each rule will be set during the flow rule creation.\n+ * The order of items in the template must be the same at rule insertion.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param[in] attr\n+ *   Item template attributes.\n+ * @param[in] items\n+ *   Pattern specification (list terminated by the END pattern item).\n+ *   The spec member of an item is not used unless the end member is used.\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+ *   Handle on success, NULL otherwise and rte_errno is set.\n+ */\n+__rte_experimental\n+struct rte_flow_item_template *\n+rte_flow_item_template_create(uint16_t port_id,\n+\t\t\t      const struct rte_flow_item_template_attr *attr,\n+\t\t\t      const struct rte_flow_item items[],\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+ * Destroy item template.\n+ * This function may be called only when\n+ * there are no more tables referencing this template.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param[in] template\n+ *   Handle to the template to be destroyed.\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_item_template_destroy(uint16_t port_id,\n+\t\t\t       struct rte_flow_item_template *template,\n+\t\t\t       struct rte_flow_error *error);\n+\n+/**\n+ * Opaque type returned after successfull creation of action template.\n+ * This handle can be used to manage the created action template.\n+ */\n+struct rte_flow_action_template;\n+\n+__extension__\n+struct rte_flow_action_template_attr {\n+\t/**\n+\t * Version of the struct layout, should be 0.\n+\t */\n+\tuint32_t version;\n+\t/* No attributes so far. */\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Create action template.\n+ * The action template holds a list of action types without values.\n+ * For example, the template to change TCP ports is TCP(s_port + d_port),\n+ * while values for each rule will be set during the flow rule creation.\n+ *\n+ * The order of the action in the template must be kept when inserting rules.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param[in] attr\n+ *   Template attributes.\n+ * @param[in] actions\n+ *   Associated actions (list terminated by the END action).\n+ *   The spec member is only used if the mask is 1.\n+ * @param[in] masks\n+ *   List of actions that marks which of the action's member is constant.\n+ *   A mask has the same format as the corresponding action.\n+ *   If the action field in @p masks is not 0,\n+ *   the corresponding value in an action from @p actions will be the part\n+ *   of the template and used in all flow rules.\n+ *   The order of actions in @p masks is the same as in @p actions.\n+ *   In case of indirect actions present in @p actions,\n+ *   the actual action type should be present in @p mask.\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+ *   handle on success, NULL otherwise and rte_errno is set.\n+ */\n+__rte_experimental\n+struct rte_flow_action_template *\n+rte_flow_action_template_create(uint16_t port_id,\n+\t\t\tconst struct rte_flow_action_template_attr *attr,\n+\t\t\tconst struct rte_flow_action actions[],\n+\t\t\tconst struct rte_flow_action masks[],\n+\t\t\tstruct rte_flow_error *error);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Destroy action template.\n+ * This function may be called only when\n+ * there are no more tables referencing this template.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param[in] template\n+ *   Handle to the template to be destroyed.\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_action_template_destroy(uint16_t port_id,\n+\t\t\tconst struct rte_flow_action_template *template,\n+\t\t\tstruct rte_flow_error *error);\n+\n+\n+/**\n+ * Opaque type returned after successfull creation of table.\n+ * This handle can be used to manage the created table.\n+ */\n+struct rte_flow_table;\n+\n+enum rte_flow_table_mode {\n+\t/**\n+\t * Fixed size, the number of flow rules will be limited.\n+\t * It is possible that some of the rules will not be inserted\n+\t * due to conflicts/lack of space.\n+\t * When rule insertion fails with try again error,\n+\t * the application may use one of the following ways\n+\t * to address this state:\n+\t * 1. Keep this rule processing in the software.\n+\t * 2. Try to offload this rule at a later time,\n+\t *    after some rules have been removed from the hardware.\n+\t * 3. Create a new table and add this rule to the new table.\n+\t */\n+\tRTE_FLOW_TABLE_MODE_FIXED,\n+\t/**\n+\t * Resizable, the PMD/HW will insert all rules.\n+\t * No try again error will be received in this mode.\n+\t */\n+\tRTE_FLOW_TABLE_MODE_RESIZABLE,\n+};\n+\n+/**\n+ * Table attributes.\n+ */\n+struct rte_flow_table_attr {\n+\t/**\n+\t * Version of the struct layout, should be 0.\n+\t */\n+\tuint32_t version;\n+\t/**\n+\t * Flow attributes that will be used in the table.\n+\t */\n+\tstruct rte_flow_attr attr;\n+\t/**\n+\t * Maximum number of flow rules that this table holds.\n+\t * It can be hard or soft limit depending on the mode.\n+\t */\n+\tuint32_t max_rules;\n+\t/**\n+\t * Table mode.\n+\t */\n+\tenum rte_flow_table_mode mode;\n+};\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Create table.\n+ * Table is a group of flow rules with the same flow attributes\n+ * (group ID, priority and traffic direction) defined for it.\n+ * The table holds multiple item and action templates to build a flow rule.\n+ * Each rule is free to use any combination of item and action templates\n+ * and specify particular values for items and actions it would like to change.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param[in] attr\n+ *   Table attributes.\n+ * @param[in] item_templates\n+ *   Array of item templates to be used in this table.\n+ * @param[in] nb_item_templates\n+ *   The number of item templates in the item_templates array.\n+ * @param[in] action_templates\n+ *   Array of action templates to be used in this table.\n+ * @param[in] nb_action_templates\n+ *   The number of action templates in the action_templates array.\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+ *   Handle on success, NULL otherwise and rte_errno is set.\n+ */\n+__rte_experimental\n+struct rte_flow_table *\n+rte_flow_table_create(uint16_t port_id, struct rte_flow_table_attr *attr,\n+\t\t      const struct rte_flow_item_template *item_templates[],\n+\t\t      uint8_t nb_item_templates,\n+\t\t      const struct rte_flow_action_template *action_templates[],\n+\t\t      uint8_t nb_action_templates,\n+\t\t      struct rte_flow_error *error);\n+\n+/**\n+ * @warning\n+ * @b EXPERIMENTAL: this API may change without prior notice.\n+ *\n+ * Destroy table.\n+ * This function may be called only when\n+ * there are no more flow rules referencing this table.\n+ *\n+ * @param port_id\n+ *   Port identifier of Ethernet device.\n+ * @param[in] table\n+ *   Handle to the table to be destroyed.\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_table_destroy(uint16_t port_id, struct rte_flow_table *table,\n+\t\t       struct rte_flow_error *error);\n #ifdef __cplusplus\n }\n #endif\n",
    "prefixes": [
        "2/3"
    ]
}