Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/42002/?format=api
http://patchwork.dpdk.org/api/patches/42002/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/05272b8b170521d01ec63c1e7d97deb5fb987dc4.1530300158.git.rahul.lakkireddy@chelsio.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": "<05272b8b170521d01ec63c1e7d97deb5fb987dc4.1530300158.git.rahul.lakkireddy@chelsio.com>", "list_archive_url": "https://inbox.dpdk.org/dev/05272b8b170521d01ec63c1e7d97deb5fb987dc4.1530300158.git.rahul.lakkireddy@chelsio.com", "date": "2018-06-29T19:23:55", "name": "[5/5] net/cxgbevf: add missing Tx byte counters", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "e90b34dc32d24a1ce14841cebd400d7a70d2a2ad", "submitter": { "id": 241, "url": "http://patchwork.dpdk.org/api/people/241/?format=api", "name": "Rahul Lakkireddy", "email": "rahul.lakkireddy@chelsio.com" }, "delegate": { "id": 319, "url": "http://patchwork.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/05272b8b170521d01ec63c1e7d97deb5fb987dc4.1530300158.git.rahul.lakkireddy@chelsio.com/mbox/", "series": [ { "id": 332, "url": "http://patchwork.dpdk.org/api/series/332/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=332", "date": "2018-06-29T19:23:50", "name": "net/cxgbe: feature updates and bug fixes", "version": 1, "mbox": "http://patchwork.dpdk.org/series/332/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/42002/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/42002/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 F3D641BB0C;\n\tFri, 29 Jun 2018 21:25:40 +0200 (CEST)", "from stargate.chelsio.com (stargate.chelsio.com [12.32.117.8])\n\tby dpdk.org (Postfix) with ESMTP id 667A31BAC5;\n\tFri, 29 Jun 2018 21:25:37 +0200 (CEST)", "from localhost (scalar.blr.asicdesigners.com [10.193.185.94])\n\tby stargate.chelsio.com (8.13.8/8.13.8) with ESMTP id w5TJPXBm029005; \n\tFri, 29 Jun 2018 12:25:34 -0700" ], "From": "Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>", "To": "dev@dpdk.org", "Cc": "surendra@chelsio.com, shaguna@chelsio.com, indranil@chelsio.com,\n\tnirranjan@chelsio.com, stable@dpdk.org", "Date": "Sat, 30 Jun 2018 00:53:55 +0530", "Message-Id": "<05272b8b170521d01ec63c1e7d97deb5fb987dc4.1530300158.git.rahul.lakkireddy@chelsio.com>", "X-Mailer": "git-send-email 2.5.3", "In-Reply-To": [ "<cover.1530300158.git.rahul.lakkireddy@chelsio.com>", "<cover.1530300158.git.rahul.lakkireddy@chelsio.com>" ], "References": [ "<cover.1530300158.git.rahul.lakkireddy@chelsio.com>", "<cover.1530300158.git.rahul.lakkireddy@chelsio.com>" ], "Subject": "[dpdk-dev] [PATCH 5/5] net/cxgbevf: add missing Tx byte counters", "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": "Fixes: a0a344a8f728 (\"net/cxgbe: add VF port statistics\")\nCc: stable@dpdk.org\n\nSigned-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>\n---\n drivers/net/cxgbe/base/t4_regs.h | 3 +++\n drivers/net/cxgbe/base/t4vf_hw.c | 6 ++++++\n drivers/net/cxgbe/cxgbevf_ethdev.c | 1 +\n 3 files changed, 10 insertions(+)", "diff": "diff --git a/drivers/net/cxgbe/base/t4_regs.h b/drivers/net/cxgbe/base/t4_regs.h\nindex fd8f9cf27..0c3a76860 100644\n--- a/drivers/net/cxgbe/base/t4_regs.h\n+++ b/drivers/net/cxgbe/base/t4_regs.h\n@@ -799,8 +799,11 @@\n #define A_MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_L 0x96b8\n #define A_MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_H 0x96bc\n \n+#define A_MPS_VF_STAT_TX_VF_BCAST_BYTES_L 0x80\n #define A_MPS_VF_STAT_TX_VF_BCAST_FRAMES_L 0x88\n+#define A_MPS_VF_STAT_TX_VF_MCAST_BYTES_L 0x90\n #define A_MPS_VF_STAT_TX_VF_MCAST_FRAMES_L 0x98\n+#define A_MPS_VF_STAT_TX_VF_UCAST_BYTES_L 0xa0\n #define A_MPS_VF_STAT_TX_VF_UCAST_FRAMES_L 0xa8\n #define A_MPS_VF_STAT_TX_VF_DROP_FRAMES_L 0xb0\n #define A_MPS_VF_STAT_RX_VF_BCAST_FRAMES_L 0xd0\ndiff --git a/drivers/net/cxgbe/base/t4vf_hw.c b/drivers/net/cxgbe/base/t4vf_hw.c\nindex 9fd0b8791..d96456bbe 100644\n--- a/drivers/net/cxgbe/base/t4vf_hw.c\n+++ b/drivers/net/cxgbe/base/t4vf_hw.c\n@@ -683,6 +683,9 @@ static int t4vf_get_port_stats_fw(struct adapter *adapter, int pidx,\n \t/*\n \t * Translate firmware statistics into host native statistics.\n \t */\n+\tp->tx_octets = be64_to_cpu(fwstats.tx_bcast_bytes) +\n+\t\t be64_to_cpu(fwstats.tx_mcast_bytes) +\n+\t\t be64_to_cpu(fwstats.tx_ucast_bytes);\n \tp->tx_bcast_frames = be64_to_cpu(fwstats.tx_bcast_frames);\n \tp->tx_mcast_frames = be64_to_cpu(fwstats.tx_mcast_frames);\n \tp->tx_ucast_frames = be64_to_cpu(fwstats.tx_ucast_frames);\n@@ -722,6 +725,9 @@ void t4vf_get_port_stats(struct adapter *adapter, int pidx,\n #define GET_STAT(name) \\\n \tt4_read_reg64(adapter, \\\n \t\t\tT4VF_MPS_BASE_ADDR + A_MPS_VF_STAT_##name##_L)\n+\tp->tx_octets = GET_STAT(TX_VF_BCAST_BYTES) +\n+\t\t GET_STAT(TX_VF_MCAST_BYTES) +\n+\t\t GET_STAT(TX_VF_UCAST_BYTES);\n \tp->tx_bcast_frames = GET_STAT(TX_VF_BCAST_FRAMES);\n \tp->tx_mcast_frames = GET_STAT(TX_VF_MCAST_FRAMES);\n \tp->tx_ucast_frames = GET_STAT(TX_VF_UCAST_FRAMES);\ndiff --git a/drivers/net/cxgbe/cxgbevf_ethdev.c b/drivers/net/cxgbe/cxgbevf_ethdev.c\nindex b4770e0c5..3b32ca9d4 100644\n--- a/drivers/net/cxgbe/cxgbevf_ethdev.c\n+++ b/drivers/net/cxgbe/cxgbevf_ethdev.c\n@@ -50,6 +50,7 @@ static int cxgbevf_dev_stats_get(struct rte_eth_dev *eth_dev,\n \t/* TX Stats */\n \teth_stats->opackets = ps.tx_bcast_frames + ps.tx_mcast_frames +\n \t\t\t ps.tx_ucast_frames;\n+\teth_stats->obytes = ps.tx_octets;\n \teth_stats->oerrors = ps.tx_drop;\n \n \tfor (i = 0; i < pi->n_rx_qsets; i++) {\n", "prefixes": [ "5/5" ] }{ "id": 42002, "url": "