Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/388/?format=api
http://patches.dpdk.org/api/patches/388/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1410869607-16842-4-git-send-email-reshma.pattan@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": "<1410869607-16842-4-git-send-email-reshma.pattan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/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": "http://patches.dpdk.org/api/people/70/?format=api", "name": "Pattan, Reshma", "email": "reshma.pattan@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1410869607-16842-4-git-send-email-reshma.pattan@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/388/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/388/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 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" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"4.97,862,1389772800\"; d=\"scan'208\";a=\"386781461\"", "From": "reshmapa <reshma.pattan@intel.com>", "To": "dev@dpdk.org", "Date": "Tue, 16 Sep 2014 13:13:27 +0100", "Message-Id": "<1410869607-16842-4-git-send-email-reshma.pattan@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1410869607-16842-1-git-send-email-reshma.pattan@intel.com>", "References": "<1410869607-16842-1-git-send-email-reshma.pattan@intel.com>", "Subject": "[dpdk-dev] [PATCH 3/3] distributor_app: removed extra spaces", "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": "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" ] }{ "id": 388, "url": "