get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 115669,
    "url": "https://patches.dpdk.org/api/patches/115669/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1661899911-13086-5-git-send-email-longli@linuxonhyperv.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1661899911-13086-5-git-send-email-longli@linuxonhyperv.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1661899911-13086-5-git-send-email-longli@linuxonhyperv.com",
    "date": "2022-08-30T22:51:37",
    "name": "[v6,04/18] net/mana: add link update",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7d93eff4db822b3485fae7808cc565a38f7f1256",
    "submitter": {
        "id": 1784,
        "url": "https://patches.dpdk.org/api/people/1784/?format=api",
        "name": "Long Li",
        "email": "longli@linuxonhyperv.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1661899911-13086-5-git-send-email-longli@linuxonhyperv.com/mbox/",
    "series": [
        {
            "id": 24471,
            "url": "https://patches.dpdk.org/api/series/24471/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24471",
            "date": "2022-08-30T22:51:33",
            "name": "Introduce Microsoft Azure Network Adatper (MANA) PMD",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/24471/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/115669/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/115669/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 80E59A00C5;\n\tWed, 31 Aug 2022 00:52:25 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E485D4282B;\n\tWed, 31 Aug 2022 00:52:00 +0200 (CEST)",
            "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id CA6754282B\n for <dev@dpdk.org>; Wed, 31 Aug 2022 00:51:58 +0200 (CEST)",
            "by linux.microsoft.com (Postfix, from userid 1004)\n id 3E32D2045E22; Tue, 30 Aug 2022 15:51:58 -0700 (PDT)"
        ],
        "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 3E32D2045E22",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com;\n s=default; t=1661899918;\n bh=+MDLvmKLtyFAyh23rF8LadjxoiDGaNWDxwvD0n+tNUs=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:From;\n b=TyXh3XsgFB7qMIY1/ABLLfqHKq9fQIWk1o/BC/GXMwPI3ornJChXA7ZtmiMx7jKV/\n rikuAwcdq785ywi4q5ywEmL10IWJR9XbxIs0SakXoAieD/teSgPb1Tj+slBD5r9ZFN\n 5CBTq9uNWIiVcp2hBH5SfWRc4aEx6z8zMNKBOd4w=",
        "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 v6 04/18] net/mana: add link update",
        "Date": "Tue, 30 Aug 2022 15:51:37 -0700",
        "Message-Id": "<1661899911-13086-5-git-send-email-longli@linuxonhyperv.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1661899911-13086-1-git-send-email-longli@linuxonhyperv.com>",
        "References": "<1661899911-13086-1-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           | 17 +++++++++++++++++\n 2 files changed, 18 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 4559632056..b77d0c29b0 100644\n--- a/drivers/net/mana/mana.c\n+++ b/drivers/net/mana/mana.c\n@@ -125,10 +125,27 @@ static const uint32_t *mana_supported_ptypes(struct rte_eth_dev *dev __rte_unuse\n \treturn ptypes;\n }\n \n+static int mana_dev_link_update(struct rte_eth_dev *dev,\n+\t\t\t\tint 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_200G,\n+\t\t.link_status = RTE_ETH_LINK_UP,\n+\t};\n+\n+\treturn rte_eth_linkstatus_set(dev, &link);\n+}\n+\n 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 const struct eth_dev_ops mana_dev_sec_ops = {\n",
    "prefixes": [
        "v6",
        "04/18"
    ]
}