get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/57167/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 57167,
    "url": "http://patches.dpdk.org/api/patches/57167/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1564136488-29065-10-git-send-email-david.marchand@redhat.com/",
    "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": "<1564136488-29065-10-git-send-email-david.marchand@redhat.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1564136488-29065-10-git-send-email-david.marchand@redhat.com",
    "date": "2019-07-26T10:21:28",
    "name": "[v2,9/9] net/vhost: do not count unsent packets as errors",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "b8a03bb821ea4dfdc85b28bf566c537efb735e01",
    "submitter": {
        "id": 1173,
        "url": "http://patches.dpdk.org/api/people/1173/?format=api",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "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/1564136488-29065-10-git-send-email-david.marchand@redhat.com/mbox/",
    "series": [
        {
            "id": 5776,
            "url": "http://patches.dpdk.org/api/series/5776/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5776",
            "date": "2019-07-26T10:21:19",
            "name": "oerrors stats fixes for virtual pmds",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/5776/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/57167/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/57167/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 DAB941C46A;\n\tFri, 26 Jul 2019 12:22:08 +0200 (CEST)",
            "from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\n\tby dpdk.org (Postfix) with ESMTP id 363DD1C43B;\n\tFri, 26 Jul 2019 12:21:54 +0200 (CEST)",
            "from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby mx1.redhat.com (Postfix) with ESMTPS id 9F1D1302246C;\n\tFri, 26 Jul 2019 10:21:53 +0000 (UTC)",
            "from dmarchan.remote.csb (ovpn-204-235.brq.redhat.com\n\t[10.40.204.235])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id EF67051;\n\tFri, 26 Jul 2019 10:21:51 +0000 (UTC)"
        ],
        "From": "David Marchand <david.marchand@redhat.com>",
        "To": "dev@dpdk.org",
        "Cc": "ferruh.yigit@intel.com, stable@dpdk.org,\n\tMaxime Coquelin <maxime.coquelin@redhat.com>,\n\tTiwei Bie <tiwei.bie@intel.com>, Zhihong Wang <zhihong.wang@intel.com>",
        "Date": "Fri, 26 Jul 2019 12:21:28 +0200",
        "Message-Id": "<1564136488-29065-10-git-send-email-david.marchand@redhat.com>",
        "In-Reply-To": "<1564136488-29065-1-git-send-email-david.marchand@redhat.com>",
        "References": "<1564046068-21905-1-git-send-email-david.marchand@redhat.com>\n\t<1564136488-29065-1-git-send-email-david.marchand@redhat.com>",
        "X-Scanned-By": "MIMEDefang 2.79 on 10.5.11.15",
        "X-Greylist": "Sender IP whitelisted, not delayed by milter-greylist-4.5.16\n\t(mx1.redhat.com [10.5.110.49]); Fri, 26 Jul 2019 10:21:53 +0000 (UTC)",
        "Subject": "[dpdk-dev] [PATCH v2 9/9] net/vhost: do not count unsent packets as\n\terrors",
        "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": "missed_pkts reflects the number of packets that the driver did not manage\nto send.\nThis is a temporary situation, those packets are not freed and the\napplication can still retry to send them later.\nHence, we can't count them as transmit failed.\n\nFixes: 5f05e95cd5d9 (\"net/vhost: fix Tx error counting\")\nFixes: ee584e9710b9 (\"vhost: add driver on top of the library\")\nCc: stable@dpdk.org\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\nReviewed-by: Tiwei Bie <tiwei.bie@intel.com>\n---\n drivers/net/vhost/rte_eth_vhost.c | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c\nindex 57f382c..a4892d7 100644\n--- a/drivers/net/vhost/rte_eth_vhost.c\n+++ b/drivers/net/vhost/rte_eth_vhost.c\n@@ -1081,7 +1081,7 @@ static int\n eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n {\n \tunsigned i;\n-\tunsigned long rx_total = 0, tx_total = 0, tx_missed_total = 0;\n+\tunsigned long rx_total = 0, tx_total = 0;\n \tunsigned long rx_total_bytes = 0, tx_total_bytes = 0;\n \tstruct vhost_queue *vq;\n \n@@ -1103,7 +1103,6 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n \t\t\tcontinue;\n \t\tvq = dev->data->tx_queues[i];\n \t\tstats->q_opackets[i] = vq->stats.pkts;\n-\t\ttx_missed_total += vq->stats.missed_pkts;\n \t\ttx_total += stats->q_opackets[i];\n \n \t\tstats->q_obytes[i] = vq->stats.bytes;\n@@ -1112,7 +1111,6 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)\n \n \tstats->ipackets = rx_total;\n \tstats->opackets = tx_total;\n-\tstats->oerrors = tx_missed_total;\n \tstats->ibytes = rx_total_bytes;\n \tstats->obytes = tx_total_bytes;\n \n",
    "prefixes": [
        "v2",
        "9/9"
    ]
}