get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 72616,
    "url": "https://patches.dpdk.org/api/patches/72616/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200701123347.51144-4-jerinj@marvell.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": "<20200701123347.51144-4-jerinj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200701123347.51144-4-jerinj@marvell.com",
    "date": "2020-07-01T12:33:37",
    "name": "[v5,03/13] drivers/vdpa: use log register macro",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "3e19bec6c50fd4d474fb719b5954129d703f832b",
    "submitter": {
        "id": 1188,
        "url": "https://patches.dpdk.org/api/people/1188/?format=api",
        "name": "Jerin Jacob Kollanukkaran",
        "email": "jerinj@marvell.com"
    },
    "delegate": {
        "id": 24651,
        "url": "https://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200701123347.51144-4-jerinj@marvell.com/mbox/",
    "series": [
        {
            "id": 10711,
            "url": "https://patches.dpdk.org/api/series/10711/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10711",
            "date": "2020-07-01T12:33:34",
            "name": "rte_log registration usage improvement",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/10711/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/72616/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/72616/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id D4EF6A0350;\n\tWed,  1 Jul 2020 14:34:27 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BBD941D163;\n\tWed,  1 Jul 2020 14:34:13 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id ABCEA1D147\n for <dev@dpdk.org>; Wed,  1 Jul 2020 14:34:10 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 061CVW4p003190; Wed, 1 Jul 2020 05:34:09 -0700",
            "from sc-exch04.marvell.com ([199.233.58.184])\n by mx0a-0016f401.pphosted.com with ESMTP id 31y0ws4mf9-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 01 Jul 2020 05:34:09 -0700",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH04.marvell.com\n (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Wed, 1 Jul 2020 05:34:08 -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.2 via Frontend\n Transport; Wed, 1 Jul 2020 05:34:08 -0700",
            "from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14])\n by maili.marvell.com (Postfix) with ESMTP id 77ACE3F703F;\n Wed,  1 Jul 2020 05:34:05 -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-transfer-encoding : content-type; s=pfpt0818;\n bh=+GyzkllzaoSrhLtpRQgb3xlb6+/oMt0yrmE9kOHyPvc=;\n b=osfMzBEug0UQ29jjNmoTbaDikOulPeLCZy5XXi2QSFLZjnPTXd0hsNl3pM8wLRef1G7F\n p3bNJ+D1x9Lcwx+QvzRBev2MUem2muF2o43ooanVMIongXGsfNzHP1iBQ6x8laVn2Uct\n cNhb1nzFtX6my+JSVB9Qdf2amqySXia6NOcEN7nuSFj0BQt+iQ++BJUb04N7+2Yx/pxe\n 3DutqAzpnCToBk+L8+2k6KpjvglIuahhwbg4XTBDS+JHbwM9PRKX9kO/zVEliQXqzKTO\n oGuPqmqPHekhunvxih5KquR5vWFCDmvGHBXo7cwzW9QCOa7iwFvNZBtOy+J3Fo92hVHD Ww==",
        "From": "<jerinj@marvell.com>",
        "To": "<dev@dpdk.org>, Xiao Wang <xiao.w.wang@intel.com>, Matan Azrad\n <matan@mellanox.com>, Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "CC": "<thomas@monjalon.net>, <olivier.matz@6wind.com>,\n <david.marchand@redhat.com>, <sachin.saxena@oss.nxp.com>,\n <adamx.dybkowski@intel.com>, Jerin Jacob <jerinj@marvell.com>",
        "Date": "Wed, 1 Jul 2020 18:03:37 +0530",
        "Message-ID": "<20200701123347.51144-4-jerinj@marvell.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20200701123347.51144-1-jerinj@marvell.com>",
        "References": "<20200701104428.4149689-1-jerinj@marvell.com>\n <20200701123347.51144-1-jerinj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687\n definitions=2020-07-01_08:2020-07-01,\n 2020-07-01 signatures=0",
        "Subject": "[dpdk-dev]  [PATCH v5 03/13] drivers/vdpa: use log register macro",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Jerin Jacob <jerinj@marvell.com>\n\nUse log register macro to avoid the code duplication\nin the log registration process.\n\nSigned-off-by: Jerin Jacob <jerinj@marvell.com>\nAcked-by: Adam Dybkowski <adamx.dybkowski@intel.com>\n---\n drivers/vdpa/ifc/ifcvf_vdpa.c | 10 +---------\n drivers/vdpa/mlx5/mlx5_vdpa.c |  7 +++----\n 2 files changed, 4 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c\nindex ec97178dc..78299fa67 100644\n--- a/drivers/vdpa/ifc/ifcvf_vdpa.c\n+++ b/drivers/vdpa/ifc/ifcvf_vdpa.c\n@@ -24,6 +24,7 @@\n \n #include \"base/ifcvf.h\"\n \n+RTE_LOG_REGISTER(ifcvf_vdpa_logtype, pmd.net.ifcvf_vdpa, NOTICE);\n #define DRV_LOG(level, fmt, args...) \\\n \trte_log(RTE_LOG_ ## level, ifcvf_vdpa_logtype, \\\n \t\t\"IFCVF %s(): \" fmt \"\\n\", __func__, ##args)\n@@ -44,8 +45,6 @@ static const char * const ifcvf_valid_arguments[] = {\n \tNULL\n };\n \n-static int ifcvf_vdpa_logtype;\n-\n struct ifcvf_internal {\n \tstruct rte_vdpa_dev_addr dev_addr;\n \tstruct rte_pci_device *pdev;\n@@ -1271,10 +1270,3 @@ static struct rte_pci_driver rte_ifcvf_vdpa = {\n RTE_PMD_REGISTER_PCI(net_ifcvf, rte_ifcvf_vdpa);\n RTE_PMD_REGISTER_PCI_TABLE(net_ifcvf, pci_id_ifcvf_map);\n RTE_PMD_REGISTER_KMOD_DEP(net_ifcvf, \"* vfio-pci\");\n-\n-RTE_INIT(ifcvf_vdpa_init_log)\n-{\n-\tifcvf_vdpa_logtype = rte_log_register(\"pmd.net.ifcvf_vdpa\");\n-\tif (ifcvf_vdpa_logtype >= 0)\n-\t\trte_log_set_level(ifcvf_vdpa_logtype, RTE_LOG_NOTICE);\n-}\ndiff --git a/drivers/vdpa/mlx5/mlx5_vdpa.c b/drivers/vdpa/mlx5/mlx5_vdpa.c\nindex 1113d6cef..feb6148bb 100644\n--- a/drivers/vdpa/mlx5/mlx5_vdpa.c\n+++ b/drivers/vdpa/mlx5/mlx5_vdpa.c\n@@ -608,15 +608,14 @@ static struct rte_pci_driver mlx5_vdpa_driver = {\n \t.drv_flags = 0,\n };\n \n+\n+RTE_LOG_REGISTER(mlx5_vdpa_logtype, pmd.vdpa.mlx5, NOTICE)\n+\n /**\n  * Driver initialization routine.\n  */\n RTE_INIT(rte_mlx5_vdpa_init)\n {\n-\t/* Initialize common log type. */\n-\tmlx5_vdpa_logtype = rte_log_register(\"pmd.vdpa.mlx5\");\n-\tif (mlx5_vdpa_logtype >= 0)\n-\t\trte_log_set_level(mlx5_vdpa_logtype, RTE_LOG_NOTICE);\n \tif (mlx5_glue)\n \t\trte_pci_register(&mlx5_vdpa_driver);\n }\n",
    "prefixes": [
        "v5",
        "03/13"
    ]
}