get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55278,
    "url": "http://patches.dpdk.org/api/patches/55278/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190625035700.2953-3-vattunuru@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": "<20190625035700.2953-3-vattunuru@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190625035700.2953-3-vattunuru@marvell.com",
    "date": "2019-06-25T03:56:58",
    "name": "[v6,2/4] lib/kni: add PCI related information",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ba6260104807092b8b0c6f72c98a29d1d5e8645a",
    "submitter": {
        "id": 1277,
        "url": "http://patches.dpdk.org/api/people/1277/?format=api",
        "name": "Vamsi Attunuru",
        "email": "vattunuru@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190625035700.2953-3-vattunuru@marvell.com/mbox/",
    "series": [
        {
            "id": 5141,
            "url": "http://patches.dpdk.org/api/series/5141/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5141",
            "date": "2019-06-25T03:56:56",
            "name": "add IOVA = VA support in KNI",
            "version": 6,
            "mbox": "http://patches.dpdk.org/series/5141/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55278/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55278/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id F07F91BC15;\n\tTue, 25 Jun 2019 05:57:20 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 0E17B1BC0C\n\tfor <dev@dpdk.org>; Tue, 25 Jun 2019 05:57:18 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n\tby mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx5P3uvve030204; Mon, 24 Jun 2019 20:57:17 -0700",
            "from sc-exch01.marvell.com ([199.233.58.181])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2tb9wx8e5a-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); \n\tMon, 24 Jun 2019 20:57:17 -0700",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tMon, 24 Jun 2019 20:57:15 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Mon, 24 Jun 2019 20:57:15 -0700",
            "from hyd1vattunuru-dt.caveonetworks.com (unknown [10.29.52.72])\n\tby maili.marvell.com (Postfix) with ESMTP id 75ACA3F7040;\n\tMon, 24 Jun 2019 20:57:13 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-type; s=pfpt0818;\n\tbh=1JfbAjLpY1CRLRZF5IeSTP7ohMoWP0e2Wumm/M39mMs=; \n\tb=d/DoFIrCV+PEtBM6ROr6Bi8NXLD4h8n//hNoemcJnpjQyadGz4Tp1JbM25NCYu1DKHkV\n\tF9LOE6zBPnePGXrA2B44TFME79dxt0/KaumraK5z81djnxbBPM49KpO5FOKHUXCjBM7z\n\tl5GbpsTS7uvfY7nouHCM5hLypk98Pm8fn5WLCYx1SyxN8mFrIhx80Yu1VinN/QNkxr3u\n\tXAhhcJfWymcyVJbeHWLQ//0D6lSgU/GwObXhfcoUmRktiDNYqDqSw9AH0T4K5XvWP5GB\n\t97D386Fbzw4wQcYsUK22zfrZjjl9uoHXbDAtuuAOswPM85Ehiqc9sZQJBYXJQ8Kk1wzb\n\tqQ== ",
        "From": "<vattunuru@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<ferruh.yigit@intel.com>, <olivier.matz@6wind.com>,\n\t<arybchenko@solarflare.com>, Vamsi Attunuru <vattunuru@marvell.com>",
        "Date": "Tue, 25 Jun 2019 09:26:58 +0530",
        "Message-ID": "<20190625035700.2953-3-vattunuru@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20190625035700.2953-1-vattunuru@marvell.com>",
        "References": "<20190422061533.17538-1-kirankumark@marvell.com>\n\t<20190625035700.2953-1-vattunuru@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-25_02:, , signatures=0",
        "Subject": "[dpdk-dev] [PATCH v6 2/4] lib/kni: add PCI related information",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Vamsi Attunuru <vattunuru@marvell.com>\n\nPCI related information is needed in KNI kernel module,\nsince it requires iommu domain info for address\ntranslations(using iommu_iova_to_phys() call) when\nKNI runs in IOVA = VA mode.\n\nSigned-off-by: Vamsi Attunuru <vattunuru@marvell.com>\n---\n lib/librte_eal/linux/eal/include/rte_kni_common.h | 7 +++++++\n lib/librte_kni/rte_kni.c                          | 5 +++++\n 2 files changed, 12 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/linux/eal/include/rte_kni_common.h b/lib/librte_eal/linux/eal/include/rte_kni_common.h\nindex 91a1c14..5db5a13 100644\n--- a/lib/librte_eal/linux/eal/include/rte_kni_common.h\n+++ b/lib/librte_eal/linux/eal/include/rte_kni_common.h\n@@ -111,6 +111,13 @@ struct rte_kni_device_info {\n \tvoid * mbuf_va;\n \tphys_addr_t mbuf_phys;\n \n+\t/* PCI info */\n+\tuint16_t vendor_id;           /**< Vendor ID or PCI_ANY_ID. */\n+\tuint16_t device_id;           /**< Device ID or PCI_ANY_ID. */\n+\tuint8_t bus;                  /**< Device bus */\n+\tuint8_t devid;                /**< Device ID */\n+\tuint8_t function;             /**< Device function. */\n+\n \tuint16_t group_id;            /**< Group ID */\n \tuint32_t core_id;             /**< core ID to bind for kernel thread */\n \ndiff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c\nindex e29d0cc..99c4bf5 100644\n--- a/lib/librte_kni/rte_kni.c\n+++ b/lib/librte_kni/rte_kni.c\n@@ -242,6 +242,11 @@ rte_kni_alloc(struct rte_mempool *pktmbuf_pool,\n \t\tkni->ops.port_id = UINT16_MAX;\n \n \tmemset(&dev_info, 0, sizeof(dev_info));\n+\tdev_info.bus = conf->addr.bus;\n+\tdev_info.devid = conf->addr.devid;\n+\tdev_info.function = conf->addr.function;\n+\tdev_info.vendor_id = conf->id.vendor_id;\n+\tdev_info.device_id = conf->id.device_id;\n \tdev_info.core_id = conf->core_id;\n \tdev_info.force_bind = conf->force_bind;\n \tdev_info.group_id = conf->group_id;\n",
    "prefixes": [
        "v6",
        "2/4"
    ]
}