Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/21010/?format=api
https://patches.dpdk.org/api/patches/21010/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488354455-142764-14-git-send-email-david.hunt@intel.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": "<1488354455-142764-14-git-send-email-david.hunt@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1488354455-142764-14-git-send-email-david.hunt@intel.com", "date": "2017-03-01T07:47:30", "name": "[dpdk-dev,v8,13/18] sample: distributor: wait for ports to come up", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cf7e30ec085d06d3f053a9d8fb0a8fc3eeffa5a5", "submitter": { "id": 342, "url": "https://patches.dpdk.org/api/people/342/?format=api", "name": "Hunt, David", "email": "david.hunt@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1488354455-142764-14-git-send-email-david.hunt@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/21010/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/21010/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 C45D0F977;\n\tWed, 1 Mar 2017 15:47:58 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 9DA00C304\n\tfor <dev@dpdk.org>; Wed, 1 Mar 2017 15:47:25 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Mar 2017 06:47:25 -0800", "from silpixa00397515.ir.intel.com (HELO\n\tsilpixa00397515.ger.corp.intel.com) ([10.237.223.14])\n\tby fmsmga001.fm.intel.com with ESMTP; 01 Mar 2017 06:47:24 -0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos; i=\"5.35,226,1484035200\"; d=\"scan'208\";\n\ta=\"1117076588\"", "From": "David Hunt <david.hunt@intel.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com,\n\tDavid Hunt <david.hunt@intel.com>", "Date": "Wed, 1 Mar 2017 07:47:30 +0000", "Message-Id": "<1488354455-142764-14-git-send-email-david.hunt@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1488354455-142764-1-git-send-email-david.hunt@intel.com>", "References": "<1487647073-129064-2-git-send-email-david.hunt@intel.com>\n\t<1488354455-142764-1-git-send-email-david.hunt@intel.com>", "Subject": "[dpdk-dev] [PATCH v8 13/18] sample: distributor: wait for ports to\n\tcome up", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "On some machines, ports take several seconds to come up. This\npatch causes the app to wait.\n\nSigned-off-by: David Hunt <david.hunt@intel.com>\n---\n examples/distributor/main.c | 7 ++++---\n 1 file changed, 4 insertions(+), 3 deletions(-)", "diff": "diff --git a/examples/distributor/main.c b/examples/distributor/main.c\nindex 3657e5d..aeb75a8 100644\n--- a/examples/distributor/main.c\n+++ b/examples/distributor/main.c\n@@ -1,8 +1,7 @@\n /*-\n * BSD LICENSE\n *\n- * Copyright(c) 2010-2014 Intel Corporation. All rights reserved.\n- * All rights reserved.\n+ * Copyright(c) 2010-2017 Intel Corporation. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n@@ -62,6 +61,7 @@ static uint32_t enabled_port_mask;\n volatile uint8_t quit_signal;\n volatile uint8_t quit_signal_rx;\n volatile uint8_t quit_signal_dist;\n+volatile uint8_t quit_signal_work;\n \n static volatile struct app_stats {\n \tstruct {\n@@ -165,7 +165,8 @@ port_init(uint8_t port, struct rte_mempool *mbuf_pool)\n \n \tstruct rte_eth_link link;\n \trte_eth_link_get_nowait(port, &link);\n-\tif (!link.link_status) {\n+\twhile (!link.link_status) {\n+\t\tprintf(\"Waiting for Link up on port %\"PRIu8\"\\n\", port);\n \t\tsleep(1);\n \t\trte_eth_link_get_nowait(port, &link);\n \t}\n", "prefixes": [ "dpdk-dev", "v8", "13/18" ] }{ "id": 21010, "url": "