get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 85141,
    "url": "http://patches.dpdk.org/api/patches/85141/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201214102835.19980-1-ndabilpuram@marvell.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": "<20201214102835.19980-1-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201214102835.19980-1-ndabilpuram@marvell.com",
    "date": "2020-12-14T10:28:34",
    "name": "[1/2] test/bitmap: add test case to scan after half cline is cleared",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "6115a5fe473a41967644830280275eaf27d2b992",
    "submitter": {
        "id": 1202,
        "url": "http://patches.dpdk.org/api/people/1202/?format=api",
        "name": "Nithin Dabilpuram",
        "email": "ndabilpuram@marvell.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201214102835.19980-1-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 14288,
            "url": "http://patches.dpdk.org/api/series/14288/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14288",
            "date": "2020-12-14T10:28:34",
            "name": "[1/2] test/bitmap: add test case to scan after half cline is cleared",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/14288/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/85141/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/85141/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 24404A09E9;\n\tMon, 14 Dec 2020 11:29:14 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 20B4072D9;\n\tMon, 14 Dec 2020 11:29:11 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id E5B624F90\n for <dev@dpdk.org>; Mon, 14 Dec 2020 11:29:09 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 0BEALGB6008226; Mon, 14 Dec 2020 02:29:07 -0800",
            "from sc-exch01.marvell.com ([199.233.58.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 35cx8t3pbs-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 14 Dec 2020 02:29:07 -0800",
            "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Mon, 14 Dec 2020 02:29:05 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Mon, 14 Dec 2020 02:29:05 -0800",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 36A353F7044;\n Mon, 14 Dec 2020 02:29:03 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-type; s=pfpt0220;\n bh=KPIExvaNCsA85ZDjuxZtXKaDj1VU3jx+fEIz65nIpn8=;\n b=Np4uDjzikZFaPd7KtXzmPCB1Wm0Pr91v0GTXIa6EWlk/7GJHwdO1R6T0mk2XBkH3OXkR\n q4goeAZ/lUASpL5WYawTtz4JcEuJg/9Yq0vCMTkqQlYphIjdk2flIUaYVU4y6OSAQ045\n +z0bP9W9o7jKz+zfbdcvP0neYymfp2pFepq7yPYQZUBAK+SSCFQsW53LmDa3QKzNxAJn\n QnvjYXO6NyNkMFf9uBGqWJB3peVqWu9uExcYMy0rgpieeNaAkgpH92k3XOms5+XHuJHR\n 2/q+hT2KF4A9YMei7TO7A5IyKna5oU5k+gUi0WcmBCZypAVbptYkL9SK4HjZAD3PGwg4 ow==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "CC": "<jerinj@marvell.com>, <dev@dpdk.org>, Nithin Dabilpuram\n <ndabilpuram@marvell.com>",
        "Date": "Mon, 14 Dec 2020 15:58:34 +0530",
        "Message-ID": "<20201214102835.19980-1-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737\n definitions=2020-12-14_04:2020-12-11,\n 2020-12-14 signatures=0",
        "Subject": "[dpdk-dev] [PATCH 1/2] test/bitmap: add test case to scan after\n\thalf cline is cleared",
        "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": "Add a test case to test scan operation post clear of half\ncacheline of slabs.\n\nAlso fix meson.build to include test_bitmap.c in the compilation.\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n app/test/meson.build   |  1 +\n app/test/test_bitmap.c | 34 +++++++++++++++++++++++++++++++++-\n 2 files changed, 34 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test/meson.build b/app/test/meson.build\nindex 94fd39f..bb06a92 100644\n--- a/app/test/meson.build\n+++ b/app/test/meson.build\n@@ -13,6 +13,7 @@ test_sources = files('commands.c',\n \t'test_atomic.c',\n \t'test_barrier.c',\n \t'test_bitops.c',\n+\t'test_bitmap.c',\n \t'test_bpf.c',\n \t'test_byteorder.c',\n \t'test_cmdline.c',\ndiff --git a/app/test/test_bitmap.c b/app/test/test_bitmap.c\nindex a8204d3..70d8fff 100644\n--- a/app/test/test_bitmap.c\n+++ b/app/test/test_bitmap.c\n@@ -16,9 +16,10 @@\n static int\n test_bitmap_scan_operations(struct rte_bitmap *bmp)\n {\n-\tuint32_t pos = 0;\n \tuint64_t slab1_magic = 0xBADC0FFEEBADF00D;\n \tuint64_t slab2_magic = 0xFEEDDEADDEADF00D;\n+\tuint32_t pos = 0, start_pos;\n+\tint i, nb_clear, nb_set;\n \tuint64_t out_slab = 0;\n \n \trte_bitmap_reset(bmp);\n@@ -70,6 +71,37 @@ test_bitmap_scan_operations(struct rte_bitmap *bmp)\n \t\treturn TEST_FAILED;\n \t}\n \n+\t/* Test scan when a cline is half full */\n+\trte_bitmap_reset(bmp);\n+\tfor (i = 0; i < MAX_BITS; i++)\n+\t\trte_bitmap_set(bmp, i);\n+\n+\tnb_clear = RTE_MIN(RTE_BITMAP_CL_BIT_SIZE / 2, MAX_BITS);\n+\tfor (i = 0; i < nb_clear; i++)\n+\t\trte_bitmap_clear(bmp, i);\n+\n+\t/* Find remaining bits set in bmp */\n+\t__rte_bitmap_scan_init(bmp);\n+\n+\tif (rte_bitmap_scan(bmp, &pos, &out_slab) != 1) {\n+\t\tprintf(\"Initial scan failed with half CL empty.\\n\");\n+\t\treturn TEST_FAILED;\n+\t}\n+\n+\tstart_pos = pos;\n+\tnb_set = 0;\n+\tdo {\n+\t\tnb_set += __builtin_popcountll(out_slab);\n+\t\tif (!rte_bitmap_scan(bmp, &pos, &out_slab))\n+\t\t\tbreak;\n+\t} while (pos != start_pos);\n+\n+\tif ((nb_clear + nb_set) != MAX_BITS) {\n+\t\tprintf(\"Scan failed to find all set bits. \"\n+\t\t       \"Expected %u, found %u.\\n\", MAX_BITS - nb_clear, nb_set);\n+\t\treturn TEST_FAILED;\n+\t}\n+\n \treturn TEST_SUCCESS;\n }\n \n",
    "prefixes": [
        "1/2"
    ]
}