get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1431,
    "url": "https://patches.dpdk.org/api/patches/1431/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416539426-20684-1-git-send-email-takayuki@midokura.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": "<1416539426-20684-1-git-send-email-takayuki@midokura.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1416539426-20684-1-git-send-email-takayuki@midokura.com",
    "date": "2014-11-21T03:10:26",
    "name": "[dpdk-dev] kni: create KNI interface in current network namespace",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "64b714e4550c27825e67263746758968226fefd5",
    "submitter": {
        "id": 50,
        "url": "https://patches.dpdk.org/api/people/50/?format=api",
        "name": "Takayuki Usui",
        "email": "takayuki@midokura.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1416539426-20684-1-git-send-email-takayuki@midokura.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/1431/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/1431/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 C0D4D7F44;\n\tFri, 21 Nov 2014 04:00:03 +0100 (CET)",
            "from mail-pa0-f45.google.com (mail-pa0-f45.google.com\n\t[209.85.220.45]) by dpdk.org (Postfix) with ESMTP id A3C937F0C\n\tfor <dev@dpdk.org>; Fri, 21 Nov 2014 04:00:02 +0100 (CET)",
            "by mail-pa0-f45.google.com with SMTP id lj1so3896041pab.32\n\tfor <dev@dpdk.org>; Thu, 20 Nov 2014 19:10:34 -0800 (PST)",
            "from orifice.localdomain ([240b:10:25c0:200:178:126:4037:f352])\n\tby mx.google.com with ESMTPSA id\n\tkj9sm3290431pbc.37.2014.11.20.19.10.32 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 20 Nov 2014 19:10:33 -0800 (PST)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id;\n\tbh=98biOOZhHfUtecsnOXpoAZ6CpajnfAevEg61TfmrYe4=;\n\tb=X9hWFmiT5OdJS1mD/pKb7t1KgUjZ8rOZWAvRvnR2iOLaFjhT9n3d+Hq7fizJDltZqk\n\tyWzeFJFMKxjuO149kEDLriQOoo6SjN2LPDh1rsM7LQO2420zwQiTp7JyvEMhxAi1XShN\n\tIgSGqEO5vYr9iT5LbgasX7G8MYkyJj6Ja6lsr1ymfPyfJ8i8qaQXTdCcVOXP8FW8O9DQ\n\tgwgNV1kskHy9sPe/HVMD66iF/QcFuYyg1LaS6dydywcFtsjxE8EISZuE63f1iW4iSkur\n\tHKLGliBRXfy5dWtJqGqNTzsROcYgnJ8vZs/R9IXs9RGDtablMRrKeNU23W2gfB3HJt7c\n\tO2GQ==",
        "X-Gm-Message-State": "ALoCoQmaNz1mfrbOA29Pdy8qx69H2Y4q09StygjK7qXbQktNrmBKO+2jlmvBMM1uSWH8ejkThgNH",
        "X-Received": "by 10.68.111.161 with SMTP id ij1mr3045306pbb.10.1416539433483; \n\tThu, 20 Nov 2014 19:10:33 -0800 (PST)",
        "From": "Takayuki Usui <takayuki@midokura.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 21 Nov 2014 12:10:26 +0900",
        "Message-Id": "<1416539426-20684-1-git-send-email-takayuki@midokura.com>",
        "X-Mailer": "git-send-email 2.1.3",
        "Subject": "[dpdk-dev] [PATCH] kni: create KNI interface in current network\n\tnamespace",
        "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": "With this patch, KNI interface (e.g. vEth0) is created in the\nnetwork namespace where the DPDK application is running.\nOtherwise, all interfaces are created in the default namespace\nin the host.\n\nSigned-off-by: Takayuki Usui <takayuki@midokura.com>\n---\n lib/librte_eal/linuxapp/kni/kni_misc.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/lib/librte_eal/linuxapp/kni/kni_misc.c b/lib/librte_eal/linuxapp/kni/kni_misc.c\nindex ba77776..f4a9965 100644\n--- a/lib/librte_eal/linuxapp/kni/kni_misc.c\n+++ b/lib/librte_eal/linuxapp/kni/kni_misc.c\n@@ -354,6 +354,8 @@ kni_ioctl_create(unsigned int ioctl_num, unsigned long ioctl_param)\n \t\treturn -EBUSY;\n \t}\n \n+\tdev_net_set(net_dev, get_net_ns_by_pid(current->pid));\n+\n \tkni = netdev_priv(net_dev);\n \n \tkni->net_dev = net_dev;\n",
    "prefixes": [
        "dpdk-dev"
    ]
}