get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 500851,
    "url": "http://patchwork.ozlabs.org/api/patches/500851/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20150727213422.28219.59391.stgit@htfujina-fc.jf.intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20150727213422.28219.59391.stgit@htfujina-fc.jf.intel.com>",
    "list_archive_url": null,
    "date": "2015-07-27T21:34:22",
    "name": "igb: make sure SR-IOV init uses the right number of queues",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "0897730eeb4f5a3bf982008f9a665eed10edf4ca",
    "submitter": {
        "id": 29211,
        "url": "http://patchwork.ozlabs.org/api/people/29211/?format=api",
        "name": "Fujinaka, Todd",
        "email": "todd.fujinaka@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20150727213422.28219.59391.stgit@htfujina-fc.jf.intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/500851/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/500851/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ozlabs.org (Postfix) with ESMTP id AFFD61402BF\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 28 Jul 2015 07:42:09 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id DA788A33FE;\n\tMon, 27 Jul 2015 21:42:08 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id jP2X_lu8v59k; Mon, 27 Jul 2015 21:42:07 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id DDE45A33FD;\n\tMon, 27 Jul 2015 21:42:07 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 3D82C1C225D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jul 2015 21:42:07 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 3733E91903\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jul 2015 21:42:07 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id jJ-coH7ltUo8 for <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jul 2015 21:42:06 +0000 (UTC)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 8A99E91908\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tMon, 27 Jul 2015 21:42:06 +0000 (UTC)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga103.fm.intel.com with ESMTP; 27 Jul 2015 14:37:58 -0700",
            "from htfujina-fc.jf.intel.com ([134.134.145.128])\n\tby orsmga002.jf.intel.com with ESMTP; 27 Jul 2015 14:37:57 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.15,557,1432623600\"; d=\"scan'208\";a=\"772357941\"",
        "From": "Todd Fujinaka <todd.fujinaka@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Mon, 27 Jul 2015 14:34:22 -0700",
        "Message-ID": "<20150727213422.28219.59391.stgit@htfujina-fc.jf.intel.com>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Subject": "[Intel-wired-lan] [PATCH] igb: make sure SR-IOV init uses the right\n\tnumber of queues",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "Recent changes to igb_probe_vfs() could lead to the PF holding onto all\nof the queues. Reorder igb_probe_vfs() to be before\ngb_init_queue_configuration() and add some more error checking.\n\nSigned-off-by: Todd Fujinaka <todd.fujinaka@intel.com>\n---\n drivers/net/ethernet/intel/igb/igb_main.c |    7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c\nindex 517746f..18c16ca 100644\n--- a/drivers/net/ethernet/intel/igb/igb_main.c\n+++ b/drivers/net/ethernet/intel/igb/igb_main.c\n@@ -179,6 +179,8 @@ static void igb_check_vf_rate_limit(struct igb_adapter *);\n #ifdef CONFIG_PCI_IOV\n static int igb_vf_configure(struct igb_adapter *adapter, int vf);\n static int igb_pci_enable_sriov(struct pci_dev *dev, int num_vfs);\n+static int igb_disable_sriov(struct pci_dev *dev);\n+static int igb_pci_disable_sriov(struct pci_dev *dev);\n #endif\n \n #ifdef CONFIG_PM\n@@ -2646,6 +2648,7 @@ err_eeprom:\n \t\tiounmap(hw->flash_address);\n err_sw_init:\n \tigb_clear_interrupt_scheme(adapter);\n+\tigb_disable_sriov(pdev);\n \tpci_iounmap(pdev, hw->hw_addr);\n err_ioremap:\n \tfree_netdev(netdev);\n@@ -2968,6 +2971,8 @@ static int igb_sw_init(struct igb_adapter *adapter)\n \t}\n #endif /* CONFIG_PCI_IOV */\n \n+\tigb_probe_vfs(adapter);\n+\n \tigb_init_queue_configuration(adapter);\n \n \t/* Setup and initialize a copy of the hw vlan table array */\n@@ -2980,8 +2985,6 @@ static int igb_sw_init(struct igb_adapter *adapter)\n \t\treturn -ENOMEM;\n \t}\n \n-\tigb_probe_vfs(adapter);\n-\n \t/* Explicitly disable IRQ since the NIC can be in any state. */\n \tigb_irq_disable(adapter);\n \n",
    "prefixes": []
}