get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 112842,
    "url": "http://patches.dpdk.org/api/patches/112842/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220616070743.30658-7-ndabilpuram@marvell.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": "<20220616070743.30658-7-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220616070743.30658-7-ndabilpuram@marvell.com",
    "date": "2022-06-16T07:07:38",
    "name": "[07/12] net/cnxk: add SDP link status",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "de16542c1063c956d155d90bde5a3f898d3ab41d",
    "submitter": {
        "id": 1202,
        "url": "http://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220616070743.30658-7-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 23552,
            "url": "http://patches.dpdk.org/api/series/23552/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23552",
            "date": "2022-06-16T07:07:32",
            "name": "[01/12] common/cnxk: use computed value for wqe skip",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/23552/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/112842/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/112842/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 373C5A00C3;\n\tThu, 16 Jun 2022 09:10:23 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5F5E342BF6;\n\tThu, 16 Jun 2022 09:10:11 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id C858642BEA\n for <dev@dpdk.org>; Thu, 16 Jun 2022 09:10:09 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 25G2AMm2013083\n for <dev@dpdk.org>; Thu, 16 Jun 2022 00:10:09 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3gq83yx522-6\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 16 Jun 2022 00:10:09 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Thu, 16 Jun 2022 00:09:49 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Thu, 16 Jun 2022 00:09:49 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 712133F7075;\n Thu, 16 Jun 2022 00:09:47 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=vLQTelrklYU0ku0h3iWlzsd311IOE11ZDQDcPOUTy04=;\n b=CnhnCI0FfCfro5tNyhuS3ZCIK7j0YV6/3S3FXphjnZAAtgA8qD4iGrwk6VUlpp29WGoI\n vuBXdS0nQQoXom5z39OtA3prYZR7UfhiPAZXRhulbjI6d2rWl/MeVmZc8AMFVwBMbbX5\n JScIfUgb4EH38dSHwfPpXh5gYMVdfkIQHnBoo8OfEuodyjlAhpJuL3wdH1bkPzmrXUdL\n sCxuVigC0gNllqlcKkMrMlalHgjOauhFbF5vqiQhycPh77BgRBSED1UAyNqaNDvnZ4ff\n kB8EPQhIxtWuDYesgZdG4Hvvm8gcc+7ikmsSe8oWJstJWU1dmCbjIxWcEqBXeu0NmlpJ Jw==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "<jerinj@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, \"Kiran\n Kumar K\" <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>,\n Satha Rao <skoteshwar@marvell.com>",
        "CC": "<dev@dpdk.org>, Satananda Burla <sburla@marvell.com>",
        "Subject": "[PATCH 07/12] net/cnxk: add SDP link status",
        "Date": "Thu, 16 Jun 2022 12:37:38 +0530",
        "Message-ID": "<20220616070743.30658-7-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220616070743.30658-1-ndabilpuram@marvell.com>",
        "References": "<20220616070743.30658-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "O5WoUZO9l0_auZ6WeiA_r1bNeEzETuRM",
        "X-Proofpoint-GUID": "O5WoUZO9l0_auZ6WeiA_r1bNeEzETuRM",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514\n definitions=2022-06-16_03,2022-06-15_01,2022-02-23_01",
        "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"
    },
    "content": "From: Satananda Burla <sburla@marvell.com>\n\nAdd SDP link status reporting\n\nSigned-off-by: Satananda Burla <sburla@marvell.com>\n---\n drivers/net/cnxk/cnxk_link.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/cnxk/cnxk_link.c b/drivers/net/cnxk/cnxk_link.c\nindex b1d59e3..127c9e7 100644\n--- a/drivers/net/cnxk/cnxk_link.c\n+++ b/drivers/net/cnxk/cnxk_link.c\n@@ -13,7 +13,7 @@ cnxk_nix_toggle_flag_link_cfg(struct cnxk_eth_dev *dev, bool set)\n \t\tdev->flags &= ~CNXK_LINK_CFG_IN_PROGRESS_F;\n \n \t/* Update link info for LBK */\n-\tif (!set && roc_nix_is_lbk(&dev->nix)) {\n+\tif (!set && (roc_nix_is_lbk(&dev->nix) || roc_nix_is_sdp(&dev->nix))) {\n \t\tstruct rte_eth_link link;\n \n \t\tlink.link_status = RTE_ETH_LINK_UP;\n@@ -124,10 +124,10 @@ cnxk_nix_link_update(struct rte_eth_dev *eth_dev, int wait_to_complete)\n \tRTE_SET_USED(wait_to_complete);\n \tmemset(&link, 0, sizeof(struct rte_eth_link));\n \n-\tif (!eth_dev->data->dev_started || roc_nix_is_sdp(&dev->nix))\n+\tif (!eth_dev->data->dev_started)\n \t\treturn 0;\n \n-\tif (roc_nix_is_lbk(&dev->nix)) {\n+\tif (roc_nix_is_lbk(&dev->nix) || roc_nix_is_sdp(&dev->nix)) {\n \t\tlink.link_status = RTE_ETH_LINK_UP;\n \t\tlink.link_speed = RTE_ETH_SPEED_NUM_100G;\n \t\tlink.link_autoneg = RTE_ETH_LINK_FIXED;\n",
    "prefixes": [
        "07/12"
    ]
}