get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 14175,
    "url": "http://patches.dpdk.org/api/patches/14175/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1466512066-8130-1-git-send-email-michalx.kobylinski@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1466512066-8130-1-git-send-email-michalx.kobylinski@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1466512066-8130-1-git-send-email-michalx.kobylinski@intel.com",
    "date": "2016-06-21T12:27:46",
    "name": "[dpdk-dev,v2] lib/table: fix wrong type of nht field",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "8b976116917050c81de767c10937bb50cf2b8be8",
    "submitter": {
        "id": 322,
        "url": "http://patches.dpdk.org/api/people/322/?format=api",
        "name": "Michal Kobylinski",
        "email": "michalx.kobylinski@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1466512066-8130-1-git-send-email-michalx.kobylinski@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/14175/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/14175/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 64039AF85;\n\tTue, 21 Jun 2016 14:57:45 +0200 (CEST)",
            "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id ADE418D35\n\tfor <dev@dpdk.org>; Tue, 21 Jun 2016 14:57:43 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga102.jf.intel.com with ESMTP; 21 Jun 2016 05:57:17 -0700",
            "from gklab-246-020.igk.intel.com (HELO Sent) ([10.217.246.20])\n\tby fmsmga002.fm.intel.com with SMTP; 21 Jun 2016 05:57:15 -0700",
            "by Sent (sSMTP sendmail emulation); Tue, 21 Jun 2016 14:27:49 +0200"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.26,504,1459839600\"; d=\"scan'208\";\n\ta=\"1006643788\"",
        "From": "Michal Kobylinski <michalx.kobylinski@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "cristian.dumitrescu@intel.com,\n\tMichal Kobylinski <michalx.kobylinski@intel.com>",
        "Date": "Tue, 21 Jun 2016 14:27:46 +0200",
        "Message-Id": "<1466512066-8130-1-git-send-email-michalx.kobylinski@intel.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1466417424-3148-1-git-send-email-michalx.k.jastrzebski@intel.com>",
        "References": "<1466417424-3148-1-git-send-email-michalx.k.jastrzebski@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2] lib/table: fix wrong type of nht field",
        "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": "Change type of nht field from uint32_t to uint8_t and increase max of\nnext hops.\n\nFixes: dc81ebbacaeb (\"lpm: extend IPv4 next hop field\")\nSigned-off-by: Michal Kobylinski <michalx.kobylinski@intel.com>\n---\nv2:\n - removed changing from file: pipeline_routing_be.h\n - changed macro: RTE_TABLE_LPM_MAX_NEXT_HOP\n\n lib/librte_table/rte_table_lpm.c | 10 ++++++----\n 1 file changed, 6 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/lib/librte_table/rte_table_lpm.c b/lib/librte_table/rte_table_lpm.c\nindex cdeb0f5..598b79f 100644\n--- a/lib/librte_table/rte_table_lpm.c\n+++ b/lib/librte_table/rte_table_lpm.c\n@@ -44,7 +44,9 @@\n \n #include \"rte_table_lpm.h\"\n \n-#define RTE_TABLE_LPM_MAX_NEXT_HOPS                        256\n+#ifndef RTE_TABLE_LPM_MAX_NEXT_HOPS\n+#define RTE_TABLE_LPM_MAX_NEXT_HOPS                        65536\n+#endif\n \n #ifdef RTE_TABLE_STATS_COLLECT\n \n@@ -74,7 +76,7 @@ struct rte_table_lpm {\n \n \t/* Next Hop Table (NHT) */\n \tuint32_t nht_users[RTE_TABLE_LPM_MAX_NEXT_HOPS];\n-\tuint32_t nht[0] __rte_cache_aligned;\n+\tuint8_t nht[0] __rte_cache_aligned;\n };\n \n static void *\n@@ -188,7 +190,7 @@ nht_find_existing(struct rte_table_lpm *lpm, void *entry, uint32_t *pos)\n \tuint32_t i;\n \n \tfor (i = 0; i < RTE_TABLE_LPM_MAX_NEXT_HOPS; i++) {\n-\t\tuint32_t *nht_entry = &lpm->nht[i * lpm->entry_size];\n+\t\tuint8_t *nht_entry = &lpm->nht[i * lpm->entry_size];\n \n \t\tif ((lpm->nht_users[i] > 0) && (memcmp(nht_entry, entry,\n \t\t\tlpm->entry_unique_size) == 0)) {\n@@ -242,7 +244,7 @@ rte_table_lpm_entry_add(\n \n \t/* Find existing or free NHT entry */\n \tif (nht_find_existing(lpm, entry, &nht_pos) == 0) {\n-\t\tuint32_t *nht_entry;\n+\t\tuint8_t *nht_entry;\n \n \t\tif (nht_find_free(lpm, &nht_pos) == 0) {\n \t\t\tRTE_LOG(ERR, TABLE, \"%s: NHT full\\n\", __func__);\n",
    "prefixes": [
        "dpdk-dev",
        "v2"
    ]
}