get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 259,
    "url": "https://patches.dpdk.org/api/patches/259/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/CAKBXKmCi1UMBySckOEVurQoS916O-6gMfFpTETOKkkNzj=ZLpA@mail.gmail.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": "<CAKBXKmCi1UMBySckOEVurQoS916O-6gMfFpTETOKkkNzj=ZLpA@mail.gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/CAKBXKmCi1UMBySckOEVurQoS916O-6gMfFpTETOKkkNzj=ZLpA@mail.gmail.com",
    "date": "2014-08-28T10:54:18",
    "name": "[dpdk-dev,ethdev] Multiple devices with single PCI",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "8cb187f8e19c3511d03f588776b4fcad6476862c",
    "submitter": {
        "id": 62,
        "url": "https://patches.dpdk.org/api/people/62/?format=api",
        "name": "이근홍",
        "email": "dlrmsghd@gmail.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/CAKBXKmCi1UMBySckOEVurQoS916O-6gMfFpTETOKkkNzj=ZLpA@mail.gmail.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/259/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/259/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dlrmsghd@gmail.com>",
        "Received": [
            "from mail-vc0-f174.google.com (mail-vc0-f174.google.com\n\t[209.85.220.174]) by dpdk.org (Postfix) with ESMTP id 82EC75946\n\tfor <dev@dpdk.org>; Thu, 28 Aug 2014 12:50:10 +0200 (CEST)",
            "by mail-vc0-f174.google.com with SMTP id hy4so575394vcb.33\n\tfor <dev@dpdk.org>; Thu, 28 Aug 2014 03:54:18 -0700 (PDT)",
            "by 10.52.181.197 with HTTP; Thu, 28 Aug 2014 03:54:18 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=mime-version:date:message-id:subject:from:to:content-type;\n\tbh=zONXr96e1kf6B8wBriqRqjZSnsSTbtXcGMCyszGzqug=;\n\tb=qDUxyG21soqddX5zRPNa72R3X0gZiHZJJ+2ZVJNDW6xnVsk6jn2S44V8EUQ7KoupRd\n\t8lb5lY36O809DrM8Gjri9ZBXDE38CZR0yM+ZsMNx8pGOYvBtfn9ly+Xc3fnBG7BmtTp/\n\th+STIsT4enmhNcV6xlyiHz/2fmmsxPLmImsgVnofLkxc2tt3yRkEDzuPuMElSeUjx289\n\tvJ++j7/nYnXplbdj654mcpPYVD+JPbI89oMd7Rxg7WytjO5R2dfZQHHgRkGXqOzZG0SU\n\tP6ZtwSsFIEKCKMLypzqaReUWHkirXvVRVRfhRKHWjNxi29j6t0IrhSSqysgJe1nsVjxQ\n\t6POQ==",
        "MIME-Version": "1.0",
        "X-Received": "by 10.220.132.207 with SMTP id c15mr2535632vct.12.1409223258067; \n\tThu, 28 Aug 2014 03:54:18 -0700 (PDT)",
        "Date": "Thu, 28 Aug 2014 19:54:18 +0900",
        "Message-ID": "<CAKBXKmCi1UMBySckOEVurQoS916O-6gMfFpTETOKkkNzj=ZLpA@mail.gmail.com>",
        "From": "=?UTF-8?B?7J206re87ZmN?= <dlrmsghd@gmail.com>",
        "To": "dev@dpdk.org",
        "Content-Type": "text/plain; charset=UTF-8",
        "X-Content-Filtered-By": "Mailman/MimeDel 2.1.15",
        "Subject": "[dpdk-dev] [ethdev] Multiple devices with single PCI",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-List-Received-Date": "Thu, 28 Aug 2014 10:50:10 -0000"
    },
    "content": "Hello.\nI found that DPDK has an abstraction for having multiple devices with\nsingle PCI.\n(RTE_PCI_DRV_MULTIPLE flag)\nHowever, their is a naming collision while registering multiple devices.\nHere is my possible solution.\n\nBest regards.\nKeunhong.",
    "diff": "=====================================================\n\ncommit b4fb08c42584283a7c5fbb251ab23f0e2b5f099e\nAuthor: leeopop <dlrmsghd@gmail.com> 2014-07-24 22:28:12\nCommitter: leeopop <dlrmsghd@gmail.com> 2014-07-24 22:28:12\nParent: bcc733c4780a007f56564277a79309c427367cc2 (ethdev: fix build of\nnamed allocation debug)\nBranches: master, github/master\n\nmultiple dev support\n\n------------------------ lib/librte_ether/rte_ethdev.c\n------------------------\ndiff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex fd1010a..06dda6b 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -204,8 +204,12 @@\n  eth_drv = (struct eth_driver *)pci_drv;\n\n  /* Create unique Ethernet device name using PCI address */\n- snprintf(ethdev_name, RTE_ETH_NAME_MAX_LEN, \"%d:%d.%d\",\n- pci_dev->addr.bus, pci_dev->addr.devid, pci_dev->addr.function);\n+ if(pci_drv->drv_flags & RTE_PCI_DRV_MULTIPLE)\n+ snprintf(ethdev_name, RTE_ETH_NAME_MAX_LEN, \"%d:%d.%d-%d\",\n+ pci_dev->addr.bus, pci_dev->addr.devid, pci_dev->addr.function, nb_ports);\n+ else\n+ snprintf(ethdev_name, RTE_ETH_NAME_MAX_LEN, \"%d:%d.%d\",\n+ pci_dev->addr.bus, pci_dev->addr.devid, pci_dev->addr.function);\n\n  eth_dev = rte_eth_dev_allocate(ethdev_name);\n  if (eth_dev == NULL)\n",
    "prefixes": [
        "dpdk-dev",
        "ethdev"
    ]
}