get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 5353,
    "url": "https://patches.dpdk.org/api/patches/5353/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1433941641-19405-2-git-send-email-bruce.richardson@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": "<1433941641-19405-2-git-send-email-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1433941641-19405-2-git-send-email-bruce.richardson@intel.com",
    "date": "2015-06-10T13:07:16",
    "name": "[dpdk-dev,RFC-PATCH-v3,1/6] kni: add function to query the name of a kni object",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "be6ae0a63465279fde2a3bfefcfcacfb17958197",
    "submitter": {
        "id": 20,
        "url": "https://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1433941641-19405-2-git-send-email-bruce.richardson@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/5353/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/5353/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 DE783C310;\n\tWed, 10 Jun 2015 15:09:16 +0200 (CEST)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 457105ABA\n\tfor <dev@dpdk.org>; Wed, 10 Jun 2015 15:09:14 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga101.fm.intel.com with ESMTP; 10 Jun 2015 06:07:28 -0700",
            "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga001.fm.intel.com with ESMTP; 10 Jun 2015 06:07:25 -0700",
            "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\tt5AD7Pb4010119; Wed, 10 Jun 2015 14:07:25 +0100",
            "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id t5AD7OwS019468;\n\tWed, 10 Jun 2015 14:07:24 +0100",
            "(from bricha3@localhost)\n\tby sivswdev01.ir.intel.com with  id t5AD7OA1019462;\n\tWed, 10 Jun 2015 14:07:24 +0100"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.13,587,1427785200\"; d=\"scan'208\";a=\"724595545\"",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Wed, 10 Jun 2015 14:07:16 +0100",
        "Message-Id": "<1433941641-19405-2-git-send-email-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1433941641-19405-1-git-send-email-bruce.richardson@intel.com>",
        "References": "<20150519113112.GA10700@bricha3-MOBL3>\n\t<1433941641-19405-1-git-send-email-bruce.richardson@intel.com>",
        "Subject": "[dpdk-dev] [RFC-PATCH-v3 1/6] kni: add function to query the name\n\tof a kni object",
        "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 a KNI object is created, a name is assigned to it which is stored\ninternally. There is also an API function to look up a KNI object by\nname, but there is no API to query the current name of an existing\nKNI object. This patch adds just such an API.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n lib/librte_kni/rte_kni.c           |  6 ++++++\n lib/librte_kni/rte_kni.h           | 10 ++++++++++\n lib/librte_kni/rte_kni_version.map |  1 +\n 3 files changed, 17 insertions(+)",
    "diff": "diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c\nindex 4e70fa0..c5a0089 100644\n--- a/lib/librte_kni/rte_kni.c\n+++ b/lib/librte_kni/rte_kni.c\n@@ -674,6 +674,12 @@ rte_kni_get(const char *name)\n \treturn NULL;\n }\n \n+const char *\n+rte_kni_get_name(const struct rte_kni *kni)\n+{\n+\treturn kni->name;\n+}\n+\n /*\n  * It is deprecated and just for backward compatibility.\n  */\ndiff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h\nindex 44240fe..0c74251 100644\n--- a/lib/librte_kni/rte_kni.h\n+++ b/lib/librte_kni/rte_kni.h\n@@ -248,6 +248,16 @@ extern uint8_t rte_kni_get_port_id(struct rte_kni *kni) \\\n extern struct rte_kni *rte_kni_get(const char *name);\n \n /**\n+ * Get the name given to a KNI device\n+ *\n+ * @param kni\n+ *   The KNI instance to query\n+ * @return\n+ *   The pointer to the KNI name\n+ */\n+extern const char *rte_kni_get_name(const struct rte_kni *kni);\n+\n+/**\n  * Get the KNI context of the specific port.\n  *\n  * Note: It is deprecated and just for backward compatibility.\ndiff --git a/lib/librte_kni/rte_kni_version.map b/lib/librte_kni/rte_kni_version.map\nindex b0bbf4d..e5e4e1b 100644\n--- a/lib/librte_kni/rte_kni_version.map\n+++ b/lib/librte_kni/rte_kni_version.map\n@@ -6,6 +6,7 @@ DPDK_2.0 {\n \trte_kni_create;\n \trte_kni_get;\n \trte_kni_get_port_id;\n+\trte_kni_get_name;\n \trte_kni_handle_request;\n \trte_kni_info_get;\n \trte_kni_init;\n",
    "prefixes": [
        "dpdk-dev",
        "RFC-PATCH-v3",
        "1/6"
    ]
}