get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 47389,
    "url": "https://patches.dpdk.org/api/patches/47389/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1540404570-102126-3-git-send-email-yipeng1.wang@intel.com/",
    "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": "<1540404570-102126-3-git-send-email-yipeng1.wang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1540404570-102126-3-git-send-email-yipeng1.wang@intel.com",
    "date": "2018-10-24T18:09:28",
    "name": "[v2,2/4] test/hash: change multiwriter test to use jhash",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "55bd2a0a8957b234d60c1560306cfaa798c7d343",
    "submitter": {
        "id": 754,
        "url": "https://patches.dpdk.org/api/people/754/?format=api",
        "name": "Wang, Yipeng1",
        "email": "yipeng1.wang@intel.com"
    },
    "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/1540404570-102126-3-git-send-email-yipeng1.wang@intel.com/mbox/",
    "series": [
        {
            "id": 2078,
            "url": "https://patches.dpdk.org/api/series/2078/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=2078",
            "date": "2018-10-24T18:09:26",
            "name": "hash: improve multiple places",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/2078/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/47389/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/47389/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 0B4024C9F;\n\tThu, 25 Oct 2018 03:14:52 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby dpdk.org (Postfix) with ESMTP id 10985293B\n\tfor <dev@dpdk.org>; Thu, 25 Oct 2018 03:14:47 +0200 (CEST)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t24 Oct 2018 18:14:46 -0700",
            "from skx-yipeng.jf.intel.com ([10.54.81.175])\n\tby orsmga004.jf.intel.com with ESMTP; 24 Oct 2018 18:14:46 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.54,422,1534834800\"; d=\"scan'208\";a=\"244139400\"",
        "From": "Yipeng Wang <yipeng1.wang@intel.com>",
        "To": "bruce.richardson@intel.com",
        "Cc": "stephen@networkplumber.org, dev@dpdk.org, yipeng1.wang@intel.com,\n\thonnappa.nagarahalli@arm.com, sameh.gobriel@intel.com",
        "Date": "Wed, 24 Oct 2018 11:09:28 -0700",
        "Message-Id": "<1540404570-102126-3-git-send-email-yipeng1.wang@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1540404570-102126-1-git-send-email-yipeng1.wang@intel.com>",
        "References": "<1540404570-102126-1-git-send-email-yipeng1.wang@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 2/4] test/hash: change multiwriter test to use\n\tjhash",
        "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": "With sequential key, the test will cover more corner\ncases with jhash instead of crc hash, since jhash\ngenerates more random hash pattern on sequential key.\nIt is useful for functional verification.\n\nSigned-off-by: Yipeng Wang <yipeng1.wang@intel.com>\n---\n test/test/test_hash_multiwriter.c | 10 +++++++++-\n 1 file changed, 9 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/test/test/test_hash_multiwriter.c b/test/test/test_hash_multiwriter.c\nindex 6a3eb10..456bc5f 100644\n--- a/test/test/test_hash_multiwriter.c\n+++ b/test/test/test_hash_multiwriter.c\n@@ -12,6 +12,7 @@\n #include <rte_malloc.h>\n #include <rte_random.h>\n #include <rte_spinlock.h>\n+#include <rte_jhash.h>\n \n #include \"test.h\"\n \n@@ -31,6 +32,9 @@\n \n #define RTE_APP_TEST_HASH_MULTIWRITER_FAILED 0\n \n+/* Use jhash or crc hash */\n+#define USE_JHASH 1\n+\n struct {\n \tuint32_t *keys;\n \tuint32_t *found;\n@@ -108,10 +112,14 @@ test_hash_multiwriter(void)\n \tstruct rte_hash_parameters hash_params = {\n \t\t.entries = nb_entries,\n \t\t.key_len = sizeof(uint32_t),\n-\t\t.hash_func = rte_hash_crc,\n \t\t.hash_func_init_val = 0,\n \t\t.socket_id = rte_socket_id(),\n \t};\n+\tif (USE_JHASH)\n+\t\thash_params.hash_func = rte_jhash;\n+\telse\n+\t\thash_params.hash_func = rte_hash_crc;\n+\n \tif (use_htm)\n \t\thash_params.extra_flag =\n \t\t\tRTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT\n",
    "prefixes": [
        "v2",
        "2/4"
    ]
}