get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1214,
    "url": "http://patches.dpdk.org/api/patches/1214/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1415381511-43364-2-git-send-email-jyu@vmware.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": "<1415381511-43364-2-git-send-email-jyu@vmware.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1415381511-43364-2-git-send-email-jyu@vmware.com",
    "date": "2014-11-07T17:31:50",
    "name": "[dpdk-dev,1/2] rte_ethdev: update link status (speed, duplex, link_up) after rte_eth_dev_start",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7121baf5b2f2e7aafce2b1523881046e68479d0c",
    "submitter": {
        "id": 111,
        "url": "http://patches.dpdk.org/api/people/111/?format=api",
        "name": "Jia Yu",
        "email": "jyu@vmware.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1415381511-43364-2-git-send-email-jyu@vmware.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/1214/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/1214/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 755837E9E;\n\tSat,  8 Nov 2014 02:30:55 +0100 (CET)",
            "from smtp-outbound-1.vmware.com (smtp-outbound-1.vmware.com\n\t[208.91.2.12]) by dpdk.org (Postfix) with ESMTP id E65607F48\n\tfor <dev@dpdk.org>; Sat,  8 Nov 2014 02:30:50 +0100 (CET)",
            "from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com\n\t[10.113.161.72])\n\tby smtp-outbound-1.vmware.com (Postfix) with ESMTP id 5DEB5281E8\n\tfor <dev@dpdk.org>; Fri,  7 Nov 2014 17:40:23 -0800 (PST)",
            "from prmh-edge-ivybridge-13.eng.vmware.com\n\t(prmh-edge-ivybridge-13.eng.vmware.com [10.24.235.96])\n\tby sc9-mailhost2.vmware.com (Postfix) with ESMTP id 58F9AB15E8;\n\tFri,  7 Nov 2014 17:40:23 -0800 (PST)"
        ],
        "From": "Jia Yu <jyu@vmware.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri,  7 Nov 2014 09:31:50 -0800",
        "Message-Id": "<1415381511-43364-2-git-send-email-jyu@vmware.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1415381511-43364-1-git-send-email-jyu@vmware.com>",
        "References": "<1415381511-43364-1-git-send-email-jyu@vmware.com>",
        "Subject": "[dpdk-dev] [PATCH 1/2] rte_ethdev: update link status (speed, duplex,\n\tlink_up) after rte_eth_dev_start",
        "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": "Since LSR interrupt is disabled by pmd drivers, link status in rte_eth_device is always down.\nBond slave_configure() enables LSR interrupt on devices to get notification if link status\nchanges. However, the LSC interrupt at device start time is still lost.\n\nIn this fix, call link_update to read link status from hardware\nregister at device start time.\n\nIssue:\nChange-Id: Ib57a1c9114f922485c7b0f4338bfe7b3d3f87d65\nSigned-off-by: Jia Yu <jyu@vmware.com>\n---\n lib/librte_ether/rte_ethdev.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c\nindex ff1c769..6c01b02 100644\n--- a/lib/librte_ether/rte_ethdev.c\n+++ b/lib/librte_ether/rte_ethdev.c\n@@ -869,6 +869,10 @@ rte_eth_dev_start(uint8_t port_id)\n \n \trte_eth_dev_config_restore(port_id);\n \n+\tif (dev->data->dev_conf.intr_conf.lsc != 0) {\n+\t\tFUNC_PTR_OR_ERR_RET(*dev->dev_ops->link_update, -ENOTSUP);\n+\t\t(*dev->dev_ops->link_update)(dev, 0);\n+\t}\n \treturn 0;\n }\n \n",
    "prefixes": [
        "dpdk-dev",
        "1/2"
    ]
}