Show a patch.

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

{
    "id": 297,
    "url": "https://patches.dpdk.org/api/patches/297/",
    "web_url": "https://patches.dpdk.org/patch/297/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1409724351-23786-2-git-send-email-e_zhumabekov@sts.kz>",
    "date": "2014-09-03T06:05:50",
    "name": "[dpdk-dev,1/2] hash: add new rte_hash_crc_8byte call",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e986e17276058e4681224e1ab33521d561cf63c5",
    "submitter": {
        "id": 36,
        "url": "https://patches.dpdk.org/api/people/36/",
        "name": "Yerden Zhumabekov",
        "email": "e_zhumabekov@sts.kz"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/297/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/297/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/297/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<E_Zhumabekov@sts.kz>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Date": "Wed, 3 Sep 2014 12:05:50 +0600",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "In-Reply-To": "<1409724351-23786-1-git-send-email-e_zhumabekov@sts.kz>",
        "X-FEAS-SYSTEM-WL": "e_zhumabekov@sts.kz",
        "Message-ID": "<1409724351-23786-2-git-send-email-e_zhumabekov@sts.kz>",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<1409724351-23786-1-git-send-email-e_zhumabekov@sts.kz>",
        "X-Mailer": "git-send-email 1.7.9.5",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "<dev@dpdk.org>",
        "MIME-Version": "1.0",
        "Received": [
            "from mgw.gov.kz (mgw.gov.kz [89.218.88.242])\n\tby dpdk.org (Postfix) with ESMTP id B57452E8B\n\tfor <dev@dpdk.org>; Wed,  3 Sep 2014 08:01:42 +0200 (CEST)",
            "from mgw.gov.kz (mx.ctsat.kz [178.89.4.95])\n\tby mgw.gov.kz  with ESMTP id s8366FHY029973-s8366FHZ029973\n\tfor <dev@dpdk.org>; Wed, 3 Sep 2014 12:06:16 +0600",
            "from EXCASHUB1.rgp.local (192.168.40.51) by EdgeForefront.rgp.local\n\t(192.168.40.59) with Microsoft SMTP Server (TLS) id 14.2.247.3;\n\tWed, 3 Sep 2014 12:05:11 +0600",
            "from r220.rgp.local (192.168.59.10) by excashub1.rgp.local\n\t(192.168.40.48) with Microsoft SMTP Server (TLS) id 14.2.247.3;\n\tWed, 3 Sep 2014 12:10:26 +0600"
        ],
        "From": "Yerden Zhumabekov <e_zhumabekov@sts.kz>",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [PATCH 1/2] hash: add new rte_hash_crc_8byte call",
        "X-Originating-IP": "[192.168.59.10]",
        "X-List-Received-Date": "Wed, 03 Sep 2014 06:01:43 -0000",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Content-Type": "text/plain",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "SSE4.2 provides _mm_crc32_u64 intrinsic with 8-byte operand.\n\nSigned-off-by: Yerden Zhumabekov <e_zhumabekov@sts.kz>\n---\n lib/librte_hash/rte_hash_crc.h |   16 ++++++++++++++++\n 1 file changed, 16 insertions(+)",
    "diff": "diff --git a/lib/librte_hash/rte_hash_crc.h b/lib/librte_hash/rte_hash_crc.h\nindex b48b0db..102b2a0 100644\n--- a/lib/librte_hash/rte_hash_crc.h\n+++ b/lib/librte_hash/rte_hash_crc.h\n@@ -64,6 +64,22 @@ rte_hash_crc_4byte(uint32_t data, uint32_t init_val)\n }\n \n /**\n+ * Use single crc32 instruction to perform a hash on a 8 byte value.\n+ *\n+ * @param data\n+ *   Data to perform hash on.\n+ * @param init_val\n+ *   Value to initialise hash generator.\n+ * @return\n+ *   32bit calculated hash value.\n+ */\n+static inline uint32_t\n+rte_hash_crc_8byte(uint64_t data, uint32_t init_val)\n+{\n+\treturn _mm_crc32_u64(init_val, data);\n+}\n+\n+/**\n  * Use crc32 instruction to perform a hash.\n  *\n  * @param data\n",
    "prefixes": [
        "dpdk-dev",
        "1/2"
    ]
}