get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 45005,
    "url": "https://patches.dpdk.org/api/patches/45005/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1537442655-99749-1-git-send-email-longtb5@viettel.com.vn/",
    "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": "<1537442655-99749-1-git-send-email-longtb5@viettel.com.vn>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1537442655-99749-1-git-send-email-longtb5@viettel.com.vn",
    "date": "2018-09-20T11:16:33",
    "name": "[v2] latency: clear mbuf timestamp after latency calculation",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "83114cf5b4905cc10e7d14b227a1658aa4d8672d",
    "submitter": {
        "id": 968,
        "url": "https://patches.dpdk.org/api/people/968/?format=api",
        "name": null,
        "email": "longtb5@viettel.com.vn"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1537442655-99749-1-git-send-email-longtb5@viettel.com.vn/mbox/",
    "series": [
        {
            "id": 1412,
            "url": "https://patches.dpdk.org/api/series/1412/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1412",
            "date": "2018-09-20T11:16:33",
            "name": "[v2] latency: clear mbuf timestamp after latency calculation",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/1412/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/45005/comments/",
    "check": "warning",
    "checks": "https://patches.dpdk.org/api/patches/45005/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 21512326C;\n\tThu, 20 Sep 2018 13:16:45 +0200 (CEST)",
            "from mailfilter01.viettel.com.vn (mailfilter01.viettel.com.vn\n\t[125.235.240.53]) by dpdk.org (Postfix) with ESMTP id 7A4B3262E;\n\tThu, 20 Sep 2018 13:16:42 +0200 (CEST)",
            "from 125.235.240.44.adsl.viettel.vn (HELO mta1.viettel.com.vn)\n\t([125.235.240.44])\n\tby mailfilter01.viettel.com.vn with ESMTP; 20 Sep 2018 18:16:40 +0700",
            "from localhost (localhost [127.0.0.1])\n\tby mta1.viettel.com.vn (Postfix) with ESMTP id DBD9A60F388;\n\tThu, 20 Sep 2018 18:16:33 +0700 (ICT)",
            "from mta1.viettel.com.vn ([127.0.0.1])\n\tby localhost (mta1.viettel.com.vn [127.0.0.1]) (amavisd-new,\n\tport 10032)\n\twith ESMTP id g03O6SDbPVNT; Thu, 20 Sep 2018 18:16:33 +0700 (ICT)",
            "from localhost (localhost [127.0.0.1])\n\tby mta1.viettel.com.vn (Postfix) with ESMTP id B9FEB60F2FD;\n\tThu, 20 Sep 2018 18:16:33 +0700 (ICT)",
            "from mta1.viettel.com.vn ([127.0.0.1])\n\tby localhost (mta1.viettel.com.vn [127.0.0.1]) (amavisd-new,\n\tport 10026)\n\twith ESMTP id e8qwYjuVsnw4; Thu, 20 Sep 2018 18:16:33 +0700 (ICT)",
            "from localhost.localdomain (unknown [27.68.241.28])\n\tby mta1.viettel.com.vn (Postfix) with ESMTPSA id 6DE1760F389;\n\tThu, 20 Sep 2018 18:16:33 +0700 (ICT)"
        ],
        "X-IronPort-AV": "E=Sophos;i=\"5.53,398,1531760400\"; d=\"scan'208\";a=\"94209971\"",
        "X-Virus-Scanned": "amavisd-new at ",
        "To": "reshma.pattan@intel.com",
        "Cc": "dev@dpdk.org,\n\tBao-Long Tran <longtb5@viettel.com.vn>,\n\tstable@dpdk.org",
        "Message-Id": "<1537442655-99749-1-git-send-email-longtb5@viettel.com.vn>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1537345834-70456-1-git-send-email-longtb5@viettel.com.vn>",
        "References": "<1537345834-70456-1-git-send-email-longtb5@viettel.com.vn>",
        "MilterAction": "FORWARD",
        "Date": "Thu, 20 Sep 2018 18:16:33 +0700 (ICT)",
        "From": "longtb5@viettel.com.vn",
        "Subject": "[dpdk-dev] [PATCH v2] latency: clear mbuf timestamp after latency\n\tcalculation",
        "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": "The timestamp of a mbuf should be cleared after that mbuf was used for\nlatency calculation, otherwise future packets which reuse the same mbuf\nwould inherit that previous timestamp. The latencystats library looks\nfor mbuf with non-zero timestamp, thus incorrectly inherited value would\nresult in incorrect latency measurement.\n\nFixes: 5cd3cac9ed (\"latency: added new library for latency stats\").\nCc: stable@dpdk.org\n\nSigned-off-by: Bao-Long Tran <longtb5@viettel.com.vn>\nAcked-by: Reshma Pattan <reshma.pattan@intel.com>\n---\n lib/librte_latencystats/rte_latencystats.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_latencystats/rte_latencystats.c b/lib/librte_latencystats/rte_latencystats.c\nindex 1fdec68..2d5384e 100644\n--- a/lib/librte_latencystats/rte_latencystats.c\n+++ b/lib/librte_latencystats/rte_latencystats.c\n@@ -156,8 +156,10 @@ calc_latency(uint16_t pid __rte_unused,\n \n \tnow = rte_rdtsc();\n \tfor (i = 0; i < nb_pkts; i++) {\n-\t\tif (pkts[i]->timestamp)\n+\t\tif (pkts[i]->timestamp) {\n \t\t\tlatency[cnt++] = now - pkts[i]->timestamp;\n+\t\t\tpkts[i]->timestamp = 0;\n+\t\t}\n \t}\n \n \tfor (i = 0; i < cnt; i++) {\n",
    "prefixes": [
        "v2"
    ]
}