get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 4157,
    "url": "https://patches.dpdk.org/api/patches/4157/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1427445553-3151-2-git-send-email-mukawa@igel.co.jp/",
    "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": "<1427445553-3151-2-git-send-email-mukawa@igel.co.jp>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1427445553-3151-2-git-send-email-mukawa@igel.co.jp",
    "date": "2015-03-27T08:39:09",
    "name": "[dpdk-dev,v3,1/5] eal: Fix coding style of eal_pci.c and eal_pci_uio.c",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "45f9e601c87620a8fea25afb05c6294a6954d75f",
    "submitter": {
        "id": 64,
        "url": "https://patches.dpdk.org/api/people/64/?format=api",
        "name": "Tetsuya Mukawa",
        "email": "mukawa@igel.co.jp"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1427445553-3151-2-git-send-email-mukawa@igel.co.jp/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/4157/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/4157/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 44BAC5A85;\n\tFri, 27 Mar 2015 09:39:36 +0100 (CET)",
            "from mail-pd0-f182.google.com (mail-pd0-f182.google.com\n\t[209.85.192.182]) by dpdk.org (Postfix) with ESMTP id 3F5243238\n\tfor <dev@dpdk.org>; Fri, 27 Mar 2015 09:39:30 +0100 (CET)",
            "by pdbop1 with SMTP id op1so89904730pdb.2\n\tfor <dev@dpdk.org>; Fri, 27 Mar 2015 01:39:29 -0700 (PDT)",
            "from localhost.localdomain (napt.igel.co.jp. [219.106.231.132])\n\tby mx.google.com with ESMTPSA id\n\tfz1sm1396671pbb.12.2015.03.27.01.39.27\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tFri, 27 Mar 2015 01:39:28 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=fhrk1ljHNgJD/TSalurDjqBjxWLgOvbzpz5BlRytGeY=;\n\tb=I8k9kle3FYD6gnIeL1UM6g6K3j5103t+Vewt7fdRWvLv54wEhagf2k3KoFfgd7J4kL\n\tuBR1XNOY362ZOIReiq26+dgI4zruH6wfUPCvTX2A0pCYKVplU6HmEuekV34C6jGsWZI0\n\t6tDeG+rrloQYgeTVHGFLnAdpqTibxqrcq3ZWdFaK2HSyAM2IE8MbBYMxQm3MzYUyY9nk\n\tQ24ZhOTl+byjK7Z2pAORyaliSSCzF40k87iyxSgDtucpoh/ln1en81mRAh/3Takt1LiP\n\tJrDAFjpqibCEQWbYHiDGSm+j3q8dV0yxX6v9dExWGFnhkDn0lS4d2axn4Adzwqarhj92\n\toi+Q==",
        "X-Gm-Message-State": "ALoCoQlP8KQjjno/2S3GVpkgBw3tTaaa17y08epxNqJlsm5C3THhDZh565DEEGKWGyoIHRrqjqVg",
        "X-Received": "by 10.67.14.73 with SMTP id fe9mr33924811pad.10.1427445569622;\n\tFri, 27 Mar 2015 01:39:29 -0700 (PDT)",
        "From": "Tetsuya Mukawa <mukawa@igel.co.jp>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 27 Mar 2015 17:39:09 +0900",
        "Message-Id": "<1427445553-3151-2-git-send-email-mukawa@igel.co.jp>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1427445553-3151-1-git-send-email-mukawa@igel.co.jp>",
        "References": "<1426584645-28828-7-git-send-email-mukawa@igel.co.jp>\n\t<1427445553-3151-1-git-send-email-mukawa@igel.co.jp>",
        "Subject": "[dpdk-dev] [PATCH v3 1/5] eal: Fix coding style of eal_pci.c and\n\teal_pci_uio.c",
        "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>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch fixes coding style of below files in linuxapp and bsdapp.\n - eal_pci.c\n - eal_pci_uio.c\n\nSigned-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>\n---\n lib/librte_eal/bsdapp/eal/eal_pci.c       | 24 +++++++++++++-----------\n lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 12 ++++++++----\n 2 files changed, 21 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c\nindex fe3ef86..3a22b49 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_pci.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_pci.c\n@@ -161,9 +161,10 @@ fail:\n static int\n pci_uio_map_secondary(struct rte_pci_device *dev)\n {\n-        size_t i;\n-        struct uio_resource *uio_res;\n-\tstruct uio_res_list *uio_res_list = RTE_TAILQ_CAST(rte_uio_tailq.head, uio_res_list);\n+\tsize_t i;\n+\tstruct uio_resource *uio_res;\n+\tstruct uio_res_list *uio_res_list =\n+\t\t\tRTE_TAILQ_CAST(rte_uio_tailq.head, uio_res_list);\n \n \tTAILQ_FOREACH(uio_res, uio_res_list, next) {\n \n@@ -179,10 +180,10 @@ pci_uio_map_secondary(struct rte_pci_device *dev)\n \t\t\t    != uio_res->maps[i].addr) {\n \t\t\t\tRTE_LOG(ERR, EAL,\n \t\t\t\t\t\"Cannot mmap device resource\\n\");\n-\t\t\t\treturn (-1);\n+\t\t\t\treturn -1;\n \t\t\t}\n \t\t}\n-\t\treturn (0);\n+\t\treturn 0;\n \t}\n \n \tRTE_LOG(ERR, EAL, \"Cannot find resource for device\\n\");\n@@ -201,7 +202,8 @@ pci_uio_map_resource(struct rte_pci_device *dev)\n \tuint64_t pagesz;\n \tstruct rte_pci_addr *loc = &dev->addr;\n \tstruct uio_resource *uio_res;\n-\tstruct uio_res_list *uio_res_list = RTE_TAILQ_CAST(rte_uio_tailq.head, uio_res_list);\n+\tstruct uio_res_list *uio_res_list =\n+\t\t\tRTE_TAILQ_CAST(rte_uio_tailq.head, uio_res_list);\n \tstruct uio_map *maps;\n \n \tdev->intr_handle.fd = -1;\n@@ -209,7 +211,7 @@ pci_uio_map_resource(struct rte_pci_device *dev)\n \n \t/* secondary processes - use already recorded details */\n \tif (rte_eal_process_type() != RTE_PROC_PRIMARY)\n-\t\treturn (pci_uio_map_secondary(dev));\n+\t\treturn pci_uio_map_secondary(dev);\n \n \tsnprintf(devname, sizeof(devname), \"/dev/uio@pci:%u:%u:%u\",\n \t\t\tdev->addr.bus, dev->addr.devid, dev->addr.function);\n@@ -233,7 +235,7 @@ pci_uio_map_resource(struct rte_pci_device *dev)\n \tif ((uio_res = rte_zmalloc(\"UIO_RES\", sizeof (*uio_res), 0)) == NULL) {\n \t\tRTE_LOG(ERR, EAL,\n \t\t\t\"%s(): cannot store uio mmap details\\n\", __func__);\n-\t\treturn (-1);\n+\t\treturn -1;\n \t}\n \n \tsnprintf(uio_res->path, sizeof(uio_res->path), \"%s\", devname);\n@@ -261,7 +263,7 @@ pci_uio_map_resource(struct rte_pci_device *dev)\n \t\t\t\t\t\t(size_t)maps[j].size)\n \t\t    ) == NULL) {\n \t\t\trte_free(uio_res);\n-\t\t\treturn (-1);\n+\t\t\treturn -1;\n \t\t}\n \n \t\tmaps[j].addr = mapaddr;\n@@ -271,7 +273,7 @@ pci_uio_map_resource(struct rte_pci_device *dev)\n \n \tTAILQ_INSERT_TAIL(uio_res_list, uio_res, next);\n \n-\treturn (0);\n+\treturn 0;\n }\n \n /* Scan one pci sysfs entry, and fill the devices list from it. */\n@@ -311,7 +313,7 @@ pci_scan_one(int dev_pci_fd, struct pci_conf *conf)\n \t/* FreeBSD has no NUMA support (yet) */\n \tdev->numa_node = 0;\n \n-/* parse resources */\n+\t/* parse resources */\n \tswitch (conf->pc_hdr & PCIM_HDRTYPE) {\n \tcase PCIM_HDRTYPE_NORMAL:\n \t\tmax = PCIR_MAX_BAR_0;\ndiff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c\nindex 2d1c69b..9cdf24f 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c\n@@ -92,7 +92,8 @@ pci_uio_map_secondary(struct rte_pci_device *dev)\n {\n \tint fd, i;\n \tstruct mapped_pci_resource *uio_res;\n-\tstruct mapped_pci_res_list *uio_res_list = RTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n+\tstruct mapped_pci_res_list *uio_res_list =\n+\t\t\tRTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n \n \tTAILQ_FOREACH(uio_res, uio_res_list, next) {\n \n@@ -272,7 +273,8 @@ pci_uio_map_resource(struct rte_pci_device *dev)\n \tuint64_t phaddr;\n \tstruct rte_pci_addr *loc = &dev->addr;\n \tstruct mapped_pci_resource *uio_res;\n-\tstruct mapped_pci_res_list *uio_res_list = RTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n+\tstruct mapped_pci_res_list *uio_res_list =\n+\t\t\tRTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n \tstruct pci_map *maps;\n \n \tdev->intr_handle.fd = -1;\n@@ -412,7 +414,8 @@ static struct mapped_pci_resource *\n pci_uio_find_resource(struct rte_pci_device *dev)\n {\n \tstruct mapped_pci_resource *uio_res;\n-\tstruct mapped_pci_res_list *uio_res_list = RTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n+\tstruct mapped_pci_res_list *uio_res_list =\n+\t\t\tRTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n \n \tif (dev == NULL)\n \t\treturn NULL;\n@@ -431,7 +434,8 @@ void\n pci_uio_unmap_resource(struct rte_pci_device *dev)\n {\n \tstruct mapped_pci_resource *uio_res;\n-\tstruct mapped_pci_res_list *uio_res_list = RTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n+\tstruct mapped_pci_res_list *uio_res_list =\n+\t\t\tRTE_TAILQ_CAST(rte_uio_tailq.head, mapped_pci_res_list);\n \n \tif (dev == NULL)\n \t\treturn;\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "1/5"
    ]
}