get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 35102,
    "url": "http://patches.dpdk.org/api/patches/35102/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180209202003.28546-1-3chas3@gmail.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": "<20180209202003.28546-1-3chas3@gmail.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180209202003.28546-1-3chas3@gmail.com",
    "date": "2018-02-09T20:20:02",
    "name": "[dpdk-dev,1/2] test/bitmap: add additional tests",
    "commit_ref": null,
    "pull_url": null,
    "state": "rejected",
    "archived": true,
    "hash": "3cc04aeeb3d97ddab0f3cfcb86d616e28ef665d4",
    "submitter": {
        "id": 341,
        "url": "http://patches.dpdk.org/api/people/341/?format=api",
        "name": "Chas Williams",
        "email": "3chas3@gmail.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/20180209202003.28546-1-3chas3@gmail.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/35102/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/35102/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 EAA661B891;\n\tFri,  9 Feb 2018 21:20:10 +0100 (CET)",
            "from mail-qk0-f195.google.com (mail-qk0-f195.google.com\n\t[209.85.220.195]) by dpdk.org (Postfix) with ESMTP id 9C4491B88F\n\tfor <dev@dpdk.org>; Fri,  9 Feb 2018 21:20:09 +0100 (CET)",
            "by mail-qk0-f195.google.com with SMTP id n188so11531406qkn.11\n\tfor <dev@dpdk.org>; Fri, 09 Feb 2018 12:20:09 -0800 (PST)",
            "from monolith.home (pool-173-79-224-159.washdc.fios.verizon.net.\n\t[173.79.224.159]) by smtp.gmail.com with ESMTPSA id\n\tl36sm2421598qte.55.2018.02.09.12.20.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tFri, 09 Feb 2018 12:20:08 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=cMkZIc2Hso5tMCqMuai7+ADjyl1K5VwmoshUYMybB88=;\n\tb=RsvWMsNqa2erPtvhpQuBDRkcJBeRYB6iYK6Jy5x9iy+XjHVCxTJMkEIty3RXhuommH\n\tSAkolbW+LyZ9KkcCjdBhpcTdCnsYFwiX+eNVLm9ATw6T//vBRg5ZzMitmZSs0mbcu0DP\n\twigod1NBAyTu2tPbJeKjmXaSBstGKrsB9W+HKZU2zB/CTzKp6BxVMdwIePOjlaq2H9YU\n\t4xBCYZq6ozXHSDWGRxVhz55UZMPMJKd8UIZjzF2q5cFN9nDqvEg8sFyhFnTWO07yzWI6\n\thnKI7FoE4vE2bPgO/gE3Rc5EYA1AJ9muK8U+clvyd/onjcAcQvEwzkQy+GtUsmLdqX8m\n\tn/5A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id;\n\tbh=cMkZIc2Hso5tMCqMuai7+ADjyl1K5VwmoshUYMybB88=;\n\tb=ecvUgvn6PDcDXZiDVF58vEdD0CbgFktL2iCDqMVaQu3I1JbfRkQLqJka/cno8pT575\n\tZDctSecQYEm7lMsEU/vRPRLFsZ3JPisJ+2uLp6E+EUOmp2fzQnePTP+HG3ilybRX8lAA\n\tSkGUu5b/iVaYj7RWmQ+2cqY+3scYWnZ8/V7D5banPf2WMEi9k8uVeXLUF+zZhT2nv4K9\n\tbO45ykzk6Z581sQgFMDeqcJNTw6K3HeItka3IY+JuhHh6zZM7SVGqVgc3v9Iv259yyjR\n\t5FvUoH+PeBV+nhnXREg2aCNP+F67dk419o2UxcltIiKuJPSHD+fabyB4EAKRGo6OKYh8\n\tZHPQ==",
        "X-Gm-Message-State": "APf1xPA3EvooVzLfeqCdY9dwVs60wAS1dYalwS9g/ESjsCA075UEtfdV\n\tqkdCHHk6WgB7/Mw1mrYb87ss1w==",
        "X-Google-Smtp-Source": "AH8x225CBUq+s5UkX1muElq5muZQe9ra1TOvdf0ygH5GE5wY2VxQMN/OcJGWfU2H7wrnv2Te4P1NmA==",
        "X-Received": "by 10.55.167.206 with SMTP id q197mr6003353qke.97.1518207608878; \n\tFri, 09 Feb 2018 12:20:08 -0800 (PST)",
        "From": "Chas Williams <3chas3@gmail.com>",
        "To": "dev@dpdk.org",
        "Cc": "cristian.dumitrescu@intel.com, \"Charles (Chas) Williams\" <chas3@att.com>",
        "Date": "Fri,  9 Feb 2018 15:20:02 -0500",
        "Message-Id": "<20180209202003.28546-1-3chas3@gmail.com>",
        "X-Mailer": "git-send-email 2.9.5",
        "Subject": "[dpdk-dev] [PATCH 1/2] test/bitmap: add additional tests",
        "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://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: \"Charles (Chas) Williams\" <chas3@att.com>\n\nAdd addtional units tests for the rte_bitmap_scan() routine.  Test that\nwe are gettting the bits returned that we expect.\n\nSigned-off-by: Chas Williams <chas3@att.com>\n---\n test/test/test_bitmap.c | 68 +++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 68 insertions(+)",
    "diff": "diff --git a/test/test/test_bitmap.c b/test/test/test_bitmap.c\nindex 05d547e..f498c02 100644\n--- a/test/test/test_bitmap.c\n+++ b/test/test/test_bitmap.c\n@@ -74,6 +74,71 @@ test_bitmap_scan_operations(struct rte_bitmap *bmp)\n }\n \n static int\n+test_bitmap_scan_operations2(struct rte_bitmap *bmp)\n+{\n+\tuint32_t pos = 0;\n+\tuint64_t out_slab = 0;\n+\tuint32_t pattern[] = { 10, 11, 100, 101, 500, 501 };\n+\tuint32_t pattern2[] = { 11, 101, 501 };\n+\tuint32_t i;\n+\n+\trte_bitmap_reset(bmp);\n+\n+\t/* Setup the initial bitmap. */\n+\tfor (i = 0; i < sizeof(pattern)/sizeof(uint32_t); i++)\n+\t\trte_bitmap_set(bmp, pattern[i]);\n+\n+\t/* Iterate. */\n+\tfor (i = 0; i < sizeof(pattern)/sizeof(uint32_t); i++) {\n+\t\tif (!rte_bitmap_scan(bmp, &pos, &out_slab) ||\n+\t\t    pos != pattern[i]) {\n+\t\t\tprintf(\"Failed to get pos %d from bitmap.\\n\",\n+\t\t\t       pattern[i]);\n+\t\t\treturn TEST_FAILED;\n+\t\t}\n+\t}\n+\n+\t/* Check wrap around. */\n+\tif (!rte_bitmap_scan(bmp, &pos, &out_slab) || pos != pattern[0]) {\n+\t\tprintf(\"Failed to get pos %d from bitmap.\\n\", pattern[0]);\n+\t\treturn TEST_FAILED;\n+\t}\n+\n+\t/* Delete half the entries in the slabs. */\n+\trte_bitmap_clear(bmp, 10);\n+\trte_bitmap_clear(bmp, 100);\n+\trte_bitmap_clear(bmp, 500);\n+\n+\t/* Iterate. */\n+\tfor (i = 0; i < sizeof(pattern2)/sizeof(uint32_t); i++) {\n+\t\tif (!rte_bitmap_scan(bmp, &pos, &out_slab) ||\n+\t\t    pos != pattern2[i]) {\n+\t\t\tprintf(\"Failed to get pos %d from bitmap.\\n\",\n+\t\t\t       pattern2[i]);\n+\t\t\treturn TEST_FAILED;\n+\t\t}\n+\t}\n+\n+\t/* Check wrap around. */\n+\tif (!rte_bitmap_scan(bmp, &pos, &out_slab) || pos != pattern2[0]) {\n+\t\tprintf(\"Failed to get pos %d from bitmap.\\n\", pattern2[0]);\n+\t\treturn TEST_FAILED;\n+\t}\n+\n+\trte_bitmap_clear(bmp, 11);\n+\trte_bitmap_clear(bmp, 101);\n+\trte_bitmap_clear(bmp, 501);\n+\n+\t/* Ensure bitmap it empty. */\n+\tif (rte_bitmap_scan(bmp, &pos, &out_slab)) {\n+\t\tprintf(\"Found pos %d in empty bitmap.\\n\", pos);\n+\t\treturn TEST_FAILED;\n+\t}\n+\n+\treturn TEST_SUCCESS;\n+}\n+\n+static int\n test_bitmap_slab_set_get(struct rte_bitmap *bmp)\n {\n \tuint32_t pos = 0;\n@@ -158,6 +223,9 @@ test_bitmap(void)\n \tif (test_bitmap_scan_operations(bmp) < 0)\n \t\treturn TEST_FAILED;\n \n+\tif (test_bitmap_scan_operations2(bmp) < 0)\n+\t\treturn TEST_FAILED;\n+\n \treturn TEST_SUCCESS;\n }\n \n",
    "prefixes": [
        "dpdk-dev",
        "1/2"
    ]
}