Show a patch.

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

{
    "id": 130,
    "url": "https://patches.dpdk.org/api/patches/130/",
    "web_url": "https://patches.dpdk.org/patch/130/",
    "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": "<1407728582-19637-1-git-send-email-takayuki@midokura.com>",
    "date": "2014-08-11T03:43:02",
    "name": "[dpdk-dev] table: hash: fix entry size of configurable key size ext and lru",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "25ab638324834595b699b910a5b40ff4fe245a58",
    "submitter": {
        "id": 50,
        "url": "https://patches.dpdk.org/api/people/50/",
        "name": "Takayuki Usui",
        "email": "takayuki@midokura.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/130/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/130/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/130/checks/",
    "tags": {},
    "headers": {
        "Received": [
            "from mail-pa0-f50.google.com (mail-pa0-f50.google.com\n\t[209.85.220.50]) by dpdk.org (Postfix) with ESMTP id 81ABE6898\n\tfor <dev@dpdk.org>; Mon, 11 Aug 2014 05:40:48 +0200 (CEST)",
            "by mail-pa0-f50.google.com with SMTP id et14so10368204pad.9\n\tfor <dev@dpdk.org>; Sun, 10 Aug 2014 20:43:36 -0700 (PDT)",
            "from localhost.localdomain ([240b:10:25c0:200:f157:ab3e:7dde:b8c7])\n\tby mx.google.com with ESMTPSA id\n\tgu4sm9806268pbb.54.2014.08.10.20.43.35 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tSun, 10 Aug 2014 20:43:36 -0700 (PDT)"
        ],
        "From": "Takayuki Usui <takayuki@midokura.com>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Message-Id": "<1407728582-19637-1-git-send-email-takayuki@midokura.com>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id;\n\tbh=Wsx7Wu52/jn/RQoinZsg2GmZjtX+Fbnn0kYYKecOF88=;\n\tb=BerWqlnfqNhLrYmbW9mJ5FSvWIHraK452Zh43gbWiEVQumdNrBH4JvSSbFG/3DJMdD\n\tfLnSjpgUBWIfihCec8Jc0CaU6dYDs+j8P6+52I297o+o6J82Srg/PQ0dzdD3bkhJpw5G\n\tmoHJbFmjyqoKqwu34oNauWXytnni6FLgQnxVlmpJ9lXC3Ee8r/W0hk79LD9HSvSQvbOF\n\tWB1CRHFx7KAJ6GJC+JVzFc2XLWjDLfCFCTsru5CZ8yxjh8mJuPR9LFsroHVT2prDRVqY\n\tqu4YQ4u+1+2YIb4j7vcaNz0CiLSyaMeUBGFaetN2fSLI9Cf5PUqdeVNQ/bWXrYkzg/w7\n\tYjTw==",
        "Subject": "[dpdk-dev] [PATCH] table: hash: fix entry size of configurable key\n\tsize ext and lru",
        "Date": "Mon, 11 Aug 2014 12:43:02 +0900",
        "Precedence": "list",
        "X-List-Received-Date": "Mon, 11 Aug 2014 03:40:48 -0000",
        "X-BeenThere": "dev@dpdk.org",
        "X-Received": "by 10.66.139.106 with SMTP id qx10mr1009685pab.126.1407728616652;\n\tSun, 10 Aug 2014 20:43:36 -0700 (PDT)",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<takayuki@midokura.com>",
        "X-Mailer": "git-send-email 2.0.3",
        "X-Gm-Message-State": "ALoCoQm1BMjFeDFUXsdoF1/3m4Iha/VMtptPXXmmjtv8UBVa7UHpbJG9nxfUuI9o2vMr105h352n",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "To": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "Signed-off-by: Takayuki Usui <takayuki@midokura.com>\n---\n lib/librte_table/rte_table_hash_ext.c | 2 +-\n lib/librte_table/rte_table_hash_lru.c | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_table/rte_table_hash_ext.c b/lib/librte_table/rte_table_hash_ext.c\nindex 6e26d98..8b86fab 100644\n--- a/lib/librte_table/rte_table_hash_ext.c\n+++ b/lib/librte_table/rte_table_hash_ext.c\n@@ -221,7 +221,7 @@ rte_table_hash_ext_create(void *params, int socket_id, uint32_t entry_size)\n \t/* Internal */\n \tt->bucket_mask = t->n_buckets - 1;\n \tt->key_size_shl = __builtin_ctzl(p->key_size);\n-\tt->data_size_shl = __builtin_ctzl(p->key_size);\n+\tt->data_size_shl = __builtin_ctzl(entry_size);\n \n \t/* Tables */\n \ttable_meta_offset = 0;\ndiff --git a/lib/librte_table/rte_table_hash_lru.c b/lib/librte_table/rte_table_hash_lru.c\nindex d1a4984..bf92e81 100644\n--- a/lib/librte_table/rte_table_hash_lru.c\n+++ b/lib/librte_table/rte_table_hash_lru.c\n@@ -192,7 +192,7 @@ rte_table_hash_lru_create(void *params, int socket_id, uint32_t entry_size)\n \t/* Internal */\n \tt->bucket_mask = t->n_buckets - 1;\n \tt->key_size_shl = __builtin_ctzl(p->key_size);\n-\tt->data_size_shl = __builtin_ctzl(p->key_size);\n+\tt->data_size_shl = __builtin_ctzl(entry_size);\n \n \t/* Tables */\n \ttable_meta_offset = 0;\n",
    "prefixes": [
        "dpdk-dev"
    ]
}