get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 477188,
    "url": "http://patchwork.ozlabs.org/api/patches/477188/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1432742774-69564-1-git-send-email-catherine.sullivan@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": "<1432742774-69564-1-git-send-email-catherine.sullivan@intel.com>",
    "list_archive_url": null,
    "date": "2015-05-27T16:06:14",
    "name": "[net] i40e: Make sure to be in VEB mode if SRIOV is enabled at probe",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d59d5d128e52557856c50b4216aefdb8dcc2f6ea",
    "submitter": {
        "id": 13931,
        "url": "http://patchwork.ozlabs.org/api/people/13931/?format=api",
        "name": "Catherine Sullivan",
        "email": "catherine.sullivan@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/1432742774-69564-1-git-send-email-catherine.sullivan@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/477188/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/477188/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 hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id CB7FC14010F\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 28 May 2015 02:05:01 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 071CD95E8C;\n\tWed, 27 May 2015 16:05:01 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 5YO+0g5LPYfc; Wed, 27 May 2015 16:04:57 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 2829B95E85;\n\tWed, 27 May 2015 16:04:57 +0000 (UTC)",
            "from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 42FC31BF863\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 27 May 2015 16:04:55 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 3C2FFA326D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 27 May 2015 16:04:55 +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 tLtD5KJHf8yC for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 27 May 2015 16:04:54 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id C3884A3244\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 27 May 2015 16:04:54 +0000 (UTC)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga101.fm.intel.com with ESMTP; 27 May 2015 09:04:11 -0700",
            "from catheri1-tigger.jf.intel.com ([134.134.176.92])\n\tby fmsmga002.fm.intel.com with ESMTP; 27 May 2015 09:04:08 -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.13,506,1427785200\"; d=\"scan'208\";a=\"732557228\"",
        "From": "Catherine Sullivan <catherine.sullivan@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Wed, 27 May 2015 12:06:14 -0400",
        "Message-Id": "<1432742774-69564-1-git-send-email-catherine.sullivan@intel.com>",
        "X-Mailer": "git-send-email 1.9.3",
        "Cc": "Anjali Singhai Jain <anjali.singhai@intel.com>",
        "Subject": "[Intel-wired-lan] [net PATCH] i40e: Make sure to be in VEB mode if\n\tSRIOV is enabled at probe",
        "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>",
        "MIME-Version": "1.0",
        "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": "From: Anjali Singhai Jain <anjali.singhai@intel.com>\n\nIf SRIOV is enabled we need to be in VEB mode not VEPA mode at probe.\nThis fixes an NPAR bug when SRIOV is enabled in the BIOS.\n\nSigned-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>\nChange-ID: Ibf006abafd9a0ca3698ec24848cd771cf345cbbc\n---\n drivers/net/ethernet/intel/i40e/i40e_main.c | 20 +++++++++++++++++---\n 1 file changed, 17 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 853eb2f..eead111 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -8756,9 +8756,14 @@ struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,\n \t\t\t\t\t __func__);\n \t\t\t\treturn NULL;\n \t\t\t}\n-\t\t\t/* We come up by default in VEPA mode */\n-\t\t\tveb->bridge_mode = BRIDGE_MODE_VEPA;\n-\t\t\tpf->flags &= ~I40E_FLAG_VEB_MODE_ENABLED;\n+\t\t\t/* We come up by default in VEPA mode if sriov is not\n+\t\t\t * already enabled, in which case we can't force VEPA\n+\t\t\t * mode.\n+\t\t\t */\n+\t\t\tif (!(pf->flags & I40E_FLAG_VEB_MODE_ENABLED)) {\n+\t\t\t\tveb->bridge_mode = BRIDGE_MODE_VEPA;\n+\t\t\t\tpf->flags &= ~I40E_FLAG_VEB_MODE_ENABLED;\n+\t\t\t}\n \t\t\ti40e_config_bridge_mode(veb);\n \t\t}\n \t\tfor (i = 0; i < I40E_MAX_VEB && !veb; i++) {\n@@ -9869,6 +9874,15 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\n \t\tgoto err_switch_setup;\n \t}\n \n+#ifdef CONFIG_PCI_IOV\n+\t/* prep for VF support */\n+\tif ((pf->flags & I40E_FLAG_SRIOV_ENABLED) &&\n+\t    (pf->flags & I40E_FLAG_MSIX_ENABLED) &&\n+\t    !test_bit(__I40E_BAD_EEPROM, &pf->state)) {\n+\t\tif (pci_num_vf(pdev))\n+\t\t\tpf->flags |= I40E_FLAG_VEB_MODE_ENABLED;\n+\t}\n+#endif\n \terr = i40e_setup_pf_switch(pf, false);\n \tif (err) {\n \t\tdev_info(&pdev->dev, \"setup_pf_switch failed: %d\\n\", err);\n",
    "prefixes": [
        "net"
    ]
}