get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 116106,
    "url": "http://patches.dpdk.org/api/patches/116106/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1662674276-29935-1-git-send-email-longli@linuxonhyperv.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": "<1662674276-29935-1-git-send-email-longli@linuxonhyperv.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1662674276-29935-1-git-send-email-longli@linuxonhyperv.com",
    "date": "2022-09-08T21:57:56",
    "name": "[v8,04/18] net/mana: add link update",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "375582c05215e4265c03f64ecd952ae97fc5acda",
    "submitter": {
        "id": 1784,
        "url": "http://patches.dpdk.org/api/people/1784/?format=api",
        "name": "Long Li",
        "email": "longli@linuxonhyperv.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/1662674276-29935-1-git-send-email-longli@linuxonhyperv.com/mbox/",
    "series": [
        {
            "id": 24612,
            "url": "http://patches.dpdk.org/api/series/24612/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24612",
            "date": "2022-09-08T21:54:40",
            "name": "Introduce Microsoft Azure Network Adatper (MANA) PMD",
            "version": 8,
            "mbox": "http://patches.dpdk.org/series/24612/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/116106/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/116106/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 03B04A0548;\n\tThu,  8 Sep 2022 23:58:00 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E579C4280D;\n\tThu,  8 Sep 2022 23:57:59 +0200 (CEST)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 11033410FB\n for <dev@dpdk.org>; Thu,  8 Sep 2022 23:57:58 +0200 (CEST)",
            "by linux.microsoft.com (Postfix, from userid 1004)\n id 66838204A59D; Thu,  8 Sep 2022 14:57:57 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 66838204A59D",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com;\n s=default; t=1662674277;\n bh=LE4Eso67g0+0uHEHpQFpZ8lWv2bl43jhZtLV51i/21c=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:From;\n b=RmkN7QdVmLYCKhBIT87qSukd13Rkfjrx6bIVS6qVYg1bhXUeAy3i4UA8LBR3zUBDd\n TSqZhnKxqROLU8vSUuvPe07JONU/XxylME73Urx3NqSC+40LQgzMqERKgeuRZOGj2w\n 6aQuVTErV/KgUw8MaQY+cU0LiBbVm/vvmxf9N9h8=",
        "From": "longli@linuxonhyperv.com",
        "To": "Ferruh Yigit <ferruh.yigit@xilinx.com>",
        "Cc": "dev@dpdk.org, Ajay Sharma <sharmaajay@microsoft.com>,\n Stephen Hemminger <sthemmin@microsoft.com>, Long Li <longli@microsoft.com>",
        "Subject": "[Patch v8 04/18] net/mana: add link update",
        "Date": "Thu,  8 Sep 2022 14:57:56 -0700",
        "Message-Id": "<1662674276-29935-1-git-send-email-longli@linuxonhyperv.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1662169260-4953-5-git-send-email-longli@linuxonhyperv.com>",
        "References": "<1662169260-4953-5-git-send-email-longli@linuxonhyperv.com>",
        "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>",
        "Reply-To": "longli@microsoft.com",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "From: Long Li <longli@microsoft.com>\n\nThe carrier state is managed by the Azure host. MANA runs as a VF and\nalways reports \"up\".\n\nSigned-off-by: Long Li <longli@microsoft.com>\n---\n doc/guides/nics/features/mana.ini |  1 +\n drivers/net/mana/mana.c           | 18 ++++++++++++++++++\n 2 files changed, 19 insertions(+)",
    "diff": "diff --git a/doc/guides/nics/features/mana.ini b/doc/guides/nics/features/mana.ini\nindex b92a27374c..62554b0a0a 100644\n--- a/doc/guides/nics/features/mana.ini\n+++ b/doc/guides/nics/features/mana.ini\n@@ -4,6 +4,7 @@\n ; Refer to default.ini for the full list of available PMD features.\n ;\n [Features]\n+Link status          = P\n Linux                = Y\n Multiprocess aware   = Y\n Usage doc            = Y\ndiff --git a/drivers/net/mana/mana.c b/drivers/net/mana/mana.c\nindex 112d58a5d3..714e4ede28 100644\n--- a/drivers/net/mana/mana.c\n+++ b/drivers/net/mana/mana.c\n@@ -134,10 +134,28 @@ mana_supported_ptypes(struct rte_eth_dev *dev __rte_unused)\n \treturn ptypes;\n }\n \n+static int\n+mana_dev_link_update(struct rte_eth_dev *dev,\n+\t\t     int wait_to_complete __rte_unused)\n+{\n+\tstruct rte_eth_link link;\n+\n+\t/* MANA has no concept of carrier state, always reporting UP */\n+\tlink = (struct rte_eth_link) {\n+\t\t.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,\n+\t\t.link_autoneg = RTE_ETH_LINK_SPEED_FIXED,\n+\t\t.link_speed = RTE_ETH_SPEED_NUM_100G,\n+\t\t.link_status = RTE_ETH_LINK_UP,\n+\t};\n+\n+\treturn rte_eth_linkstatus_set(dev, &link);\n+}\n+\n static const struct eth_dev_ops mana_dev_ops = {\n \t.dev_configure\t\t= mana_dev_configure,\n \t.dev_close\t\t= mana_dev_close,\n \t.dev_supported_ptypes_get = mana_supported_ptypes,\n+\t.link_update\t\t= mana_dev_link_update,\n };\n \n static const struct eth_dev_ops mana_dev_secondary_ops = {\n",
    "prefixes": [
        "v8",
        "04/18"
    ]
}