Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7696/?format=api
https://patches.dpdk.org/api/patches/7696/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1444989651-6236-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": "<1444989651-6236-8-git-send-email-tomaszx.kulasek@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1444989651-6236-8-git-send-email-tomaszx.kulasek@intel.com", "date": "2015-10-16T10:00:49", "name": "[dpdk-dev,v6,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/1444989651-6236-8-git-send-email-tomaszx.kulasek@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7696/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7696/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 EC39B8E95;\n\tFri, 16 Oct 2015 12:12:45 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id DFF2F8E92\n\tfor <dev@dpdk.org>; Fri, 16 Oct 2015 12:12:43 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP; 16 Oct 2015 03:12:40 -0700", "from unknown (HELO Sent) ([10.217.248.129])\n\tby orsmga002.jf.intel.com with SMTP; 16 Oct 2015 03:12:34 -0700", "by Sent (sSMTP sendmail emulation); Fri, 16 Oct 2015 12:11:08 +0200" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.17,688,1437462000\"; d=\"scan'208\";a=\"828140902\"", "From": "Tomasz Kulasek <tomaszx.kulasek@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 16 Oct 2015 12:00:49 +0200", "Message-Id": "<1444989651-6236-8-git-send-email-tomaszx.kulasek@intel.com>", "X-Mailer": "git-send-email 2.1.4", "In-Reply-To": "<1444989651-6236-1-git-send-email-tomaszx.kulasek@intel.com>", "References": "<1443621905-7872-1-git-send-email-tomaszx.kulasek@intel.com>\n\t<1444989651-6236-1-git-send-email-tomaszx.kulasek@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 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 adds fills bonding port's stats with a sum of corresponding\nvalues taken 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", "v6", "7/9" ] }{ "id": 7696, "url": "