get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64059,
    "url": "http://patches.dpdk.org/api/patches/64059/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20191220044524.32910-13-honnappa.nagarahalli@arm.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": "<20191220044524.32910-13-honnappa.nagarahalli@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20191220044524.32910-13-honnappa.nagarahalli@arm.com",
    "date": "2019-12-20T04:45:19",
    "name": "[v7,12/17] test/ring: modify bulk enq/deq perf test cases",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "dd2c62798e9a4308b3cbc35494404cbdb73db9de",
    "submitter": {
        "id": 1045,
        "url": "http://patches.dpdk.org/api/people/1045/?format=api",
        "name": "Honnappa Nagarahalli",
        "email": "honnappa.nagarahalli@arm.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20191220044524.32910-13-honnappa.nagarahalli@arm.com/mbox/",
    "series": [
        {
            "id": 7903,
            "url": "http://patches.dpdk.org/api/series/7903/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7903",
            "date": "2019-12-20T04:45:07",
            "name": "lib/ring: APIs to support custom element size",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/7903/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64059/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/64059/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id AF5D5A04F3;\n\tFri, 20 Dec 2019 05:47:35 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A8F761BFB4;\n\tFri, 20 Dec 2019 05:46:21 +0100 (CET)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by dpdk.org (Postfix) with ESMTP id 4B38B1BF7C\n for <dev@dpdk.org>; Fri, 20 Dec 2019 05:45:59 +0100 (CET)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 972351435;\n Thu, 19 Dec 2019 20:45:57 -0800 (PST)",
            "from qc2400f-1.austin.arm.com (qc2400f-1.austin.arm.com\n [10.118.14.48])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8D50C3F86C;\n Thu, 19 Dec 2019 20:45:57 -0800 (PST)"
        ],
        "From": "Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>",
        "To": "olivier.matz@6wind.com, sthemmin@microsoft.com, jerinj@marvell.com,\n bruce.richardson@intel.com, david.marchand@redhat.com,\n pbhagavatula@marvell.com, konstantin.ananyev@intel.com,\n honnappa.nagarahalli@arm.com",
        "Cc": "dev@dpdk.org, dharmik.thakkar@arm.com, ruifeng.wang@arm.com,\n gavin.hu@arm.com, nd@arm.com",
        "Date": "Thu, 19 Dec 2019 22:45:19 -0600",
        "Message-Id": "<20191220044524.32910-13-honnappa.nagarahalli@arm.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20191220044524.32910-1-honnappa.nagarahalli@arm.com>",
        "References": "<20190906190510.11146-1-honnappa.nagarahalli@arm.com>\n <20191220044524.32910-1-honnappa.nagarahalli@arm.com>",
        "Subject": "[dpdk-dev] [PATCH v7 12/17] test/ring: modify bulk enq/deq perf\n\ttest cases",
        "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 <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": "Modify test cases to test legacy and rte_ring_xxx_elem APIs for\nbulk enqueue/dequeue test cases.\n\nSigned-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>\nReviewed-by: Gavin Hu <gavin.hu@arm.com>\n---\n app/test/test_ring_perf.c | 57 ++++++++++-----------------------------\n 1 file changed, 14 insertions(+), 43 deletions(-)",
    "diff": "diff --git a/app/test/test_ring_perf.c b/app/test/test_ring_perf.c\nindex 508c688dc..8a543b6f0 100644\n--- a/app/test/test_ring_perf.c\n+++ b/app/test/test_ring_perf.c\n@@ -433,46 +433,6 @@ test_burst_bulk_enqueue_dequeue(struct rte_ring *r, const int esize,\n \treturn 0;\n }\n \n-/* Times enqueue and dequeue on a single lcore */\n-static void\n-test_bulk_enqueue_dequeue(struct rte_ring *r)\n-{\n-\tconst unsigned iter_shift = 23;\n-\tconst unsigned iterations = 1<<iter_shift;\n-\tunsigned sz, i = 0;\n-\tvoid *burst[MAX_BURST] = {0};\n-\n-\tfor (sz = 0; sz < sizeof(bulk_sizes)/sizeof(bulk_sizes[0]); sz++) {\n-\t\tconst uint64_t sc_start = rte_rdtsc();\n-\t\tfor (i = 0; i < iterations; i++) {\n-\t\t\trte_ring_sp_enqueue_bulk(r, burst,\n-\t\t\t\t\tbulk_sizes[sz], NULL);\n-\t\t\trte_ring_sc_dequeue_bulk(r, burst,\n-\t\t\t\t\tbulk_sizes[sz], NULL);\n-\t\t}\n-\t\tconst uint64_t sc_end = rte_rdtsc();\n-\n-\t\tconst uint64_t mc_start = rte_rdtsc();\n-\t\tfor (i = 0; i < iterations; i++) {\n-\t\t\trte_ring_mp_enqueue_bulk(r, burst,\n-\t\t\t\t\tbulk_sizes[sz], NULL);\n-\t\t\trte_ring_mc_dequeue_bulk(r, burst,\n-\t\t\t\t\tbulk_sizes[sz], NULL);\n-\t\t}\n-\t\tconst uint64_t mc_end = rte_rdtsc();\n-\n-\t\tdouble sc_avg = ((double)(sc_end-sc_start) /\n-\t\t\t\t(iterations * bulk_sizes[sz]));\n-\t\tdouble mc_avg = ((double)(mc_end-mc_start) /\n-\t\t\t\t(iterations * bulk_sizes[sz]));\n-\n-\t\tprintf(\"SP/SC bulk enq/dequeue (size: %u): %.2F\\n\", bulk_sizes[sz],\n-\t\t\t\tsc_avg);\n-\t\tprintf(\"MP/MC bulk enq/dequeue (size: %u): %.2F\\n\", bulk_sizes[sz],\n-\t\t\t\tmc_avg);\n-\t}\n-}\n-\n static int\n test_ring_perf(void)\n {\n@@ -499,6 +459,13 @@ test_ring_perf(void)\n \tif (test_burst_bulk_enqueue_dequeue(r, -1,\n \t\t\tTEST_RING_M | TEST_RING_BR) < 0)\n \t\treturn -1;\n+\tprintf(\"\\n### Testing bulk enq/deq ###\\n\");\n+\tif (test_burst_bulk_enqueue_dequeue(r, -1,\n+\t\t\tTEST_RING_S | TEST_RING_BL) < 0)\n+\t\treturn -1;\n+\tif (test_burst_bulk_enqueue_dequeue(r, -1,\n+\t\t\tTEST_RING_M | TEST_RING_BL) < 0)\n+\t\treturn -1;\n \trte_ring_free(r);\n \n \tTEST_RING_CREATE(RING_NAME, 16, RING_SIZE, rte_socket_id(), 0, r);\n@@ -517,6 +484,13 @@ test_ring_perf(void)\n \tif (test_burst_bulk_enqueue_dequeue(r, 16,\n \t\t\tTEST_RING_M | TEST_RING_BR) < 0)\n \t\treturn -1;\n+\tprintf(\"\\n### Testing bulk enq/deq ###\\n\");\n+\tif (test_burst_bulk_enqueue_dequeue(r, 16,\n+\t\t\tTEST_RING_S | TEST_RING_BL) < 0)\n+\t\treturn -1;\n+\tif (test_burst_bulk_enqueue_dequeue(r, 16,\n+\t\t\tTEST_RING_M | TEST_RING_BL) < 0)\n+\t\treturn -1;\n \trte_ring_free(r);\n \n \tr = rte_ring_create(RING_NAME, RING_SIZE, rte_socket_id(), 0);\n@@ -526,9 +500,6 @@ test_ring_perf(void)\n \tprintf(\"\\n### Testing empty dequeue ###\\n\");\n \ttest_empty_dequeue(r);\n \n-\tprintf(\"\\n### Testing using a single lcore ###\\n\");\n-\ttest_bulk_enqueue_dequeue(r);\n-\n \tif (get_two_hyperthreads(&cores) == 0) {\n \t\tprintf(\"\\n### Testing using two hyperthreads ###\\n\");\n \t\trun_on_core_pair(&cores, r, enqueue_bulk, dequeue_bulk);\n",
    "prefixes": [
        "v7",
        "12/17"
    ]
}