Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47746/?format=api
http://patchwork.dpdk.org/api/patches/47746/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1541158623-29742-12-git-send-email-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1541158623-29742-12-git-send-email-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1541158623-29742-12-git-send-email-cristian.dumitrescu@intel.com", "date": "2018-11-02T11:37:03", "name": "[12/12] examples/ip_pipeline: fix port and table stats read", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "0ee08af32283267478160622e308b2bd0d74faca", "submitter": { "id": 19, "url": "http://patchwork.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 10018, "url": "http://patchwork.dpdk.org/api/users/10018/?format=api", "username": "cristian_dumitrescu", "first_name": "Cristian", "last_name": "Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1541158623-29742-12-git-send-email-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 2226, "url": "http://patchwork.dpdk.org/api/series/2226/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=2226", "date": "2018-11-02T11:36:52", "name": "[01/12] examples/ip_pipeline: add rule list per table", "version": 1, "mbox": "http://patchwork.dpdk.org/series/2226/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/47746/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/47746/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 637351B48E;\n\tFri, 2 Nov 2018 12:37:25 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id AEA871B461\n\tfor <dev@dpdk.org>; Fri, 2 Nov 2018 12:37:18 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t02 Nov 2018 04:37:18 -0700", "from silpixa00382658.ir.intel.com ([10.237.223.29])\n\tby orsmga002.jf.intel.com with ESMTP; 02 Nov 2018 04:37:17 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,455,1534834800\"; d=\"scan'208\";a=\"105381823\"", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "Jasvinder Singh <jasvinder.singh@intel.com>,\n\tHongjun Ni <hongjun.ni@intel.com>", "Date": "Fri, 2 Nov 2018 11:37:03 +0000", "Message-Id": "<1541158623-29742-12-git-send-email-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1541158623-29742-1-git-send-email-cristian.dumitrescu@intel.com>", "References": "<1541158623-29742-1-git-send-email-cristian.dumitrescu@intel.com>", "Subject": "[dpdk-dev] [PATCH 12/12] examples/ip_pipeline: fix port and table\n\tstats read", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Fix the pipeline port and table stats read operation.\n\nFixes: 50e73d051806 (\"examples/ip_pipeline: add stats read commands\")\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\nSigned-off-by: Hongjun Ni <hongjun.ni@intel.com>\n---\n examples/ip_pipeline/thread.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c\nindex e1b6fb6..272fbbe 100644\n--- a/examples/ip_pipeline/thread.c\n+++ b/examples/ip_pipeline/thread.c\n@@ -820,7 +820,7 @@ pipeline_port_in_stats_read(const char *pipeline_name,\n \n \t/* Read response */\n \tstatus = rsp->status;\n-\tif (status)\n+\tif (status == 0)\n \t\tmemcpy(stats, &rsp->port_in_stats_read.stats, sizeof(*stats));\n \n \t/* Free response */\n@@ -968,7 +968,7 @@ pipeline_port_out_stats_read(const char *pipeline_name,\n \n \t/* Read response */\n \tstatus = rsp->status;\n-\tif (status)\n+\tif (status == 0)\n \t\tmemcpy(stats, &rsp->port_out_stats_read.stats, sizeof(*stats));\n \n \t/* Free response */\n@@ -1024,7 +1024,7 @@ pipeline_table_stats_read(const char *pipeline_name,\n \n \t/* Read response */\n \tstatus = rsp->status;\n-\tif (status)\n+\tif (status == 0)\n \t\tmemcpy(stats, &rsp->table_stats_read.stats, sizeof(*stats));\n \n \t/* Free response */\n", "prefixes": [ "12/12" ] }{ "id": 47746, "url": "