get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41892,
    "url": "http://patches.dpdk.org/api/patches/41892/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180628225235.20684-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": "<20180628225235.20684-1-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180628225235.20684-1-dg@adax.com",
    "date": "2018-06-28T22:52:35",
    "name": "[05/10] kni: don't run rte_kni_handle_request after interface release",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "55af38b04df5f69504906a7ce0cf1b436966e95f",
    "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/20180628225235.20684-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/41892/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/41892/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 9DE331B059;\n\tFri, 29 Jun 2018 00:52:45 +0200 (CEST)",
            "from mail-oi0-f65.google.com (mail-oi0-f65.google.com\n\t[209.85.218.65]) by dpdk.org (Postfix) with ESMTP id 077871B006\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 00:52:43 +0200 (CEST)",
            "by mail-oi0-f65.google.com with SMTP id 8-v6so2131163oin.10\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 15:52:43 -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\tw5-v6sm218020ote.66.2018.06.28.15.52.41\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 15:52:42 -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=S1g3e3n/4fwp3C2kckm+nJ4Q8ogPllXouqe+NAUrqAU=;\n\tb=MY2zqu/r9lnJIInFwc4C19VLpY0jYv1MaM7ifsw0XyuBqL20eASIPO0SX/tWSJ0UmG\n\t7QxC3UgjzM2v83vTrk1jp66KiomupmeGKVwgp5dGQufsS/4gwwRqad5oIcNuv5N2V4wF\n\t+CGsOhc1INtZxmtyQVA5VjAoitf0LQalQM8XEHhgjri00h4Qs4RkRMCBhG1Lhsc90klh\n\tTCXwWV1pq3b8NAsY5NhdfuMcmsupjR5mbxcIgud73auRA1QCxq4FOzYpuYFmynZy+1o2\n\tlhYjRBLcTWrivbuOOcuh222DT7EyoC0YFkWV953BoGRqATLSxAPgQiXkGaS5hid199qy\n\ttUqA==",
        "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=S1g3e3n/4fwp3C2kckm+nJ4Q8ogPllXouqe+NAUrqAU=;\n\tb=MqhNlAFL6WFV1VM98GYUznYqjRDaJkQM39ch15lJeGrAff5ePkgRbDPPfu+mg8qYBp\n\tcASynDQiRbsZUokAkb2aAxvpqXg7T7p8qf5e3cvnozO63FahE/g7MDnBLT9FaJU8KIf0\n\tqxgeeDp8bWByvlykxsQfefQSWklAnHVS5MDkTBY1eIH2jK5ddEYyBrwDrmOP+BjcPqmL\n\t8ArB3ij/UMycqvlGAtpbwACSMnpkykE8Zn/PlNUo2+6q0VV+ODis/bc+wLbYb4J0T9jG\n\tGEAImOh9VMePeSfUKMhTLFJAKZbNtY2XajldYX3lZWRbMPzvfke12n1RhcZhbpZF/1tO\n\t38vw==",
        "X-Gm-Message-State": "APt69E023ujeAzaaLK07Y8d77zOf6zRwqaq119h7FtWZIvGOV27XuaNA\n\tMyk5Cqid1P4vk6gfIaM7IBs=",
        "X-Google-Smtp-Source": "AAOMgpdOasPNKhs80vFDS1sqe6RtQIhc36optvgH/sDHoSvHRNkg2HcEi5dMmDtFoFnNF7/j75DG9w==",
        "X-Received": "by 2002:aca:bf82:: with SMTP id\n\tp124-v6mr6394203oif.344.1530226363162; \n\tThu, 28 Jun 2018 15:52:43 -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:52:35 -0700",
        "Message-Id": "<20180628225235.20684-1-dg@adax.com>",
        "X-Mailer": "git-send-email 2.18.0.rc1.1.g6f333ff2f",
        "Subject": "[dpdk-dev] [PATCH 05/10] kni: don't run rte_kni_handle_request\n\tafter interface release",
        "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": "Check to ensure that the KNI interface is still in use before accessing\nthe KNI interface FIFOs to kernel space.\n\nThis will help to ensure that the user does not access the KNI\ninterface after rte_kni_release() has been called.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n lib/librte_kni/rte_kni.c | 6 +++++-\n lib/librte_kni/rte_kni.h | 4 ++++\n 2 files changed, 9 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c\nindex 1d84c0b70..6ef0859bf 100644\n--- a/lib/librte_kni/rte_kni.c\n+++ b/lib/librte_kni/rte_kni.c\n@@ -578,7 +578,11 @@ rte_kni_handle_request(struct rte_kni *kni)\n \tunsigned ret;\n \tstruct rte_kni_request *req;\n \n-\tif (kni == NULL)\n+\t/*\n+\t * Don't touch the req/resp fifos after\n+\t * we've been released, we can be freed at any instant!\n+\t */\n+\tif (kni == NULL || !kni->in_use)\n \t\treturn -1;\n \n \t/* Get request mbuf */\ndiff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h\nindex d1a95f898..94516c38f 100644\n--- a/lib/librte_kni/rte_kni.h\n+++ b/lib/librte_kni/rte_kni.h\n@@ -155,6 +155,10 @@ rte_kni_free(struct rte_kni *kni);\n  * Then analyzes it and calls the specific actions for the specific requests.\n  * Finally constructs the response mbuf and puts it back to the resp_q.\n  *\n+ * Thread Safety: This function should be called in a separate thread from the\n+ * thread which calls rte_kni_release() for this KNI.  This function must not\n+ * be called simultaneously with rte_kni_free().\n+ *\n  * @param kni\n  *  The pointer to the context of an existent KNI interface.\n  *\n",
    "prefixes": [
        "05/10"
    ]
}