Show a patch.

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

{
    "id": 211,
    "url": "https://patches.dpdk.org/api/patches/211/",
    "web_url": "https://patches.dpdk.org/patch/211/",
    "project": {
        "id": 1,
        "url": "https://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": "<20140826020841.926122925@networkplumber.org>",
    "date": "2014-08-26T02:07:49",
    "name": "[dpdk-dev,RFC,03/10] virtio: allow starting with link down",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "hash": "a0d8516d9ac0ea93c77a67512c78335ca4388b18",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/patch/211/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/211/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/211/checks/",
    "tags": {},
    "headers": {
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "dev@dpdk.org",
        "Date": "Mon, 25 Aug 2014 19:07:49 -0700",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:message-id:user-agent:date:from:to:cc:subject\n\t:references:mime-version:content-type:content-disposition;\n\tbh=qOoawj5tGNj0t888b1FuODNY2Bt17sZRwPVdSRpYiQU=;\n\tb=Su/HhqcrkGSYxC6B/he+fxnt1+iCLSlu/sFq5KduO3kaH4nvGF15ICcFWkHSc25AP0\n\tJtUd5ZgbZ0wWab877T5HPk23oXulMpenicKqlomphDqiRgZa9Qm0KJEjuY4gl5fgrUg5\n\tMjdfK1p3/Sy9gmFIGUm8CPW5U63jUM+kYWf/2UuatFbnqhIYBDERsbmGkSsrfKmoCnRe\n\tFbxTc+aZw4+LI08FHIYXzUpSfFcB8XTwBanA8kX7OCsTGoFwH7v3czgYCZzq4RV9lWcV\n\twwzBXrOI15E1X1Pgwx+elkahmVSPIrh/VMGBRwaIm0KzoGg2izzvSylp8yXxWRfeGzUI\n\twDFQ==",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "References": "<20140826020746.062748014@networkplumber.org>",
        "Content-Disposition": "inline; filename=virtio-link-down-ok.patch",
        "X-Gm-Message-State": "ALoCoQkvbadnWNfZvMfBSkUwtuacuwI5JNsiHGWeRdepeUDKLdJ+0npg4UhC4WW4sy1SGAzT7uk7",
        "Content-Type": "text/plain; charset=UTF-8",
        "To": "Ouyang Changchun <changchun.ouyang@intel.com>",
        "User-Agent": "quilt/0.63-1",
        "MIME-Version": "1.0",
        "Received": [
            "from mail-pd0-f169.google.com (mail-pd0-f169.google.com\n\t[209.85.192.169]) by dpdk.org (Postfix) with ESMTP id BC18E3975\n\tfor <dev@dpdk.org>; Tue, 26 Aug 2014 04:04:46 +0200 (CEST)",
            "by mail-pd0-f169.google.com with SMTP id y10so21304215pdj.0\n\tfor <dev@dpdk.org>; Mon, 25 Aug 2014 19:08:43 -0700 (PDT)",
            "from localhost (static-50-53-65-80.bvtn.or.frontiernet.net.\n\t[50.53.65.80]) by mx.google.com with ESMTPSA id\n\tpd7sm1919998pdb.78.2014.08.25.19.08.42 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 25 Aug 2014 19:08:43 -0700 (PDT)"
        ],
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20140826020841.926122925@networkplumber.org>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Subject": "[dpdk-dev] [RFC 03/10] virtio: allow starting with link down",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-List-Received-Date": "Tue, 26 Aug 2014 02:04:47 -0000",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Return-Path": "<stephen@networkplumber.org>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "X-Received": "by 10.68.194.66 with SMTP id hu2mr6279486pbc.19.1409018923760;\n\tMon, 25 Aug 2014 19:08:43 -0700 (PDT)",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "Starting driver with link down should be ok, it is with every\nother driver. So just allow it.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n\n---\n lib/librte_pmd_virtio/virtio_ethdev.c |    6 ++----\n 1 file changed, 2 insertions(+), 4 deletions(-)",
    "diff": "--- a/lib/librte_pmd_virtio/virtio_ethdev.c\t2014-08-25 19:00:05.498525861 -0700\n+++ b/lib/librte_pmd_virtio/virtio_ethdev.c\t2014-08-25 19:00:05.494525839 -0700\n@@ -969,14 +969,12 @@ virtio_dev_start(struct rte_eth_dev *dev\n \t\tvtpci_read_dev_config(hw,\n \t\t\t\toffsetof(struct virtio_net_config, status),\n \t\t\t\t&status, sizeof(status));\n-\t\tif ((status & VIRTIO_NET_S_LINK_UP) == 0) {\n+\t\tif ((status & VIRTIO_NET_S_LINK_UP) == 0)\n \t\t\tPMD_INIT_LOG(ERR, \"Port: %d Link is DOWN\",\n \t\t\t\t     dev->data->port_id);\n-\t\t\treturn -EIO;\n-\t\t} else {\n+\t\telse\n \t\t\tPMD_INIT_LOG(DEBUG, \"Port: %d Link is UP\",\n \t\t\t\t     dev->data->port_id);\n-\t\t}\n \t}\n \tvtpci_reinit_complete(hw);\n \n",
    "prefixes": [
        "dpdk-dev",
        "RFC",
        "03/10"
    ]
}