get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1525713,
    "url": "http://patchwork.ozlabs.org/api/patches/1525713/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/5686a23e40e8eb893740386c3c4bba000f593f02.1631094144.git.grive@u256.net/",
    "project": {
        "id": 47,
        "url": "http://patchwork.ozlabs.org/api/projects/47/",
        "name": "Open vSwitch",
        "link_name": "openvswitch",
        "list_id": "ovs-dev.openvswitch.org",
        "list_email": "ovs-dev@openvswitch.org",
        "web_url": "http://openvswitch.org/",
        "scm_url": "git@github.com:openvswitch/ovs.git",
        "webscm_url": "https://github.com/openvswitch/ovs",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<5686a23e40e8eb893740386c3c4bba000f593f02.1631094144.git.grive@u256.net>",
    "list_archive_url": null,
    "date": "2021-09-08T09:47:29",
    "name": "[ovs-dev,v5,05/27] netdev-offload-dpdk: Use per-netdev offload metadata",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "59cf00ed79adb5dba731e54fc45a51d5d02444f8",
    "submitter": {
        "id": 78795,
        "url": "http://patchwork.ozlabs.org/api/people/78795/",
        "name": "Gaëtan Rivet",
        "email": "grive@u256.net"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/openvswitch/patch/5686a23e40e8eb893740386c3c4bba000f593f02.1631094144.git.grive@u256.net/mbox/",
    "series": [
        {
            "id": 261424,
            "url": "http://patchwork.ozlabs.org/api/series/261424/",
            "web_url": "http://patchwork.ozlabs.org/project/openvswitch/list/?series=261424",
            "date": "2021-09-08T09:47:24",
            "name": "dpif-netdev: Parallel offload processing",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/261424/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1525713/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/1525713/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ovs-dev-bounces@openvswitch.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ovs-dev@openvswitch.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "ovs-dev@lists.linuxfoundation.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=u256.net header.i=@u256.net header.a=rsa-sha256\n header.s=fm2 header.b=YZg17u3Y;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=messagingengine.com header.i=@messagingengine.com\n header.a=rsa-sha256 header.s=fm3 header.b=oWGjw/Ud;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.133; helo=smtp2.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
            "smtp4.osuosl.org (amavisd-new);\n dkim=pass (2048-bit key) header.d=u256.net header.b=\"YZg17u3Y\";\n dkim=pass (2048-bit key) header.d=messagingengine.com\n header.b=\"oWGjw/Ud\""
        ],
        "Received": [
            "from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4H4HPw24pxz9sW8\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  8 Sep 2021 19:48:20 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp2.osuosl.org (Postfix) with ESMTP id 647794052F;\n\tWed,  8 Sep 2021 09:48:16 +0000 (UTC)",
            "from smtp2.osuosl.org ([127.0.0.1])\n\tby localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id pnXYQBp_mDD2; Wed,  8 Sep 2021 09:48:14 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp2.osuosl.org (Postfix) with ESMTPS id 1A1CB40531;\n\tWed,  8 Sep 2021 09:48:13 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 20955C001E;\n\tWed,  8 Sep 2021 09:48:12 +0000 (UTC)",
            "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 3BA25C0028\n for <ovs-dev@openvswitch.org>; Wed,  8 Sep 2021 09:48:11 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp4.osuosl.org (Postfix) with ESMTP id 176A3406F6\n for <ovs-dev@openvswitch.org>; Wed,  8 Sep 2021 09:48:11 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id gwLo4LamA5Ns for <ovs-dev@openvswitch.org>;\n Wed,  8 Sep 2021 09:48:10 +0000 (UTC)",
            "from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com\n [64.147.123.19])\n by smtp4.osuosl.org (Postfix) with ESMTPS id 0BEEC406EB\n for <ovs-dev@openvswitch.org>; Wed,  8 Sep 2021 09:48:09 +0000 (UTC)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.west.internal (Postfix) with ESMTP id 6C66332009C0;\n Wed,  8 Sep 2021 05:48:09 -0400 (EDT)",
            "from mailfrontend2 ([10.202.2.163])\n by compute1.internal (MEProxy); Wed, 08 Sep 2021 05:48:09 -0400",
            "by mail.messagingengine.com (Postfix) with ESMTPA; Wed,\n 8 Sep 2021 05:48:08 -0400 (EDT)"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "from auto-whitelisted by SQLgrey-1.8.0",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=u256.net; h=from\n :to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm2; bh=tJkZNuudbncWD\n IHcOgXCeK6SJeF6pE4RAm04wwVTJhY=; b=YZg17u3YbOoRZ6YoodxHw9KVD0xlF\n EoC2/G0vJ/QY1KfBxRQocvQCOaLbdz+BXfwIQvoWS3WSfJdKiIIpBP+PsGtIJpB+\n M5mHHT/zuAd0TJ8ZI24ERNktVlh1biMSpfORGFTDbhUH+mHavUo8WFbwR4q53frK\n 81J8iLNYum3pRLymcnV7M3QYF8RoPehbuFtPLetvQ5pkgIppJuetE8YMUBzKCHIp\n P7Q44bGo+in0mQE5Rg5oa4YwtSPJfjMjw+QWqmp6iJHdHCqi2zDA2DDQLsLzZKCd\n UFYKWmeSd+HuhMoLnuIZ2HH3DV8whu2fBtMELkeQh6FufDfGoLK8JEqLQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm3; bh=tJkZNuudbncWDIHcOgXCeK6SJeF6pE4RAm04wwVTJhY=; b=oWGjw/Ud\n 1xn4vn28TmsUkqhcPXmE6hhCJlHD2t/r/AGJeKwy/8hl65LPVFyJ4qja7XLYP93M\n kwJ/hba/jWQcfUhwAL0bg5XHf+Jwr6YB7Nm3h0PRs3tofIj+NVUPOHaih/rA53D5\n lw4qVRgJVR4aSULU78NIVHN8sJBOexswivk4upah+zhiRcvIAt2iFIii0amyEG/J\n 1M9d/DoEgLcR2gMFwcYPzTPlq0GAu8PVFDdbob+m/Byc8+hkJMXihOt7cNkLPdPs\n wE9ZbI1g3lANpOJqahOLyQAuLkV+Um1JrDfFwhyyQLbp3L1LHQ5WMXUSQMGfLhBP\n 7Occ94qtpBHXyw=="
        ],
        "X-ME-Sender": "<xms:2IY4YU4hxtGEjPiQ5bQQr5WvKusVNmAD54029oj3KSJXmODbGZOBKg>\n <xme:2IY4YV5eJvN_qZD15nz9DcmRYoNXiIQtVo1LAMOnrkVO_bMJMQPkDFQrBElCREsIu\n 6aLZv1EFNRbU35YEO4>",
        "X-ME-Received": "\n <xmr:2IY4YTf6JnpQYoUEAoPEh4ms5kS5PQF6_GmFMyS4dm3GUkpAKpNUiTlwwHMEnut2vdyySLAXolSqSWMXpGrHjAF4SA>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedvtddrudefjedgudekucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefirggvthgr\n nhcutfhivhgvthcuoehgrhhivhgvsehuvdehiedrnhgvtheqnecuggftrfgrthhtvghrnh\n ephefgveffkeetheetfeeifedvheelfeejfeehveduteejhfekuedtkeeiuedvteehnecu\n vehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomhepghhrihhvvg\n esuhdvheeirdhnvght",
        "X-ME-Proxy": "<xmx:2IY4YZJf_aj_uhqp_RLjR-i9sJTL_bTLeOhzsJUtiSqBYQ3a-RBblA>\n <xmx:2IY4YYKhmooLafLfjHybfrGhrHSk8bTFBjRwBNoJ6dtZ7TFj9JmUag>\n <xmx:2IY4YawssBHRxa6p3OtW7txmhLLJg4PVsEXrWfQ0-KJTVBK6WhFWvQ>\n <xmx:2YY4YSgLdsCJX4NkhlNBxcKBEpy-GhG_mkCh4UrioFaYv3PvEcKyVg>",
        "From": "Gaetan Rivet <grive@u256.net>",
        "To": "ovs-dev@openvswitch.org",
        "Date": "Wed,  8 Sep 2021 11:47:29 +0200",
        "Message-Id": "\n <5686a23e40e8eb893740386c3c4bba000f593f02.1631094144.git.grive@u256.net>",
        "X-Mailer": "git-send-email 2.31.1",
        "In-Reply-To": "<cover.1631094144.git.grive@u256.net>",
        "References": "<cover.1631094144.git.grive@u256.net>",
        "MIME-Version": "1.0",
        "Cc": "Eli Britstein <elibr@nvidia.com>,\n Maxime Coquelin <maxime.coquelin@redhat.com>",
        "Subject": "[ovs-dev] [PATCH v5 05/27] netdev-offload-dpdk: Use per-netdev\n\toffload metadata",
        "X-BeenThere": "ovs-dev@openvswitch.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "<ovs-dev.openvswitch.org>",
        "List-Unsubscribe": "<https://mail.openvswitch.org/mailman/options/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe>",
        "List-Archive": "<http://mail.openvswitch.org/pipermail/ovs-dev/>",
        "List-Post": "<mailto:ovs-dev@openvswitch.org>",
        "List-Help": "<mailto:ovs-dev-request@openvswitch.org?subject=help>",
        "List-Subscribe": "<https://mail.openvswitch.org/mailman/listinfo/ovs-dev>,\n <mailto:ovs-dev-request@openvswitch.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ovs-dev-bounces@openvswitch.org",
        "Sender": "\"dev\" <ovs-dev-bounces@openvswitch.org>"
    },
    "content": "Add a per-netdev offload data field as part of netdev hw_info structure.\nUse this field in netdev-offload-dpdk to map offload metadata (ufid to\nrte_flow). Use flow API deinit ops to destroy the per-netdev metadata\nwhen deallocating a netdev. Use RCU primitives to ensure coherency\nduring port deletion.\n\nSigned-off-by: Gaetan Rivet <grive@u256.net>\nReviewed-by: Eli Britstein <elibr@nvidia.com>\nReviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>\n---\n lib/netdev-offload-dpdk.c | 126 +++++++++++++++++++++++++++++++++-----\n lib/netdev-offload.h      |   2 +\n 2 files changed, 113 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c\nindex b87a50b40..2d1e31ece 100644\n--- a/lib/netdev-offload-dpdk.c\n+++ b/lib/netdev-offload-dpdk.c\n@@ -28,6 +28,7 @@\n #include \"odp-util.h\"\n #include \"openvswitch/match.h\"\n #include \"openvswitch/vlog.h\"\n+#include \"ovs-rcu.h\"\n #include \"packets.h\"\n #include \"uuid.h\"\n \n@@ -54,7 +55,6 @@ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(600, 600);\n /*\n  * A mapping from ufid to dpdk rte_flow.\n  */\n-static struct cmap ufid_to_rte_flow = CMAP_INITIALIZER;\n \n struct ufid_to_rte_flow_data {\n     struct cmap_node node;\n@@ -66,14 +66,81 @@ struct ufid_to_rte_flow_data {\n     struct netdev *physdev;\n };\n \n+struct netdev_offload_dpdk_data {\n+    struct cmap ufid_to_rte_flow;\n+};\n+\n+static int\n+offload_data_init(struct netdev *netdev)\n+{\n+    struct netdev_offload_dpdk_data *data;\n+\n+    data = xzalloc(sizeof *data);\n+    cmap_init(&data->ufid_to_rte_flow);\n+\n+    ovsrcu_set(&netdev->hw_info.offload_data, (void *) data);\n+\n+    return 0;\n+}\n+\n+static void\n+offload_data_destroy__(struct netdev_offload_dpdk_data *data)\n+{\n+    free(data);\n+}\n+\n+static void\n+offload_data_destroy(struct netdev *netdev)\n+{\n+    struct netdev_offload_dpdk_data *data;\n+    struct ufid_to_rte_flow_data *node;\n+\n+    data = (struct netdev_offload_dpdk_data *)\n+        ovsrcu_get(void *, &netdev->hw_info.offload_data);\n+    if (data == NULL) {\n+        return;\n+    }\n+\n+    if (!cmap_is_empty(&data->ufid_to_rte_flow)) {\n+        VLOG_ERR(\"Incomplete flush: %s contains rte_flow elements\",\n+                 netdev_get_name(netdev));\n+    }\n+\n+    CMAP_FOR_EACH (node, node, &data->ufid_to_rte_flow) {\n+        ovsrcu_postpone(free, node);\n+    }\n+\n+    cmap_destroy(&data->ufid_to_rte_flow);\n+    ovsrcu_postpone(offload_data_destroy__, data);\n+\n+    ovsrcu_set(&netdev->hw_info.offload_data, NULL);\n+}\n+\n+static struct cmap *\n+offload_data_map(struct netdev *netdev)\n+{\n+    struct netdev_offload_dpdk_data *data;\n+\n+    data = (struct netdev_offload_dpdk_data *)\n+        ovsrcu_get(void *, &netdev->hw_info.offload_data);\n+\n+    return data ? &data->ufid_to_rte_flow : NULL;\n+}\n+\n /* Find rte_flow with @ufid. */\n static struct ufid_to_rte_flow_data *\n-ufid_to_rte_flow_data_find(const ovs_u128 *ufid, bool warn)\n+ufid_to_rte_flow_data_find(struct netdev *netdev,\n+                           const ovs_u128 *ufid, bool warn)\n {\n     size_t hash = hash_bytes(ufid, sizeof *ufid, 0);\n     struct ufid_to_rte_flow_data *data;\n+    struct cmap *map = offload_data_map(netdev);\n+\n+    if (!map) {\n+        return NULL;\n+    }\n \n-    CMAP_FOR_EACH_WITH_HASH (data, node, hash, &ufid_to_rte_flow) {\n+    CMAP_FOR_EACH_WITH_HASH (data, node, hash, map) {\n         if (ovs_u128_equals(*ufid, data->ufid)) {\n             return data;\n         }\n@@ -93,8 +160,15 @@ ufid_to_rte_flow_associate(const ovs_u128 *ufid, struct netdev *netdev,\n                            bool actions_offloaded)\n {\n     size_t hash = hash_bytes(ufid, sizeof *ufid, 0);\n-    struct ufid_to_rte_flow_data *data = xzalloc(sizeof *data);\n+    struct cmap *map = offload_data_map(netdev);\n     struct ufid_to_rte_flow_data *data_prev;\n+    struct ufid_to_rte_flow_data *data;\n+\n+    if (!map) {\n+        return NULL;\n+    }\n+\n+    data = xzalloc(sizeof *data);\n \n     /*\n      * We should not simply overwrite an existing rte flow.\n@@ -102,7 +176,7 @@ ufid_to_rte_flow_associate(const ovs_u128 *ufid, struct netdev *netdev,\n      * Thus, if following assert triggers, something is wrong:\n      * the rte_flow is not destroyed.\n      */\n-    data_prev = ufid_to_rte_flow_data_find(ufid, false);\n+    data_prev = ufid_to_rte_flow_data_find(netdev, ufid, false);\n     if (data_prev) {\n         ovs_assert(data_prev->rte_flow == NULL);\n     }\n@@ -113,8 +187,7 @@ ufid_to_rte_flow_associate(const ovs_u128 *ufid, struct netdev *netdev,\n     data->rte_flow = rte_flow;\n     data->actions_offloaded = actions_offloaded;\n \n-    cmap_insert(&ufid_to_rte_flow,\n-                CONST_CAST(struct cmap_node *, &data->node), hash);\n+    cmap_insert(map, CONST_CAST(struct cmap_node *, &data->node), hash);\n     return data;\n }\n \n@@ -122,9 +195,13 @@ static inline void\n ufid_to_rte_flow_disassociate(struct ufid_to_rte_flow_data *data)\n {\n     size_t hash = hash_bytes(&data->ufid, sizeof data->ufid, 0);\n+    struct cmap *map = offload_data_map(data->netdev);\n+\n+    if (!map) {\n+        return;\n+    }\n \n-    cmap_remove(&ufid_to_rte_flow,\n-                CONST_CAST(struct cmap_node *, &data->node), hash);\n+    cmap_remove(map, CONST_CAST(struct cmap_node *, &data->node), hash);\n     if (data->netdev != data->physdev) {\n         netdev_close(data->netdev);\n     }\n@@ -1952,7 +2029,7 @@ netdev_offload_dpdk_flow_put(struct netdev *netdev, struct match *match,\n      * Here destroy the old rte flow first before adding a new one.\n      * Keep the stats for the newly created rule.\n      */\n-    rte_flow_data = ufid_to_rte_flow_data_find(ufid, false);\n+    rte_flow_data = ufid_to_rte_flow_data_find(netdev, ufid, false);\n     if (rte_flow_data && rte_flow_data->rte_flow) {\n         struct get_netdev_odp_aux aux = {\n             .netdev = rte_flow_data->physdev,\n@@ -1994,7 +2071,7 @@ netdev_offload_dpdk_flow_del(struct netdev *netdev OVS_UNUSED,\n {\n     struct ufid_to_rte_flow_data *rte_flow_data;\n \n-    rte_flow_data = ufid_to_rte_flow_data_find(ufid, true);\n+    rte_flow_data = ufid_to_rte_flow_data_find(netdev, ufid, true);\n     if (!rte_flow_data || !rte_flow_data->rte_flow) {\n         return -1;\n     }\n@@ -2008,6 +2085,8 @@ netdev_offload_dpdk_flow_del(struct netdev *netdev OVS_UNUSED,\n static int\n netdev_offload_dpdk_init_flow_api(struct netdev *netdev)\n {\n+    int ret = EOPNOTSUPP;\n+\n     if (netdev_vport_is_vport_class(netdev->netdev_class)\n         && !strcmp(netdev_get_dpif_type(netdev), \"system\")) {\n         VLOG_DBG(\"%s: vport belongs to the system datapath. Skipping.\",\n@@ -2015,7 +2094,19 @@ netdev_offload_dpdk_init_flow_api(struct netdev *netdev)\n         return EOPNOTSUPP;\n     }\n \n-    return netdev_dpdk_flow_api_supported(netdev) ? 0 : EOPNOTSUPP;\n+    if (netdev_dpdk_flow_api_supported(netdev)) {\n+        ret = offload_data_init(netdev);\n+    }\n+\n+    return ret;\n+}\n+\n+static void\n+netdev_offload_dpdk_uninit_flow_api(struct netdev *netdev)\n+{\n+    if (netdev_dpdk_flow_api_supported(netdev)) {\n+        offload_data_destroy(netdev);\n+    }\n }\n \n static int\n@@ -2032,7 +2123,7 @@ netdev_offload_dpdk_flow_get(struct netdev *netdev,\n     struct rte_flow_error error;\n     int ret = 0;\n \n-    rte_flow_data = ufid_to_rte_flow_data_find(ufid, false);\n+    rte_flow_data = ufid_to_rte_flow_data_find(netdev, ufid, false);\n     if (!rte_flow_data || !rte_flow_data->rte_flow) {\n         ret = -1;\n         goto out;\n@@ -2068,13 +2159,17 @@ out:\n static int\n netdev_offload_dpdk_flow_flush(struct netdev *netdev)\n {\n+    struct cmap *map = offload_data_map(netdev);\n     struct ufid_to_rte_flow_data *data;\n \n-    CMAP_FOR_EACH (data, node, &ufid_to_rte_flow) {\n+    if (!map) {\n+        return -1;\n+    }\n+\n+    CMAP_FOR_EACH (data, node, map) {\n         if (data->netdev != netdev && data->physdev != netdev) {\n             continue;\n         }\n-\n         netdev_offload_dpdk_flow_destroy(data);\n     }\n \n@@ -2235,6 +2330,7 @@ const struct netdev_flow_api netdev_offload_dpdk = {\n     .flow_put = netdev_offload_dpdk_flow_put,\n     .flow_del = netdev_offload_dpdk_flow_del,\n     .init_flow_api = netdev_offload_dpdk_init_flow_api,\n+    .uninit_flow_api = netdev_offload_dpdk_uninit_flow_api,\n     .flow_get = netdev_offload_dpdk_flow_get,\n     .flow_flush = netdev_offload_dpdk_flow_flush,\n     .hw_miss_packet_recover = netdev_offload_dpdk_hw_miss_packet_recover,\ndiff --git a/lib/netdev-offload.h b/lib/netdev-offload.h\nindex e7fcedae9..b0a0ead0f 100644\n--- a/lib/netdev-offload.h\n+++ b/lib/netdev-offload.h\n@@ -20,6 +20,7 @@\n \n #include \"openvswitch/netdev.h\"\n #include \"openvswitch/types.h\"\n+#include \"ovs-rcu.h\"\n #include \"packets.h\"\n #include \"flow.h\"\n \n@@ -45,6 +46,7 @@ struct netdev_hw_info {\n     bool oor;\t\t/* Out of Offload Resources ? */\n     int offload_count;  /* Pending (non-offloaded) flow count */\n     int pending_count;  /* Offloaded flow count */\n+    OVSRCU_TYPE(void *) offload_data; /* Offload metadata. */\n };\n \n enum hw_info_type {\n",
    "prefixes": [
        "ovs-dev",
        "v5",
        "05/27"
    ]
}