Show a patch.

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

{
    "id": 44604,
    "url": "http://patches.dpdk.org/api/patches/44604/",
    "web_url": "http://patches.dpdk.org/patch/44604/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20180911232906.18352-3-dg@adax.com>",
    "date": "2018-09-11T23:29:06",
    "name": "[2/2] kni: set default carrier state to 'off'",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "263c5231d1d68ae0893230c1c3efac629746c02e",
    "submitter": {
        "id": 1040,
        "url": "http://patches.dpdk.org/api/people/1040/",
        "name": "Dan Gora",
        "email": "dg@adax.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/patch/44604/mbox/",
    "series": [
        {
            "id": 1288,
            "url": "http://patches.dpdk.org/api/series/1288/",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1288",
            "date": "2018-09-11T23:29:04",
            "name": "kni: add API to set link status on kernel interface",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1288/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/44604/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/44604/checks/",
    "tags": {},
    "headers": {
        "X-Mailman-Version": "2.1.15",
        "Date": "Tue, 11 Sep 2018 20:29:06 -0300",
        "In-Reply-To": "<20180911232906.18352-1-dg@adax.com>",
        "Errors-To": "dev-bounces@dpdk.org",
        "X-Mailer": "git-send-email 2.19.0",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 75A464C94;\n\tWed, 12 Sep 2018 01:29:35 +0200 (CEST)",
            "from mail-qt0-f196.google.com (mail-qt0-f196.google.com\n\t[209.85.216.196]) by dpdk.org (Postfix) with ESMTP id 0D94E4C74\n\tfor <dev@dpdk.org>; Wed, 12 Sep 2018 01:29:34 +0200 (CEST)",
            "by mail-qt0-f196.google.com with SMTP id g53-v6so26417qtg.10\n\tfor <dev@dpdk.org>; Tue, 11 Sep 2018 16:29:33 -0700 (PDT)",
            "from snappy.local.lan (189-46-164-241.dsl.telesp.net.br.\n\t[189.46.164.241]) by smtp.gmail.com with ESMTPSA id\n\tp30-v6sm12767814qta.4.2018.09.11.16.29.25\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 11 Sep 2018 16:29:28 -0700 (PDT)"
        ],
        "References": "<20180911232906.18352-1-dg@adax.com>",
        "X-Google-Smtp-Source": "ANB0Vda7hH9Io1AYjU/lkBnhKDoCYz8OxkrJhgV8o60uM8EguNyit13hJdGx2EQp0X4VaUQefrnHdg==",
        "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\t:mime-version:content-transfer-encoding;\n\tbh=xX5BCN1EA1YvdGifpFtBi3+Bd3fV7UXIa4dFxGhfigs=;\n\tb=lDrW5xwn5txmyUMWCyqYldoDx8rKm+fnxw+vUUIMejQnodaWavIkRDCytwtOfioLOJ\n\t/zcd8pl2f8GQiPfwz91eY/ntH1+DKfrGe8QuGPlElCVSibfoCtoWPzHhOtd7mkENwFnx\n\t0U2JnJH4W4/5LpKYrFT/cEtfGI/G8hjgVGuo3Ywxic+G4g8PkB9J1PdJ3B15hKa5C6uj\n\tpctz6zTYufWw4g9bsuWtPwQGpIzd7OosvgWyeKKd3iqy24QYH7qGE40Enhn2vyDHCYzo\n\t5rbKIOwhGz3RW7NkfZAb/aPsxK0zL5FRCeu3C/GK9VEoultqUmVPIMQoNo48SK042xqW\n\tIIFQ==",
        "MIME-Version": "1.0",
        "X-Received": "by 2002:aed:3ceb:: with SMTP id\n\te40-v6mr22251160qtf.157.1536708568925; \n\tTue, 11 Sep 2018 16:29:28 -0700 (PDT)",
        "Message-Id": "<20180911232906.18352-3-dg@adax.com>",
        "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:mime-version:content-transfer-encoding;\n\tbh=xX5BCN1EA1YvdGifpFtBi3+Bd3fV7UXIa4dFxGhfigs=;\n\tb=gzWle38a5ZO2KXQuHWujfdr1Mhh7hM6yZfW1YTBY1iXHNPzVC04jc3ytSvh/cqZq1C\n\tXQ44ioNsE6zgrnJnGvKFWvxDcwGFEbKNp/URbnTVwDqLkZ2BUF6+lKFBw0YOmMdcTmk9\n\tM3dgY5N4j/u4Fqa5l4jhO7wmMxYx3OZFPIOoUWPCu0HFR4t5r9Y+lsvcMVcDksUgyfXV\n\tQdEDs/EPlWe+i4KbscljSIiX/jEzfvndvOtIov9nSjeS7NAR+3abVbUvi/fp6IOx2ILy\n\tXHTCbcUYLz4n/HS4xcXAI+toh692BIaSttLlRO3lDalcDYBwH/27LmFXkZroEOezBKaA\n\t3d4Q==",
        "Delivered-To": "patchwork@dpdk.org",
        "Content-Transfer-Encoding": "8bit",
        "From": "Dan Gora <dg@adax.com>",
        "X-Original-To": "patchwork@dpdk.org",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "Sender": "\"dev\" <dev-bounces@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>",
        "To": "dev@dpdk.org",
        "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>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Gm-Message-State": "APzg51D9mk19Q04mFvpvtZoRUbeLsB05FXXuZzXKdhWhapggfkNTN+kt\n\tGk/K2I8Igp+un8BWCpZMM1fEdTZc",
        "Cc": "Igor Ryzhov <iryzhov@nfware.com>,\n\tStephen Hemminger <stephen@networkplumber.org>,\n\tFerruh Yigit <ferruh.yigit@intel.com>, Dan Gora <dg@adax.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Subject": "[dpdk-dev] [PATCH 2/2] kni: set default carrier state to 'off'"
    },
    "content": "Set the carrier state to 'off' when the interface is instantiated\nor when it is marked 'up' or 'down'.  This is necessary to set the\ninterface to a known operational state until the carrier state is\nchanged with rte_kni_update_link().\n\nSigned-off-by: Dan Gora <dg@adax.com>\n---\n kernel/linux/kni/kni_misc.c | 2 ++\n kernel/linux/kni/kni_net.c  | 2 ++\n 2 files changed, 4 insertions(+)",
    "diff": "diff --git a/kernel/linux/kni/kni_misc.c b/kernel/linux/kni/kni_misc.c\nindex fa69f8e63..45649499d 100644\n--- a/kernel/linux/kni/kni_misc.c\n+++ b/kernel/linux/kni/kni_misc.c\n@@ -466,6 +466,8 @@ kni_ioctl_create(struct net *net, uint32_t ioctl_num,\n \t\treturn -ENODEV;\n \t}\n \n+\tnetif_carrier_off(net_dev);\n+\n \tret = kni_run_thread(knet, kni, dev_info.force_bind);\n \tif (ret != 0)\n \t\treturn ret;\ndiff --git a/kernel/linux/kni/kni_net.c b/kernel/linux/kni/kni_net.c\nindex 7fcfa106c..1f8ba0700 100644\n--- a/kernel/linux/kni/kni_net.c\n+++ b/kernel/linux/kni/kni_net.c\n@@ -133,6 +133,7 @@ kni_net_open(struct net_device *dev)\n \tstruct kni_dev *kni = netdev_priv(dev);\n \n \tnetif_start_queue(dev);\n+\tnetif_carrier_off(dev);\n \n \tmemset(&req, 0, sizeof(req));\n \treq.req_id = RTE_KNI_REQ_CFG_NETWORK_IF;\n@@ -152,6 +153,7 @@ kni_net_release(struct net_device *dev)\n \tstruct kni_dev *kni = netdev_priv(dev);\n \n \tnetif_stop_queue(dev); /* can't transmit any more */\n+\tnetif_carrier_off(dev);\n \n \tmemset(&req, 0, sizeof(req));\n \treq.req_id = RTE_KNI_REQ_CFG_NETWORK_IF;\n",
    "prefixes": [
        "2/2"
    ]
}