get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41894,
    "url": "https://patches.dpdk.org/api/patches/41894/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20180628225350.21227-1-dg@adax.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": "<20180628225350.21227-1-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180628225350.21227-1-dg@adax.com",
    "date": "2018-06-28T22:53:50",
    "name": "[07/10] kni: update kni test for rte_kni_free",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c65d694014113140da7e88a7e256c270b89a4590",
    "submitter": {
        "id": 1040,
        "url": "https://patches.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20180628225350.21227-1-dg@adax.com/mbox/",
    "series": [
        {
            "id": 301,
            "url": "https://patches.dpdk.org/api/series/301/?format=api",
            "web_url": "https://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": "https://patches.dpdk.org/series/301/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/41894/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/41894/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 8B4B41B152;\n\tFri, 29 Jun 2018 00:53:58 +0200 (CEST)",
            "from mail-oi0-f52.google.com (mail-oi0-f52.google.com\n\t[209.85.218.52]) by dpdk.org (Postfix) with ESMTP id D681A1B063\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 00:53:56 +0200 (CEST)",
            "by mail-oi0-f52.google.com with SMTP id y207-v6so6728347oie.13\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 15:53:56 -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\tt7-v6sm3731921oth.12.2018.06.28.15.53.54\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 15:53:55 -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=tgYS8jjwdQq+l5ch4bOFMmfEqsoOSUE+XJwad7xwZKw=;\n\tb=XnWJXaox/ijXpjs3SUuxrymHn8NAasJ39RFSYZWjxeV6VIDt29URP+59pc2e+gsWxI\n\tVhx+MjmOjkntXH81ehkXiFHhceZ+EaUxV/mkCQfAk+6UynsBc3Cpd+2/9ODs7sjPE+40\n\tKCbbGT3/Yl0/ZaCgOLhFwr8NJKBmvhQX3Xi4RngNCpVvCnrXsrUgqct6/o8Io3hFKe57\n\tql+skdBYx8JnanDSPANlO5YaVTxs8rGGJniaVHtVkX2TFUj8IQ0RQPenrV04OAtyteF/\n\tafqAUH1ptzaw622mFLY8ar8XmI32FC2QE+z6vOuhlaNmXB9pyxEwL5g6w9IVNYGFcyGZ\n\tkBsg==",
        "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=tgYS8jjwdQq+l5ch4bOFMmfEqsoOSUE+XJwad7xwZKw=;\n\tb=mV6wcbvpHkUIUFXRskmkC1+qmeo9EgYfTN+2NLgpJ0ktJH9H9omICWHVVDhgOaux9g\n\tv53KEykJmYfAvkyoiymC9ebM3YIimA4qdRtKBEl9eNzWU0mXYd36iqhiTRKYBXN7Odbo\n\t96vMUyWhNzLXhHLbinKFq4+ROWSTQzkMyJ5MHwSgsypUTYNYGNIxB1yg/lc01AEBT4xA\n\tjTewezrwu0U/kBF4O6SKKZdW1kO4PuRuSgj9VIbQA3ONav+OHASgvG5Ruhw+4N7a2rvO\n\ta4ebYv0erQ7KK44KZ1fEWoJt72N2zcysjSdltllcpIJO4aRH5BQoLIPm0Ye5aqmJX88X\n\tWA6g==",
        "X-Gm-Message-State": "APt69E15M3iLOp3yX9U3Rimg5xZS4OeTv2VROiX1waCbhP/McOOcwgLy\n\tx23dz0g9Qr2OrIHxAlza4bis9Q==",
        "X-Google-Smtp-Source": "AAOMgpfvHB0zb+jr6EV8JpcNcv4plxmOVYfxUfXpFBals5b+Bvoas/d8IYVXdvfcdYVW8nVYCkVjRQ==",
        "X-Received": "by 2002:aca:2c02:: with SMTP id\n\ts2-v6mr5087056ois.82.1530226436097; \n\tThu, 28 Jun 2018 15:53:56 -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:53:50 -0700",
        "Message-Id": "<20180628225350.21227-1-dg@adax.com>",
        "X-Mailer": "git-send-email 2.18.0.rc1.1.g6f333ff2f",
        "Subject": "[dpdk-dev] [PATCH 07/10] kni: update kni test for rte_kni_free",
        "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 support for testing rte_kni_free() function.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n test/test/test_kni.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/test/test/test_kni.c b/test/test/test_kni.c\nindex 56773c8a2..ec051c07e 100644\n--- a/test/test/test_kni.c\n+++ b/test/test/test_kni.c\n@@ -427,6 +427,12 @@ test_kni_processing(uint16_t port_id, struct rte_mempool *mp)\n \t\tgoto fail_kni;\n \t}\n \n+\t/* test of freeing an unreleased kni device */\n+\tif (rte_kni_free(kni) == 0) {\n+\t\tprintf(\"should not be able to free an unreleased kni device\\n\");\n+\t\treturn -1;\n+\t}\n+\n \tif (rte_kni_release(kni) < 0) {\n \t\tprintf(\"fail to release kni\\n\");\n \t\treturn -1;\n@@ -439,6 +445,12 @@ test_kni_processing(uint16_t port_id, struct rte_mempool *mp)\n \t\treturn -1;\n \t}\n \n+\t/* test of freeing a released kni device */\n+\tif (rte_kni_free(kni) != 0) {\n+\t\tprintf(\"failed to free a released kni device\\n\");\n+\t\treturn -1;\n+\t}\n+\n \t/* test of reusing memzone */\n \tkni = rte_kni_alloc(mp, &conf, &ops);\n \tif (!kni) {\n@@ -598,6 +610,14 @@ test_kni(void)\n \t\tgoto fail;\n \t}\n \n+\t/* test of freeing NULL kni context */\n+\tret = rte_kni_free(NULL);\n+\tif (ret == 0) {\n+\t\tret = -1;\n+\t\tprintf(\"unexpectedly freed kni successfully\\n\");\n+\t\tgoto fail;\n+\t}\n+\n \t/* test of handling request on NULL device pointer */\n \tret = rte_kni_handle_request(NULL);\n \tif (ret == 0) {\n",
    "prefixes": [
        "07/10"
    ]
}