get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 41909,
    "url": "http://patches.dpdk.org/api/patches/41909/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180629015508.26599-10-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": "<20180629015508.26599-10-dg@adax.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180629015508.26599-10-dg@adax.com",
    "date": "2018-06-29T01:55:07",
    "name": "[v2,09/10] kni: add rte_kni_free to KNI vdev driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "3fdd42f68ea761092621f82d8afbef3b9e04ec14",
    "submitter": {
        "id": 1040,
        "url": "http://patches.dpdk.org/api/people/1040/?format=api",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180629015508.26599-10-dg@adax.com/mbox/",
    "series": [
        {
            "id": 305,
            "url": "http://patches.dpdk.org/api/series/305/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=305",
            "date": "2018-06-29T01:54:59",
            "name": "[v2,01/10] kni: remove unused variables from struct kni_dev",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/305/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/41909/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/41909/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 5FBDD1B584;\n\tFri, 29 Jun 2018 03:56:14 +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 3B6361B557\n\tfor <dev@dpdk.org>; Fri, 29 Jun 2018 03:56:01 +0200 (CEST)",
            "by mail-oi0-f65.google.com with SMTP id i12-v6so2633461oik.2\n\tfor <dev@dpdk.org>; Thu, 28 Jun 2018 18:56:01 -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\tn3-v6sm3941288otk.38.2018.06.28.18.55.59\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 28 Jun 2018 18:55:59 -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:in-reply-to:references;\n\tbh=hXv1XyDQ9FYYvhLY7WbYWIZ0bgQgqJ+Ndpj8blSVBaE=;\n\tb=WJXWFf6nHJzFnoYv8uLbO72H38Zg1OmeE+p+iPYuCkvOVOkzvWsDYBTREq2xjjmiG+\n\tOcOi9WyQrp0yUKtVQ9HhyaTREgeM6FQPSk3f+uhXKx+hAf28Mg8dZaDqeZzybWwLfbSp\n\tZxIP4OqbUxvp2eiQRiwuZxCZeWeLVIG3fX7A4uu9KmEIX4F5vuI9nOhzHi/oVMEDzve/\n\t/4EWP+I/uwJ8JRqmWJOzeRvwwABkXrrgi13rMk3GdmWBTTP3O5xPB8gQgXWV6y1gHAk2\n\tZtgZIYuSDAImCe6+artG26gr0dteR9vknTTZ3TewNQLcfGEx8/7/gAvAZlwVtNoRkuw/\n\tK5mA==",
        "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\t:in-reply-to:references;\n\tbh=hXv1XyDQ9FYYvhLY7WbYWIZ0bgQgqJ+Ndpj8blSVBaE=;\n\tb=RAbUFz1S5j+7c+49ENghJh5u/78Wjq5VPCI66/fw1YoW8F8tNVbteG9YEO8Hc37MN9\n\taKaVonBJpOTJMCwUvehT6ZAhqdq+On6zxIArV2M9PvfJs13cLI1P+HV7mdFNrpju1erV\n\tAm+xcu7oE1urntOSdoCSz1jLTSV699GhH/uXhKv2ErOou7oTgR9XNUE4RNTJWMLu2+kQ\n\tLYWPu8vZkR9lLTVVteBdL6q5VzMCN0zcCHWH589Oy6AeXOKMsxBtItVJgO325I5KfbGL\n\t4AhgAj/K99elF8C+hwochLE3oiBSKAwt4KbuBy3nlhd52kISnlOjDFeEGb0IdbKCpcW4\n\t6k+g==",
        "X-Gm-Message-State": "APt69E0e5dUFapEpgtFmGOIGveRNTYFx2pL/4jyq7U7CaKL7FgdLxV0t\n\twWKdM+RffBIZNykiaoLKgaQ=",
        "X-Google-Smtp-Source": "AAOMgpfKjapXuxPhPqeCKVYuEO+r/sd8k25KyvgfXWupGM/1Iw3vtCiIoF+nLcAWUBCH8586RwNcFQ==",
        "X-Received": "by 2002:aca:6144:: with SMTP id\n\tv65-v6mr7764318oib.147.1530237360417; \n\tThu, 28 Jun 2018 18:56:00 -0700 (PDT)",
        "From": "Dan Gora <dg@adax.com>",
        "To": "ferruh.yigit@intel.com",
        "Cc": "dev@dpdk.org,\n\tDan Gora <dg@adax.com>",
        "Date": "Thu, 28 Jun 2018 18:55:07 -0700",
        "Message-Id": "<20180629015508.26599-10-dg@adax.com>",
        "X-Mailer": "git-send-email 2.18.0.rc1.1.g6f333ff2f",
        "In-Reply-To": "<20180629015508.26599-1-dg@adax.com>",
        "References": "<20180628224513.18391-1-dg@adax.com>\n\t<20180629015508.26599-1-dg@adax.com>",
        "Subject": "[dpdk-dev] [PATCH v2 09/10] kni: add rte_kni_free to KNI vdev driver",
        "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 virual KNI device.\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n drivers/net/kni/rte_eth_kni.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/kni/rte_eth_kni.c b/drivers/net/kni/rte_eth_kni.c\nindex ab63ea427..24c6991e6 100644\n--- a/drivers/net/kni/rte_eth_kni.c\n+++ b/drivers/net/kni/rte_eth_kni.c\n@@ -463,11 +463,13 @@ eth_kni_remove(struct rte_vdev_device *vdev)\n \tif (eth_dev == NULL)\n \t\treturn -1;\n \n-\teth_kni_dev_stop(eth_dev);\n-\n \tinternals = eth_dev->data->dev_private;\n \trte_kni_release(internals->kni);\n \n+\teth_kni_dev_stop(eth_dev);\n+\n+\trte_kni_free(internals->kni);\n+\n \trte_free(internals);\n \n \trte_eth_dev_release_port(eth_dev);\n",
    "prefixes": [
        "v2",
        "09/10"
    ]
}