get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1525735,
    "url": "http://patchwork.ozlabs.org/api/patches/1525735/",
    "web_url": "http://patchwork.ozlabs.org/project/openvswitch/patch/c2d9efb8742ea235f9987c6fbf7469a2a6ba7154.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": "<c2d9efb8742ea235f9987c6fbf7469a2a6ba7154.1631094144.git.grive@u256.net>",
    "list_archive_url": null,
    "date": "2021-09-08T09:47:51",
    "name": "[ovs-dev,v5,27/27] netdev-dpdk: Remove rte-flow API access locks",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "816c3d4b3c05a51a3c5ef4ca1ff58590d61d1538",
    "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/c2d9efb8742ea235f9987c6fbf7469a2a6ba7154.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/1525735/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/1525735/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=j4tl1/AG;\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=hM8EQS6G;\n\tdkim-atps=neutral",
            "ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org\n (client-ip=140.211.166.137; helo=smtp4.osuosl.org;\n envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>)",
            "smtp1.osuosl.org (amavisd-new);\n dkim=pass (2048-bit key) header.d=u256.net header.b=\"j4tl1/AG\";\n dkim=pass (2048-bit key) header.d=messagingengine.com\n header.b=\"hM8EQS6G\""
        ],
        "Received": [
            "from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 4H4HSc6Z69z9t54\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  8 Sep 2021 19:50:40 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby smtp4.osuosl.org (Postfix) with ESMTP id 7AC814273C;\n\tWed,  8 Sep 2021 09:50:38 +0000 (UTC)",
            "from smtp4.osuosl.org ([127.0.0.1])\n\tby localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id aJQrYoG2DPzb; Wed,  8 Sep 2021 09:50:36 +0000 (UTC)",
            "from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56])\n\tby smtp4.osuosl.org (Postfix) with ESMTPS id 855A442689;\n\tWed,  8 Sep 2021 09:50:29 +0000 (UTC)",
            "from lf-lists.osuosl.org (localhost [127.0.0.1])\n\tby lists.linuxfoundation.org (Postfix) with ESMTP id 2B89FC001E;\n\tWed,  8 Sep 2021 09:50:29 +0000 (UTC)",
            "from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])\n by lists.linuxfoundation.org (Postfix) with ESMTP id 4412CC001D\n for <ovs-dev@openvswitch.org>; Wed,  8 Sep 2021 09:50:28 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n by smtp1.osuosl.org (Postfix) with ESMTP id 88DBB835E4\n for <ovs-dev@openvswitch.org>; Wed,  8 Sep 2021 09:48:45 +0000 (UTC)",
            "from smtp1.osuosl.org ([127.0.0.1])\n by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n with ESMTP id 5nVsiGY0CSU7 for <ovs-dev@openvswitch.org>;\n Wed,  8 Sep 2021 09:48:44 +0000 (UTC)",
            "from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com\n [64.147.123.19])\n by smtp1.osuosl.org (Postfix) with ESMTPS id D425A83298\n for <ovs-dev@openvswitch.org>; Wed,  8 Sep 2021 09:48:44 +0000 (UTC)",
            "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.west.internal (Postfix) with ESMTP id 4EAA032009A7;\n Wed,  8 Sep 2021 05:48:44 -0400 (EDT)",
            "from mailfrontend2 ([10.202.2.163])\n by compute1.internal (MEProxy); Wed, 08 Sep 2021 05:48:44 -0400",
            "by mail.messagingengine.com (Postfix) with ESMTPA; Wed,\n 8 Sep 2021 05:48:43 -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=qr9Uj/y0eL4ml\n 1FZQvrigO4X6Lilmw9EPeyolqF+FUo=; b=j4tl1/AGPCq5BnPwC9mzN91xf0Zpo\n t/8Me5O0W8vP7yEoeepjunFo/1Gs5oTM3pjyhTHosNDgutYnAZRKQGks6qRZBntT\n covS0mlfE/4VP1NxyklC+YS1s2aVvyr/VUyLIB4axzs0P04Q4u4ToPGQSiKTP1Kq\n ZC+SbT2jzMy08PJcARANBtlrW1AJTvmxLBiV3atRZrgAymrTeoZuXYGt6f2geW8I\n pwSwZcYTrSvvAVJOjV0dPl/5dYiuj+1sYfDvwaxn6/FgobqNpg1p4bLUks0WAzlv\n 7iYLr2J17T1OTzkr3cHBViNUJNYwqVOKk9+fCWvT1SIMTbo/CIJ5cfatQ==",
            "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=qr9Uj/y0eL4ml1FZQvrigO4X6Lilmw9EPeyolqF+FUo=; b=hM8EQS6G\n wFmfIJUHGdKQUhnd+BDvzX7xaYbanyQxuzdftpWehkogPtm/5OmVv4qsytS23DYC\n nf858PMIPlo30rDvvudraLHHPy8ljT5On8kDWU7cVeJLoyd8GBEWKKpcDCWYCa2a\n z+6RPEatuObbMAxBQ0h1REzhc97zncl8Iu+fyh/UA4AS0DG/Avz7oHT0g1YYnI+I\n E+/xj0Klc0pocTyDcrz6ACCiPIOKIu8yNJ0zs3f3F34YcQ+goDQvMB6YePEpYWzg\n R4zAM9S6YFRg09MqeOivVWv2Tv8Pki5S8CdhmfAp/W5WEZZnTZgdGwZTUJybh+wU\n 0LJ1Vi27GAQmHQ=="
        ],
        "X-ME-Sender": "<xms:-4Y4YcZggNS5FA0aV_QqNFkmHh8EYdwhcXWuK0O-bPJKH4aPTGwfGQ>\n <xme:-4Y4YXY0GQT_woB-sEIdbMftWTLojWqnsT28eM17q-9UySrbKOsTWWnGqsi0nVD7k\n cKkskEDrc7Cd7xARTk>",
        "X-ME-Received": "\n <xmr:-4Y4YW-yBQwJ193jXCKevCs-hhOI-wUbMBVybWnOKVoKVM84ulgm6JP6_BvXRtjDSxutRSYUIICplE98uyFgHermdQ>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedvtddrudefjedgudekucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefirggvthgr\n nhcutfhivhgvthcuoehgrhhivhgvsehuvdehiedrnhgvtheqnecuggftrfgrthhtvghrnh\n epgedtueehiefgieefffevhfehtedvuddtvdfhuefgueeffffhkeeigfejudfhgeeunecu\n ffhomhgrihhnpeguphgukhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh\n grmhepmhgrihhlfhhrohhmpehgrhhivhgvsehuvdehiedrnhgvth",
        "X-ME-Proxy": "<xmx:-4Y4YWof9EGQo8Qdw_bX51qhkc6tRYQvKNNRiW5oXkENE8Pk90SQmg>\n <xmx:-4Y4YXpgJocJft_f2ruvpzEvd9AXMYk0oqqjZXncgKhM0JagxOUg7w>\n <xmx:-4Y4YURMY0MMgP2H_JQ0RDAXpmctBIogSc1o7iWSVtntFUhM1yuDQw>\n <xmx:-4Y4YQDuo5vsHt2D5G1C0PJv_Txho_6q_wKP9oxloTk1vNGa7WnqFA>",
        "From": "Gaetan Rivet <grive@u256.net>",
        "To": "ovs-dev@openvswitch.org",
        "Date": "Wed,  8 Sep 2021 11:47:51 +0200",
        "Message-Id": "\n <c2d9efb8742ea235f9987c6fbf7469a2a6ba7154.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 27/27] netdev-dpdk: Remove rte-flow API access\n\tlocks",
        "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": "The rte_flow DPDK API was made thread-safe [1] in release 20.11.\nNow that the DPDK offload provider in OVS is thread safe, remove the\nlocks.\n\n[1]: http://mails.dpdk.org/archives/dev/2020-October/184251.html\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-dpdk.c | 6 ------\n 1 file changed, 6 deletions(-)",
    "diff": "diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c\nindex 45a96b9be..65f4ef086 100644\n--- a/lib/netdev-dpdk.c\n+++ b/lib/netdev-dpdk.c\n@@ -5247,9 +5247,7 @@ netdev_dpdk_rte_flow_destroy(struct netdev *netdev,\n     struct netdev_dpdk *dev = netdev_dpdk_cast(netdev);\n     int ret;\n \n-    ovs_mutex_lock(&dev->mutex);\n     ret = rte_flow_destroy(dev->port_id, rte_flow, error);\n-    ovs_mutex_unlock(&dev->mutex);\n     return ret;\n }\n \n@@ -5263,9 +5261,7 @@ netdev_dpdk_rte_flow_create(struct netdev *netdev,\n     struct rte_flow *flow;\n     struct netdev_dpdk *dev = netdev_dpdk_cast(netdev);\n \n-    ovs_mutex_lock(&dev->mutex);\n     flow = rte_flow_create(dev->port_id, attr, items, actions, error);\n-    ovs_mutex_unlock(&dev->mutex);\n     return flow;\n }\n \n@@ -5293,9 +5289,7 @@ netdev_dpdk_rte_flow_query_count(struct netdev *netdev,\n     }\n \n     dev = netdev_dpdk_cast(netdev);\n-    ovs_mutex_lock(&dev->mutex);\n     ret = rte_flow_query(dev->port_id, rte_flow, actions, query, error);\n-    ovs_mutex_unlock(&dev->mutex);\n     return ret;\n }\n \n",
    "prefixes": [
        "ovs-dev",
        "v5",
        "27/27"
    ]
}