get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41895,
    "url": "http://patches.dpdk.org/api/patches/41895/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180628225426.21309-1-dg@adax.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": "<20180628225426.21309-1-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180628225426.21309-1-dg@adax.com",
    "date": "2018-06-28T22:54:26",
    "name": "[08/10] kni: add rte_kni_free to KNI example app",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0bd4dc338d621ce5e1b5664696ecabd2f8ea9765",
    "submitter": {
        "id": 1040,
        "url": "http://patches.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180628225426.21309-1-dg@adax.com/mbox/",
    "series": [
        {
            "id": 301,
            "url": "http://patches.dpdk.org/api/series/301/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=301",
            "date": "2018-06-28T22:45:13",
            "name": "kni: Interface detach and link status fixes.",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/301/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41895/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/41895/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8A3031B14C;\n\tFri, 29 Jun 2018 00:54:35 +0200 (CEST)",
            "from mail-oi0-f48.google.com (mail-oi0-f48.google.com\n\t[209.85.218.48]) by dpdk.org (Postfix) with ESMTP id D985D1B063\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 00:54:33 +0200 (CEST)",
            "by mail-oi0-f48.google.com with SMTP id c6-v6so6768502oiy.0\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 15:54:33 -0700 (PDT)",
            "from linux.adax.com (172-11-198-60.lightspeed.sntcca.sbcglobal.net.\n\t[172.11.198.60]) by smtp.gmail.com with ESMTPSA id\n\te4-v6sm3739311oti.75.2018.06.28.15.54.31\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 15:54:32 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id;\n\tbh=t9K0HAm7ovX56o3rCITJkVg9YocRDyAImC7Yvmmmhqo=;\n\tb=sWCNwM2Uh+kVQnZZsFX05iTl52YheEYrp5tGOnF9kaRrO/zl72LPl4j3XO/n7s//lQ\n\tGhq7QukDMUqAwrBLcdZeUott+S6acEsRb3oEr0Z40Sz0n/WQVxWqm6s7lZU+IeB7Pcts\n\tM6aySJNt2TIZ5uDPmCmM/Ox8CYprmyc+bqi4IssP3gJxWrditCa2JpLVgAaUoM5Tp6yW\n\tHZZfoObjlFMhs7ZEJwQNan37Lxej0NGGZytrBBR/j45X/F6jmQ250yg72s8GUso/MqkW\n\tPqU7ZV2rykv89dGFEICYPS2Wcc7+PoyhMw7E5+Y8ol8cSBjtu/3hdA4JL5OK43Kba4yT\n\tPwBA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=t9K0HAm7ovX56o3rCITJkVg9YocRDyAImC7Yvmmmhqo=;\n\tb=odapJHtPn21yhzVQk1QcTu5xIAnp5zKC22Xn/81J2uGqC09+ca23A5pjxgDq7pRjFK\n\t9Bk4JcoIgPyC393s1MMUCXavsFeUeot3OcUt4R/eSkRE9GoMNkD+dt+eDp55egnBjcp4\n\tZtVpmSZRsHyuOH7x8vHZpnbBnyRlgi8Oh8SH0xQsNHLFHQ8fY4fjeWawN8CGNem23Dhs\n\twoEDsZ7d1A+q4psS3QBXPXOv/pDUpkUD4i+a3pxZu5AxrIVt+cr27mUCI2a6qYQmUZwj\n\tgyi916v67HTgsk3fK+Wk1tyIOYjh2oLcC+mhqLgcuVZ63M458gGwYhQ6fjVspcsQYPZF\n\ty6yQ==",
        "X-Gm-Message-State": "APt69E3MATh3QTtINJ1Y7siSLKuLuwYZufBlrejBxIJIbAIDURYDAJ8F\n\t6k7zlvIq8TX4KwO2qjbBW78=",
        "X-Google-Smtp-Source": "AAOMgpeJCbwg8QSI78HSqmiiJ+djz8sW6yZM2ZFPFQSeBS+4lNI3sTqYMSCdTUQL/tL3ndNTP2KQ+w==",
        "X-Received": "by 2002:aca:a93:: with SMTP id\n\tk19-v6mr7214817oiy.83.1530226473128; \n\tThu, 28 Jun 2018 15:54:33 -0700 (PDT)",
        "From": "Dan Gora <dg@adax.com>",
        "To": "Ferruh Yigit <ferruh.yigit@intel.com>",
        "Cc": "dev@dpdk.org,\n\tDan Gora <dg@adax.com>",
        "Date": "Thu, 28 Jun 2018 15:54:26 -0700",
        "Message-Id": "<20180628225426.21309-1-dg@adax.com>",
        "X-Mailer": "git-send-email 2.18.0.rc1.1.g6f333ff2f",
        "Subject": "[dpdk-dev] [PATCH 08/10] kni: add rte_kni_free to KNI example app",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add rte_kni_free to the KNI example application.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n examples/kni/main.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/examples/kni/main.c b/examples/kni/main.c\nindex 4b162debb..75e23cd0f 100644\n--- a/examples/kni/main.c\n+++ b/examples/kni/main.c\n@@ -883,7 +883,9 @@ kni_free_kni(uint16_t port_id)\n \n \tfor (i = 0; i < p[port_id]->nb_kni; i++) {\n \t\tif (rte_kni_release(p[port_id]->kni[i]))\n-\t\t\tprintf(\"Fail to release kni\\n\");\n+\t\t\tprintf(\"Failed to release kni\\n\");\n+\t\tif (rte_kni_free(p[port_id]->kni[i]))\n+\t\t\tprintf(\"Failed to free kni\\n\");\n \t\tp[port_id]->kni[i] = NULL;\n \t}\n \trte_eth_dev_stop(port_id);\n",
    "prefixes": [
        "08/10"
    ]
}