Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/55144/?format=api
http://patches.dpdk.org/api/patches/55144/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190620220924.32079-2-stephen@networkplumber.org/", "project": { "id": 1, "url": "http://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": "<20190620220924.32079-2-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20190620220924.32079-2-stephen@networkplumber.org", "date": "2019-06-20T22:09:23", "name": "[1/2] net/netvsc: set id in xstats_get", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "335afd5387af13997a91cf25f87874d090958cc1", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190620220924.32079-2-stephen@networkplumber.org/mbox/", "series": [ { "id": 5105, "url": "http://patches.dpdk.org/api/series/5105/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5105", "date": "2019-06-20T22:09:22", "name": "net/netvsc: xstat fixes", "version": 1, "mbox": "http://patches.dpdk.org/series/5105/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/55144/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/55144/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 330EC1D4AF;\n\tFri, 21 Jun 2019 00:09:37 +0200 (CEST)", "from mail-pg1-f194.google.com (mail-pg1-f194.google.com\n\t[209.85.215.194]) by dpdk.org (Postfix) with ESMTP id 066331D481\n\tfor <dev@dpdk.org>; Fri, 21 Jun 2019 00:09:33 +0200 (CEST)", "by mail-pg1-f194.google.com with SMTP id y72so2285168pgd.8\n\tfor <dev@dpdk.org>; Thu, 20 Jun 2019 15:09:32 -0700 (PDT)", "from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127])\n\tby smtp.gmail.com with ESMTPSA id\n\ty12sm422226pfn.187.2019.06.20.15.09.31\n\t(version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);\n\tThu, 20 Jun 2019 15:09:31 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=Y/ZXdhwUbaEMPMe2JVJMstAKCzj9cCnJEbZRHQabYo4=;\n\tb=wH47CbI8mtSK342WcHejbZq4JADWbPE1xQRkuLy9Jy35NvCCPirrjcmUV7PYGKF7l8\n\tW2EtxmqxDG1XNUpzrBtx/3F7ZAR0dKJIYZ41EIXI85ouxUgGkHVQq7SJWkXUO5XdKK9D\n\t9V0vlJIEThXpVGcvzsLyKDlEL13bLRB/mTb65Tj3olRANPhZNP5b8vNkcTScadTXaczD\n\tomYeu3HPz/Nc6pTBMk1Hzq8w4tTNZpzPBriogQO4MkfIwtAsy0K3JUf0sqk8tvyDc9/6\n\tdcglXCwIPMSDH+NFsPQA+K6zIdW/kTfNlJW5A4fSx1ne6o28qkOvTyBKogr9rMc1ePct\n\tASUA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=Y/ZXdhwUbaEMPMe2JVJMstAKCzj9cCnJEbZRHQabYo4=;\n\tb=Upx4ubW1E11EBBHYpGUfFvBcKoJ633gQMmLfTMVxNlLp4Fz8H+GC6nSUc4FIJHiFpw\n\tBtxoF/s2sneLDtOQWiiA1ZTEqi6gkjc1THqIrniYm9O5JQJ69mh4aNqRRCKOK/ILGXuG\n\tHHqO+35M23NLwMyconO6ESCkCuK2shytEfjzSdnrRk08aiUHlmbqK17zj0WFe38X90DN\n\t//TZlZ8psVjBKBvo3NDYY/vSimC7dJDpQxpDgfTMFEc+ssdDa5ssg4qaEX51wi6hBsGO\n\tCk4BVDdCcZySrL7+JeRC/13w5DIMw2sLhzVOgaWPLcYH/QdRxaFmeIiZNAztbxlvak4+\n\tR08g==", "X-Gm-Message-State": "APjAAAXaplEvFya/0U0yDtseg/b1IpueP62TcRNIFks2LnaKbyGE2V2X\n\tNd5qfvTty5xSu3Bf3jKJ8DWVVj8D1eI=", "X-Google-Smtp-Source": "APXvYqxHTW4XzRtBlVEbCU7SoguHAzoRXsuQCJPrU3FRFKPXnbdeQfaWBYNpYZNPgRRYI7nJ/BXJWw==", "X-Received": "by 2002:a65:620a:: with SMTP id\n\td10mr14751665pgv.42.1561068571836; \n\tThu, 20 Jun 2019 15:09:31 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "stable@dpdk.org,\n\tMohsin Mazhar Shaikh <mohsinmazhar_shaikh@trendmicro.com>, \n\tStephen Hemminger <stephen@networkplumber.org>", "Date": "Thu, 20 Jun 2019 15:09:23 -0700", "Message-Id": "<20190620220924.32079-2-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20190620220924.32079-1-stephen@networkplumber.org>", "References": "<20190620220924.32079-1-stephen@networkplumber.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 1/2] net/netvsc: set id in xstats_get", "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": "From: Mohsin Mazhar Shaikh <mohsinmazhar_shaikh@trendmicro.com>\n\nThe xstats_get was not setting id correctly for each entry.\n\nFixes: 4e9c73e96e83 (\"net/netvsc: add Hyper-V network device\")\nSigned-off-by: Mohsin Mazhar Shaikh <mohsinmazhar_shaikh@trendmicro.com>\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n drivers/net/netvsc/hn_ethdev.c | 12 ++++++++----\n 1 file changed, 8 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/net/netvsc/hn_ethdev.c b/drivers/net/netvsc/hn_ethdev.c\nindex 9e7cf2df5472..d37db7c6a232 100644\n--- a/drivers/net/netvsc/hn_ethdev.c\n+++ b/drivers/net/netvsc/hn_ethdev.c\n@@ -577,9 +577,11 @@ hn_dev_xstats_get(struct rte_eth_dev *dev,\n \t\t\tcontinue;\n \n \t\tstats = (const char *)&txq->stats;\n-\t\tfor (t = 0; t < RTE_DIM(hn_stat_strings); t++)\n-\t\t\txstats[count++].value = *(const uint64_t *)\n+\t\tfor (t = 0; t < RTE_DIM(hn_stat_strings); t++, count++) {\n+\t\t\txstats[count].id = count;\n+\t\t\txstats[count].value = *(const uint64_t *)\n \t\t\t\t(stats + hn_stat_strings[t].offset);\n+\t\t}\n \t}\n \n \tfor (i = 0; i < dev->data->nb_rx_queues; i++) {\n@@ -589,9 +591,11 @@ hn_dev_xstats_get(struct rte_eth_dev *dev,\n \t\t\tcontinue;\n \n \t\tstats = (const char *)&rxq->stats;\n-\t\tfor (t = 0; t < RTE_DIM(hn_stat_strings); t++)\n-\t\t\txstats[count++].value = *(const uint64_t *)\n+\t\tfor (t = 0; t < RTE_DIM(hn_stat_strings); t++, count++) {\n+\t\t\txstats[count].id = count;\n+\t\t\txstats[count].value = *(const uint64_t *)\n \t\t\t\t(stats + hn_stat_strings[t].offset);\n+\t\t}\n \t}\n \n \tret = hn_vf_xstats_get(dev, xstats + count, n - count);\n", "prefixes": [ "1/2" ] }{ "id": 55144, "url": "