get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 66449,
    "url": "http://patches.dpdk.org/api/patches/66449/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1583757743-375198-2-git-send-email-vladimir.medvedkin@intel.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": "<1583757743-375198-2-git-send-email-vladimir.medvedkin@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1583757743-375198-2-git-send-email-vladimir.medvedkin@intel.com",
    "date": "2020-03-09T12:42:20",
    "name": "[1/4] app/testfib: fix possible uninitialized warning",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "70069ece31b873ebb887d82e55cbaff07f0da0fe",
    "submitter": {
        "id": 1216,
        "url": "http://patches.dpdk.org/api/people/1216/?format=api",
        "name": "Vladimir Medvedkin",
        "email": "vladimir.medvedkin@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1583757743-375198-2-git-send-email-vladimir.medvedkin@intel.com/mbox/",
    "series": [
        {
            "id": 8846,
            "url": "http://patches.dpdk.org/api/series/8846/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8846",
            "date": "2020-03-09T12:42:19",
            "name": "app/testfib: testfib app various fixes",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/8846/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66449/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/66449/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 8CE57A052E;\n\tMon,  9 Mar 2020 13:42:43 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 950C91C067;\n\tMon,  9 Mar 2020 13:42:36 +0100 (CET)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id D7CD21C021\n for <dev@dpdk.org>; Mon,  9 Mar 2020 13:42:33 +0100 (CET)",
            "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 09 Mar 2020 05:42:32 -0700",
            "from silpixa00400072.ir.intel.com ([10.237.222.213])\n by fmsmga004.fm.intel.com with ESMTP; 09 Mar 2020 05:42:31 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.70,533,1574150400\"; d=\"scan'208\";a=\"265243894\"",
        "From": "Vladimir Medvedkin <vladimir.medvedkin@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "vladimir.medvedkin@intel.com",
        "Date": "Mon,  9 Mar 2020 12:42:20 +0000",
        "Message-Id": "<1583757743-375198-2-git-send-email-vladimir.medvedkin@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1583757743-375198-1-git-send-email-vladimir.medvedkin@intel.com>",
        "References": "<1583757743-375198-1-git-send-email-vladimir.medvedkin@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 1/4] app/testfib: fix possible uninitialized\n\twarning",
        "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": "Compiller can throw warning message for routes and lookup files.\n\nFixes: 103809d032cd (\"app/test-fib: add test application for FIB\")\nCc: vladimir.medvedkin@intel.com\n\nSigned-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>\n---\n app/test-fib/main.c | 11 ++++++-----\n 1 file changed, 6 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/app/test-fib/main.c b/app/test-fib/main.c\nindex 3c29ca4..aa83f76 100644\n--- a/app/test-fib/main.c\n+++ b/app/test-fib/main.c\n@@ -362,7 +362,7 @@ complete_v6_addr(uint32_t *addr, uint32_t rnd, int n)\n static void\n gen_random_rt_6(struct rt_rule_6 *rt, int nh_sz)\n {\n-\tuint32_t i, j, k = 0;\n+\tuint32_t a, i, j, k = 0;\n \n \tif (config.nb_routes_per_depth[0] != 0) {\n \t\tmemset(rt[k].addr, 0, 16);\n@@ -370,7 +370,7 @@ gen_random_rt_6(struct rt_rule_6 *rt, int nh_sz)\n \t\trt[k++].nh = rte_rand() & get_max_nh(nh_sz);\n \t}\n \n-\tfor (int a = 0; a < 4; a++) {\n+\tfor (a = 0; a < 4; a++) {\n \t\tfor (i = 1; i <= 32; i++) {\n \t\t\tuint32_t rnd;\n \t\t\tdouble edge = 0;\n@@ -1145,7 +1145,8 @@ int\n main(int argc, char **argv)\n {\n \tint ret, af, rt_ent_sz, lookup_ent_sz;\n-\tFILE\t*fr, *fl;\n+\tFILE *fr = NULL;\n+\tFILE *fl = NULL;\n \tuint8_t depth_lim;\n \n \tret = rte_eal_init(argc, argv);\n@@ -1207,7 +1208,7 @@ main(int argc, char **argv)\n \t\trte_exit(-ENOMEM, \"Can not alloc lookup table\\n\");\n \n \t/* Fill routes table */\n-\tif (config.routes_file == NULL) {\n+\tif (fr == NULL) {\n \t\tif (distrib_string != NULL)\n \t\t\tret = parse_distrib(depth_lim, config.nb_routes);\n \t\telse {\n@@ -1243,7 +1244,7 @@ main(int argc, char **argv)\n \t}\n \n \t/* Fill lookup table with ip's*/\n-\tif (config.lookup_ips_file == NULL)\n+\tif (fl == NULL)\n \t\tgen_rnd_lookup_tbl(af);\n \telse {\n \t\tret = parse_lookup(fl, af);\n",
    "prefixes": [
        "1/4"
    ]
}