Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7321/?format=api
https://patches.dpdk.org/api/patches/7321/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1443621905-7872-8-git-send-email-tomaszx.kulasek@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": "<1443621905-7872-8-git-send-email-tomaszx.kulasek@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1443621905-7872-8-git-send-email-tomaszx.kulasek@intel.com", "date": "2015-09-30T14:05:03", "name": "[dpdk-dev,v5,7/9] bonding: per queue stats", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "e809a9990b79d76549e496b3b00baf45f2de6dae", "submitter": { "id": 155, "url": "https://patches.dpdk.org/api/people/155/?format=api", "name": "Tomasz Kulasek", "email": "tomaszx.kulasek@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1443621905-7872-8-git-send-email-tomaszx.kulasek@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7321/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7321/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 B5B098E61;\n\tWed, 30 Sep 2015 16:16:48 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 3C50C8E56\n\tfor <dev@dpdk.org>; Wed, 30 Sep 2015 16:16:47 +0200 (CEST)", "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby fmsmga101.fm.intel.com with ESMTP; 30 Sep 2015 07:16:46 -0700", "from unknown (HELO Sent) ([10.217.248.94])\n\tby orsmga001.jf.intel.com with SMTP; 30 Sep 2015 07:16:44 -0700", "by Sent (sSMTP sendmail emulation); Wed, 30 Sep 2015 16:15:19 +0200" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.17,612,1437462000\"; d=\"scan'208\";a=\"780952319\"", "From": "Tomasz Kulasek <tomaszx.kulasek@intel.com>", "To": "dev@dpdk.org", "Date": "Wed, 30 Sep 2015 16:05:03 +0200", "Message-Id": "<1443621905-7872-8-git-send-email-tomaszx.kulasek@intel.com>", "X-Mailer": "git-send-email 2.1.4", "In-Reply-To": "<1443621905-7872-1-git-send-email-tomaszx.kulasek@intel.com>", "References": "<1436981189-3320-1-git-send-email-tomaszx.kulasek@intel.com>\n\t<1443621905-7872-1-git-send-email-tomaszx.kulasek@intel.com>", "Subject": "[dpdk-dev] [PATCH v5 7/9] bonding: per queue stats", "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": "This patch fills bonding port's stats with a sum of corresponding values\ntaken from bonded slaves, when stats are requested for bonding port.\n\nv5 changes:\n - removed queue_stats_mapping_set from eth_dev_ops of bonding device\n\nSigned-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>\n---\n drivers/net/bonding/rte_eth_bond_pmd.c | 11 ++++++++++-\n 1 file changed, 10 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c\nindex 2880f5c..eecb381 100644\n--- a/drivers/net/bonding/rte_eth_bond_pmd.c\n+++ b/drivers/net/bonding/rte_eth_bond_pmd.c\n@@ -1801,7 +1801,7 @@ bond_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n {\n \tstruct bond_dev_private *internals = dev->data->dev_private;\n \tstruct rte_eth_stats slave_stats;\n-\tint i;\n+\tint i, j;\n \n \tfor (i = 0; i < internals->slave_count; i++) {\n \t\trte_eth_stats_get(internals->slaves[i].port_id, &slave_stats);\n@@ -1820,6 +1820,15 @@ bond_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n \t\tstats->rx_pause_xon += slave_stats.rx_pause_xon;\n \t\tstats->tx_pause_xoff += slave_stats.tx_pause_xoff;\n \t\tstats->rx_pause_xoff += slave_stats.rx_pause_xoff;\n+\n+\t\tfor (j = 0; j < RTE_ETHDEV_QUEUE_STAT_CNTRS; j++) {\n+\t\t\tstats->q_ipackets[j] += slave_stats.q_ipackets[j];\n+\t\t\tstats->q_opackets[j] += slave_stats.q_opackets[j];\n+\t\t\tstats->q_ibytes[j] += slave_stats.q_ibytes[j];\n+\t\t\tstats->q_obytes[j] += slave_stats.q_obytes[j];\n+\t\t\tstats->q_errors[j] += slave_stats.q_errors[j];\n+\t\t}\n+\n \t}\n }\n \n", "prefixes": [ "dpdk-dev", "v5", "7/9" ] }{ "id": 7321, "url": "