Show a patch.

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

{
    "id": 388,
    "url": "https://patches.dpdk.org/api/patches/388/",
    "web_url": "https://patches.dpdk.org/patch/388/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1410869607-16842-4-git-send-email-reshma.pattan@intel.com>",
    "date": "2014-09-16T12:13:27",
    "name": "[dpdk-dev,3/3] distributor_app: removed extra spaces",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "ffb3308bfcddb54c02f52c6d511d54a2de8ee1fb",
    "submitter": {
        "id": 70,
        "url": "https://patches.dpdk.org/api/people/70/",
        "name": "Reshma Pattan",
        "email": "reshma.pattan@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/388/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/388/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/388/checks/",
    "tags": {},
    "headers": {
        "Delivered-To": "patchwork@dpdk.org",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "X-Original-To": "patchwork@dpdk.org",
        "Date": "Tue, 16 Sep 2014 13:13:27 +0100",
        "In-Reply-To": "<1410869607-16842-1-git-send-email-reshma.pattan@intel.com>",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<1410869607-16842-1-git-send-email-reshma.pattan@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "Errors-To": "dev-bounces@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 931DAB3A9;\n\tTue, 16 Sep 2014 14:08:34 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 83EB8B39E\n\tfor <dev@dpdk.org>; Tue, 16 Sep 2014 14:08:32 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga101.fm.intel.com with ESMTP; 16 Sep 2014 05:13:41 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby FMSMGA003.fm.intel.com with ESMTP; 16 Sep 2014 05:08:14 -0700",
            "from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com\n\t[10.237.217.46])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\ts8GCDb4j020139; Tue, 16 Sep 2014 13:13:37 +0100",
            "from sivswdev02.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev02.ir.intel.com with ESMTP id s8GCDbL1016922;\n\tTue, 16 Sep 2014 13:13:37 +0100",
            "(from reshmapa@localhost)\n\tby sivswdev02.ir.intel.com with  id s8GCDbOx016916;\n\tTue, 16 Sep 2014 13:13:37 +0100"
        ],
        "From": "reshmapa <reshma.pattan@intel.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-ExtLoop1": "1",
        "Message-Id": "<1410869607-16842-4-git-send-email-reshma.pattan@intel.com>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev]  [PATCH 3/3] distributor_app: removed extra spaces",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"386781461\"",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "From: Reshma Pattan <reshma.pattan@intel.com>\n\nChanges in V2:\n\nSigned-off-by: Reshma Pattan <reshma.pattan@intel.com>\n---\n examples/distributor_app/main.c | 22 +++++++++++-----------\n 1 file changed, 11 insertions(+), 11 deletions(-)",
    "diff": "diff --git a/examples/distributor_app/main.c b/examples/distributor_app/main.c\nindex fab8199..b064a3a 100644\n--- a/examples/distributor_app/main.c\n+++ b/examples/distributor_app/main.c\n@@ -230,7 +230,7 @@ lcore_rx(struct lcore_params *p)\n \tprintf(\"\\nCore %u doing packet RX.\\n\", rte_lcore_id());\n \tport = 0;\n \tfor (;;) {\n-\t\t/* skip ports that are not enabled */ \n+\t\t/* skip ports that are not enabled */\n \t\tif ((enabled_port_mask & (1 << port)) == 0){\n \t\t\tif (++port == nb_ports)\n \t\t\t\tport = 0;\n@@ -283,7 +283,7 @@ flush_all_ports(struct output_buffer *tx_buffers, uint8_t nb_ports)\n \tfor (outp = 0; outp < nb_ports; outp++) {\n \t\t/* skip ports that are not enabled */\n \t\tif ((enabled_port_mask & (1 << outp)) == 0){\n-\t\t\tcontinue; \n+\t\t\tcontinue;\n \t\t}\n \n \t\tif (tx_buffers[outp].count == 0)\n@@ -302,7 +302,7 @@ lcore_tx(struct rte_ring *in_r)\n \tuint8_t port;\n \n \tfor (port = 0; port < nb_ports; port++){\n-\t\t/* skip ports that are not enabled */ \n+\t\t/* skip ports that are not enabled */\n \t\tif ((enabled_port_mask & (1 << port)) == 0){\n \t\t\tcontinue;\n \t\t}\n@@ -316,7 +316,7 @@ lcore_tx(struct rte_ring *in_r)\n \tprintf(\"\\nCore %u doing packet TX.\\n\", rte_lcore_id());\n \tfor (;;) {\n \t\tfor (port = 0; port < nb_ports; port++) {\n-\t\t\t/* skip ports that are not enabled */ \n+\t\t\t/* skip ports that are not enabled */\n \t\t\tif ((enabled_port_mask & (1 << port)) == 0){\n \t\t\t\tcontinue;\n \t\t\t}\n@@ -431,16 +431,16 @@ parse_portmask(const char *portmask)\n }\n \n /* Parse the argument given in the command line of the application */\n-static int \n+static int\n parse_args(int argc, char **argv)\n {\n         int opt;\n         char **argvopt;\n         int option_index;\n         char *prgname = argv[0];\n-        static struct option lgopts[] = { \n+        static struct option lgopts[] = {\n                 {NULL, 0, 0, 0}\n-        };  \n+        };\n \n         argvopt = argv;\n \n@@ -454,8 +454,8 @@ parse_args(int argc, char **argv)\n                         if (enabled_port_mask == 0) {\n                                 printf(\"invalid portmask\\n\");\n                                 print_usage(prgname);\n-                                return -1; \n-                        }   \n+                                return -1;\n+                        }\n                         break;\n \t\t\n \t\tdefault:\n@@ -499,7 +499,7 @@ MAIN(int argc, char *argv[])\n \n         /* parse application arguments (after the EAL ones) */\n         ret = parse_args(argc, argv);\n-        if (ret < 0) \n+        if (ret < 0)\n                 rte_exit(EXIT_FAILURE, \"Invalid distributor parameters\\n\");\n \n \tif (rte_lcore_count() < 3)\n@@ -549,7 +549,7 @@ MAIN(int argc, char *argv[])\n         if (!nb_ports_available) {\n                 rte_exit(EXIT_FAILURE,\n                         \"All available ports are disabled. Please set portmask.\\n\");\n-        }   \n+        }\n \n \td = rte_distributor_create(\"PKT_DIST\", rte_socket_id(),\n \t\t\trte_lcore_count() - 2);\n",
    "prefixes": [
        "dpdk-dev",
        "3/3"
    ]
}