get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 96887,
    "url": "http://patchwork.dpdk.org/api/patches/96887/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210813080548.38637-4-wangzhihong.wzh@bytedance.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": "<20210813080548.38637-4-wangzhihong.wzh@bytedance.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210813080548.38637-4-wangzhihong.wzh@bytedance.com",
    "date": "2021-08-13T08:05:47",
    "name": "[v5,3/4] app/testpmd: record rx_burst and fwd_dropped in flowgen",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7717210990862f6b451ceec79fc1e6fbc4ff25be",
    "submitter": {
        "id": 2312,
        "url": "http://patchwork.dpdk.org/api/people/2312/?format=api",
        "name": "王志宏",
        "email": "wangzhihong.wzh@bytedance.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/20210813080548.38637-4-wangzhihong.wzh@bytedance.com/mbox/",
    "series": [
        {
            "id": 18277,
            "url": "http://patchwork.dpdk.org/api/series/18277/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=18277",
            "date": "2021-08-13T08:05:44",
            "name": "app/testpmd: flowgen fixes and improvements",
            "version": 5,
            "mbox": "http://patchwork.dpdk.org/series/18277/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/96887/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/96887/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6CC20A0C4D;\n\tFri, 13 Aug 2021 10:06:18 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4CB8B41252;\n\tFri, 13 Aug 2021 10:06:08 +0200 (CEST)",
            "from mail-pj1-f46.google.com (mail-pj1-f46.google.com\n [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 693F14123B\n for <dev@dpdk.org>; Fri, 13 Aug 2021 10:06:07 +0200 (CEST)",
            "by mail-pj1-f46.google.com with SMTP id\n w13-20020a17090aea0db029017897a5f7bcso14862280pjy.5\n for <dev@dpdk.org>; Fri, 13 Aug 2021 01:06:07 -0700 (PDT)",
            "from C02D70YZMD6R.bytedance.net ([139.177.225.227])\n by smtp.gmail.com with ESMTPSA id 17sm1118192pjd.3.2021.08.13.01.06.02\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Fri, 13 Aug 2021 01:06:05 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=bytedance-com.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=xi7LfBKYdu+SkjmKDAy1O6SSZv80HnjO+DCqWdDYMaA=;\n b=J4gOrbQIwg+VWxMZHT87zKmuMRd7wUK+C17/fBiUSSseG8s36J8gwnj1LUmwdkxf/k\n LB0l50JokcohOIID5bOkjmwnicPquWjozI4xH9m3whcgVUs9YO6A5ctvU7l2qj4zL0Ae\n 83ws4vqtxyhQGX95PUilD8D3pvxhjTtoSsmV6WPlTb5kF0Dbb3GJAOS5VlVvNyXgVCSN\n QDmqb3XDY4eHZa2QEXNVedRtAoE7I0QdMUwDDqS+IGI9QEhMlbAcj2fsliZ8vB7/b44T\n 8MWjgpZzaucjEcW8UXDuc2ElB/5zrXp7HNUNXocqO0kEJeNhDElzddrFvWbraEYuGpkC\n lDXw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=xi7LfBKYdu+SkjmKDAy1O6SSZv80HnjO+DCqWdDYMaA=;\n b=Hx/6CiZTuN0WmvUaKniVNSzajZqVOb/4ZDj/4jI8JZG1iYeD2INJVILRele7alu60e\n /qqafYWj/4ga4KXzMaQTAA0IYP0E9YdSO9CqgjvX0DajN4PlKv2HTsPM6gLQY+k3GYM8\n Zyr5cgw1opooAHBSlaPu/SQQ5InIWGjQAWXeZ6+fgZQo6n5GW/HN3KO6ay8y+vKKaj4x\n 6drwrtgI+DQvGfDf0IfnigOAy7BpSx4ziU9yJJ3uJjJwmThWXdpJFR3POOxHM47s8DU/\n cXh9YQ32RUBcid83caHwA/ZvTJEai/yk9XWXl0AUQ8KiIsZd+QBTjcEBjw+H/YcGGSdC\n 9pRg==",
        "X-Gm-Message-State": "AOAM533jADtRtytIcRSrXMR+izF4AhGiIVytOY09hqK2xvF9ReW/BvR4\n rZyKsaw/gKhulfbc2gJYkXSbB2KtEEENoA==",
        "X-Google-Smtp-Source": "\n ABdhPJzlR79JyYgHA5I8OxFlQjEksQVYe7jJWiT6k55felnEagsEyejpY2tgi4v9Vs62B8JdU88gog==",
        "X-Received": "by 2002:a63:e00b:: with SMTP id e11mr1311115pgh.190.1628841966422;\n Fri, 13 Aug 2021 01:06:06 -0700 (PDT)",
        "From": "Zhihong Wang <wangzhihong.wzh@bytedance.com>",
        "To": "dev@dpdk.org, ferruh.yigit@intel.com, xiaoyun.li@intel.com,\n aman.deep.singh@intel.com, irusskikh@marvell.com, cchemparathy@tilera.com",
        "Cc": "Zhihong Wang <wangzhihong.wzh@bytedance.com>",
        "Date": "Fri, 13 Aug 2021 16:05:47 +0800",
        "Message-Id": "<20210813080548.38637-4-wangzhihong.wzh@bytedance.com>",
        "X-Mailer": "git-send-email 2.24.3 (Apple Git-128)",
        "In-Reply-To": "<20210813080548.38637-1-wangzhihong.wzh@bytedance.com>",
        "References": "<20210809062548.30187-1-wangzhihong.wzh@bytedance.com>\n <20210813080548.38637-1-wangzhihong.wzh@bytedance.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v5 3/4] app/testpmd: record rx_burst and\n fwd_dropped in flowgen",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Call inc_rx_burst_stats for rx operation, and record fwd_dropped.\n\nSigned-off-by: Zhihong Wang <wangzhihong.wzh@bytedance.com>\nAcked-by: Xiaoyun Li <xiaoyun.li@intel.com>\n---\n app/test-pmd/flowgen.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/app/test-pmd/flowgen.c b/app/test-pmd/flowgen.c\nindex 96d0cc79df..229794ee9c 100644\n--- a/app/test-pmd/flowgen.c\n+++ b/app/test-pmd/flowgen.c\n@@ -87,6 +87,7 @@ pkt_burst_flow_gen(struct fwd_stream *fs)\n \t/* Receive a burst of packets and discard them. */\n \tnb_rx = rte_eth_rx_burst(fs->rx_port, fs->rx_queue, pkts_burst,\n \t\t\t\t nb_pkt_per_burst);\n+\tinc_rx_burst_stats(fs, nb_rx);\n \tfs->rx_packets += nb_rx;\n \n \tfor (i = 0; i < nb_rx; i++)\n@@ -186,6 +187,7 @@ pkt_burst_flow_gen(struct fwd_stream *fs)\n \t\twhile (next_flow < 0)\n \t\t\tnext_flow += cfg_n_flows;\n \n+\t\tfs->fwd_dropped += nb_pkt - nb_tx;\n \t\tdo {\n \t\t\trte_pktmbuf_free(pkts_burst[nb_tx]);\n \t\t} while (++nb_tx < nb_pkt);\n",
    "prefixes": [
        "v5",
        "3/4"
    ]
}