Show a patch.

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

{
    "id": 357,
    "url": "https://patches.dpdk.org/api/patches/357/?format=api",
    "web_url": "https://patches.dpdk.org/patch/357/",
    "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"
    },
    "msgid": "<1410457641-3540-2-git-send-email-balazs.nemeth@intel.com>",
    "date": "2014-09-11T17:47:18",
    "name": "[dpdk-dev,1/4] lib/librte_table: Fix empty bucket removal during entry deletion in rte_table_hash_ext",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4bb186444207dfbb5c837844ddb2acd6a60d9374",
    "submitter": {
        "id": 67,
        "url": "https://patches.dpdk.org/api/people/67/?format=api",
        "name": "Balazs Nemeth",
        "email": "balazs.nemeth@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/357/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/357/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/357/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "X-ExtLoop1": "1",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.1.0",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 31328B347;\n\tThu, 11 Sep 2014 19:41:32 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 4FAD7AF87\n\tfor <dev@dpdk.org>; Thu, 11 Sep 2014 19:41:31 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP; 11 Sep 2014 10:40:10 -0700",
            "from bnemeth-mobl.ger.corp.intel.com (HELO localhost.localdomain)\n\t([172.22.195.53])\n\tby orsmga002.jf.intel.com with ESMTP; 11 Sep 2014 10:46:15 -0700"
        ],
        "References": "<1410457641-3540-1-git-send-email-balazs.nemeth@intel.com>",
        "X-BeenThere": "dev@dpdk.org",
        "Message-Id": "<1410457641-3540-2-git-send-email-balazs.nemeth@intel.com>",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,506,1406617200\"; d=\"scan'208\";a=\"601588434\"",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Precedence": "list",
        "From": "Balazs Nemeth <balazs.nemeth@intel.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "In-Reply-To": "<1410457641-3540-1-git-send-email-balazs.nemeth@intel.com>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "To": "dev@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Date": "Thu, 11 Sep 2014 19:47:18 +0200",
        "Cc": "Balazs Nemeth <balazs.nemeth@intel.com>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH 1/4] lib/librte_table: Fix empty bucket removal\n\tduring entry deletion in rte_table_hash_ext"
    },
    "content": "When an entry is deleted from an extensible rte_table_hash, the bucket\nthat stored the entry can become empty. If this is the case, the\nbucket needs to be removed from the chain of buckets.\n\nDuring removal of the bucket, the chain should be updated first. If\nthe bucket that will be removed is cleared first, the chain is broken\nand the information to update the chain is lost.\n\nSigned-off-by: Balazs Nemeth <balazs.nemeth@intel.com>\n---\n lib/librte_table/rte_table_hash_ext.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/lib/librte_table/rte_table_hash_ext.c b/lib/librte_table/rte_table_hash_ext.c\nindex 6e26d98..17c16cd 100644\n--- a/lib/librte_table/rte_table_hash_ext.c\n+++ b/lib/librte_table/rte_table_hash_ext.c\n@@ -408,12 +408,12 @@ void *entry)\n \t\t\t\tif ((bkt_prev != NULL) &&\n \t\t\t\t    (bkt->sig[0] == 0) && (bkt->sig[1] == 0) &&\n \t\t\t\t    (bkt->sig[2] == 0) && (bkt->sig[3] == 0)) {\n-\t\t\t\t\t/* Clear bucket */\n-\t\t\t\t\tmemset(bkt, 0, sizeof(struct bucket));\n-\n \t\t\t\t\t/* Unchain bucket */\n \t\t\t\t\tBUCKET_NEXT_COPY(bkt_prev, bkt);\n \n+\t\t\t\t\t/* Clear bucket */\n+\t\t\t\t\tmemset(bkt, 0, sizeof(struct bucket));\n+\n \t\t\t\t\t/* Free bucket back to buckets ext */\n \t\t\t\t\tbkt_index = bkt - t->buckets_ext;\n \t\t\t\t\tt->bkt_ext_stack[t->bkt_ext_stack_tos++]\n",
    "prefixes": [
        "dpdk-dev",
        "1/4"
    ]
}