get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 15108,
    "url": "https://patches.dpdk.org/api/patches/15108/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1470207736-20760-1-git-send-email-wei.dai@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": "<1470207736-20760-1-git-send-email-wei.dai@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1470207736-20760-1-git-send-email-wei.dai@intel.com",
    "date": "2016-08-03T07:02:16",
    "name": "[dpdk-dev,v3,1/3] lpm: fix freeing unused sub-table on rule delete",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "def70a5913b05ac01cdc213602dcdcc74626d00d",
    "submitter": {
        "id": 490,
        "url": "https://patches.dpdk.org/api/people/490/?format=api",
        "name": "Wei Dai",
        "email": "wei.dai@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1470207736-20760-1-git-send-email-wei.dai@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/15108/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/15108/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id B9AF42C29;\n\tWed,  3 Aug 2016 09:04:06 +0200 (CEST)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 132A22C0C\n\tfor <dev@dpdk.org>; Wed,  3 Aug 2016 09:04:04 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga102.fm.intel.com with ESMTP; 03 Aug 2016 00:04:05 -0700",
            "from dpdk2.bj.intel.com ([172.16.182.189])\n\tby fmsmga001.fm.intel.com with ESMTP; 03 Aug 2016 00:04:03 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.28,464,1464678000\"; d=\"scan'208\";\n\ta=\"1018749720\"",
        "From": "Wei Dai <wei.dai@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Wei Dai <wei.dai@intel.com>",
        "Date": "Wed,  3 Aug 2016 15:02:16 +0800",
        "Message-Id": "<1470207736-20760-1-git-send-email-wei.dai@intel.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "In-Reply-To": "<1470035000-72828-1-git-send-email-wei.dai@intel.com>",
        "References": "<1470035000-72828-1-git-send-email-wei.dai@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 1/3] lpm: fix freeing unused sub-table on rule\n\tdelete",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://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": "<http://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": "When all rules with depth > 24 are deleted in a same sub-table\n(tlb8 group) and only a rule with depth <=24 is left in it,\nthis sub-table (tlb8 group) should be recycled.\n\nFixes: dc81ebbacaeb (\"lpm: extend IPv4 next hop field\")\nFixes: af75078fece3 (\"first public release\")\n\nSigned-off-by: Wei Dai <wei.dai@intel.com>\n---\n lib/librte_lpm/rte_lpm.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c\nindex 6f65d1c..24fec4b 100644\n--- a/lib/librte_lpm/rte_lpm.c\n+++ b/lib/librte_lpm/rte_lpm.c\n@@ -1533,7 +1533,7 @@ tbl8_recycle_check_v20(struct rte_lpm_tbl_entry_v20 *tbl8,\n \t\t * and if so check the rest of the entries to verify that they\n \t\t * are all of this depth.\n \t\t */\n-\t\tif (tbl8[tbl8_group_start].depth < MAX_DEPTH_TBL24) {\n+\t\tif (tbl8[tbl8_group_start].depth <= MAX_DEPTH_TBL24) {\n \t\t\tfor (i = (tbl8_group_start + 1); i < tbl8_group_end;\n \t\t\t\t\ti++) {\n \n@@ -1580,7 +1580,7 @@ tbl8_recycle_check_v1604(struct rte_lpm_tbl_entry *tbl8,\n \t\t * and if so check the rest of the entries to verify that they\n \t\t * are all of this depth.\n \t\t */\n-\t\tif (tbl8[tbl8_group_start].depth < MAX_DEPTH_TBL24) {\n+\t\tif (tbl8[tbl8_group_start].depth <= MAX_DEPTH_TBL24) {\n \t\t\tfor (i = (tbl8_group_start + 1); i < tbl8_group_end;\n \t\t\t\t\ti++) {\n \n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "1/3"
    ]
}