get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 459054,
    "url": "http://patchwork.ozlabs.org/api/patches/459054/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1428450342-48517-5-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": "<1428450342-48517-5-git-send-email-catherine.sullivan@intel.com>",
    "list_archive_url": null,
    "date": "2015-04-07T23:45:34",
    "name": "[net-next,S3,05/13] i40e: move VF notification routines up",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f82b4250cab8eecc3755090b7bb8da1f45fbd0c2",
    "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/1428450342-48517-5-git-send-email-catherine.sullivan@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/459054/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/459054/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 silver.osuosl.org (silver.osuosl.org [140.211.166.136])\n\tby ozlabs.org (Postfix) with ESMTP id 45AD41401AB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed,  8 Apr 2015 09:42:32 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 962AB3342A;\n\tTue,  7 Apr 2015 23:42:31 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id JLQcNlcTgGkf; Tue,  7 Apr 2015 23:42:29 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id 04E8533423;\n\tTue,  7 Apr 2015 23:42:29 +0000 (UTC)",
            "from whitealder.osuosl.org (whitealder.osuosl.org\n\t[140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 899BC1C265F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  7 Apr 2015 23:42:26 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 858F090D90\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  7 Apr 2015 23:42:26 +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 CsrGujvRretS for <intel-wired-lan@lists.osuosl.org>;\n\tTue,  7 Apr 2015 23:42:25 +0000 (UTC)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id CA6C28C49B\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue,  7 Apr 2015 23:42:25 +0000 (UTC)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby orsmga103.jf.intel.com with ESMTP; 07 Apr 2015 16:42:25 -0700",
            "from catheri1-tigger.jf.intel.com ([134.134.176.92])\n\tby FMSMGA003.fm.intel.com with ESMTP; 07 Apr 2015 16:42:25 -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.11,540,1422950400\"; d=\"scan'208\";a=\"477975391\"",
        "From": "Catherine Sullivan <catherine.sullivan@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Tue,  7 Apr 2015 19:45:34 -0400",
        "Message-Id": "<1428450342-48517-5-git-send-email-catherine.sullivan@intel.com>",
        "X-Mailer": "git-send-email 1.9.3",
        "In-Reply-To": "<1428450342-48517-1-git-send-email-catherine.sullivan@intel.com>",
        "References": "<1428450342-48517-1-git-send-email-catherine.sullivan@intel.com>",
        "Subject": "[Intel-wired-lan] [net-next S3 05/13] i40e: move VF notification\n\troutines up",
        "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: Mitch Williams <mitch.a.williams@intel.com>\n\nMove the VF notification functions to the top of the file. This\neliminates an unnecessary declaration.\n\nSigned-off-by: Mitch Williams <mitch.a.williams@intel.com>\nChange-ID: I036171f14180ee9f0ce4e0a21334d6a217d06c94\n---\n drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 246 ++++++++++-----------\n 1 file changed, 123 insertions(+), 123 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\nindex 8df2b52..98e0921 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c\n@@ -25,8 +25,130 @@\n  ******************************************************************************/\n \n #include \"i40e.h\"\n-static void i40e_vc_notify_vf_link_state(struct i40e_vf *vf);\n \n+/*********************notification routines***********************/\n+\n+/**\n+ * i40e_vc_vf_broadcast\n+ * @pf: pointer to the PF structure\n+ * @opcode: operation code\n+ * @retval: return value\n+ * @msg: pointer to the msg buffer\n+ * @msglen: msg length\n+ *\n+ * send a message to all VFs on a given PF\n+ **/\n+static void i40e_vc_vf_broadcast(struct i40e_pf *pf,\n+\t\t\t\t enum i40e_virtchnl_ops v_opcode,\n+\t\t\t\t i40e_status v_retval, u8 *msg,\n+\t\t\t\t u16 msglen)\n+{\n+\tstruct i40e_hw *hw = &pf->hw;\n+\tstruct i40e_vf *vf = pf->vf;\n+\tint i;\n+\n+\tfor (i = 0; i < pf->num_alloc_vfs; i++, vf++) {\n+\t\tint abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id;\n+\t\t/* Not all vfs are enabled so skip the ones that are not */\n+\t\tif (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states) &&\n+\t\t    !test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states))\n+\t\t\tcontinue;\n+\n+\t\t/* Ignore return value on purpose - a given VF may fail, but\n+\t\t * we need to keep going and send to all of them\n+\t\t */\n+\t\ti40e_aq_send_msg_to_vf(hw, abs_vf_id, v_opcode, v_retval,\n+\t\t\t\t       msg, msglen, NULL);\n+\t}\n+}\n+\n+/**\n+ * i40e_vc_notify_link_state\n+ * @vf: pointer to the VF structure\n+ *\n+ * send a link status message to a single VF\n+ **/\n+static void i40e_vc_notify_vf_link_state(struct i40e_vf *vf)\n+{\n+\tstruct i40e_virtchnl_pf_event pfe;\n+\tstruct i40e_pf *pf = vf->pf;\n+\tstruct i40e_hw *hw = &pf->hw;\n+\tstruct i40e_link_status *ls = &pf->hw.phy.link_info;\n+\tint abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id;\n+\n+\tpfe.event = I40E_VIRTCHNL_EVENT_LINK_CHANGE;\n+\tpfe.severity = I40E_PF_EVENT_SEVERITY_INFO;\n+\tif (vf->link_forced) {\n+\t\tpfe.event_data.link_event.link_status = vf->link_up;\n+\t\tpfe.event_data.link_event.link_speed =\n+\t\t\t(vf->link_up ? I40E_LINK_SPEED_40GB : 0);\n+\t} else {\n+\t\tpfe.event_data.link_event.link_status =\n+\t\t\tls->link_info & I40E_AQ_LINK_UP;\n+\t\tpfe.event_data.link_event.link_speed = ls->link_speed;\n+\t}\n+\ti40e_aq_send_msg_to_vf(hw, abs_vf_id, I40E_VIRTCHNL_OP_EVENT,\n+\t\t\t       0, (u8 *)&pfe, sizeof(pfe), NULL);\n+}\n+\n+/**\n+ * i40e_vc_notify_link_state\n+ * @pf: pointer to the PF structure\n+ *\n+ * send a link status message to all VFs on a given PF\n+ **/\n+void i40e_vc_notify_link_state(struct i40e_pf *pf)\n+{\n+\tint i;\n+\n+\tfor (i = 0; i < pf->num_alloc_vfs; i++)\n+\t\ti40e_vc_notify_vf_link_state(&pf->vf[i]);\n+}\n+\n+/**\n+ * i40e_vc_notify_reset\n+ * @pf: pointer to the PF structure\n+ *\n+ * indicate a pending reset to all VFs on a given PF\n+ **/\n+void i40e_vc_notify_reset(struct i40e_pf *pf)\n+{\n+\tstruct i40e_virtchnl_pf_event pfe;\n+\n+\tpfe.event = I40E_VIRTCHNL_EVENT_RESET_IMPENDING;\n+\tpfe.severity = I40E_PF_EVENT_SEVERITY_CERTAIN_DOOM;\n+\ti40e_vc_vf_broadcast(pf, I40E_VIRTCHNL_OP_EVENT, 0,\n+\t\t\t     (u8 *)&pfe, sizeof(struct i40e_virtchnl_pf_event));\n+}\n+\n+/**\n+ * i40e_vc_notify_vf_reset\n+ * @vf: pointer to the VF structure\n+ *\n+ * indicate a pending reset to the given VF\n+ **/\n+void i40e_vc_notify_vf_reset(struct i40e_vf *vf)\n+{\n+\tstruct i40e_virtchnl_pf_event pfe;\n+\tint abs_vf_id;\n+\n+\t/* validate the request */\n+\tif (!vf || vf->vf_id >= vf->pf->num_alloc_vfs)\n+\t\treturn;\n+\n+\t/* verify if the VF is in either init or active before proceeding */\n+\tif (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states) &&\n+\t    !test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states))\n+\t\treturn;\n+\n+\tabs_vf_id = vf->vf_id + vf->pf->hw.func_caps.vf_base_id;\n+\n+\tpfe.event = I40E_VIRTCHNL_EVENT_RESET_IMPENDING;\n+\tpfe.severity = I40E_PF_EVENT_SEVERITY_CERTAIN_DOOM;\n+\ti40e_aq_send_msg_to_vf(&vf->pf->hw, abs_vf_id, I40E_VIRTCHNL_OP_EVENT,\n+\t\t\t       0, (u8 *)&pfe,\n+\t\t\t       sizeof(struct i40e_virtchnl_pf_event), NULL);\n+}\n /***********************misc routines*****************************/\n \n /**\n@@ -1842,128 +1964,6 @@ int i40e_vc_process_vflr_event(struct i40e_pf *pf)\n }\n \n /**\n- * i40e_vc_vf_broadcast\n- * @pf: pointer to the PF structure\n- * @opcode: operation code\n- * @retval: return value\n- * @msg: pointer to the msg buffer\n- * @msglen: msg length\n- *\n- * send a message to all VFs on a given PF\n- **/\n-static void i40e_vc_vf_broadcast(struct i40e_pf *pf,\n-\t\t\t\t enum i40e_virtchnl_ops v_opcode,\n-\t\t\t\t i40e_status v_retval, u8 *msg,\n-\t\t\t\t u16 msglen)\n-{\n-\tstruct i40e_hw *hw = &pf->hw;\n-\tstruct i40e_vf *vf = pf->vf;\n-\tint i;\n-\n-\tfor (i = 0; i < pf->num_alloc_vfs; i++, vf++) {\n-\t\tint abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id;\n-\t\t/* Not all VFs are enabled so skip the ones that are not */\n-\t\tif (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states) &&\n-\t\t    !test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states))\n-\t\t\tcontinue;\n-\n-\t\t/* Ignore return value on purpose - a given VF may fail, but\n-\t\t * we need to keep going and send to all of them\n-\t\t */\n-\t\ti40e_aq_send_msg_to_vf(hw, abs_vf_id, v_opcode, v_retval,\n-\t\t\t\t       msg, msglen, NULL);\n-\t}\n-}\n-\n-/**\n- * i40e_vc_notify_link_state\n- * @vf: pointer to the VF structure\n- *\n- * send a link status message to a single VF\n- **/\n-static void i40e_vc_notify_vf_link_state(struct i40e_vf *vf)\n-{\n-\tstruct i40e_virtchnl_pf_event pfe;\n-\tstruct i40e_pf *pf = vf->pf;\n-\tstruct i40e_hw *hw = &pf->hw;\n-\tstruct i40e_link_status *ls = &pf->hw.phy.link_info;\n-\tint abs_vf_id = vf->vf_id + hw->func_caps.vf_base_id;\n-\n-\tpfe.event = I40E_VIRTCHNL_EVENT_LINK_CHANGE;\n-\tpfe.severity = I40E_PF_EVENT_SEVERITY_INFO;\n-\tif (vf->link_forced) {\n-\t\tpfe.event_data.link_event.link_status = vf->link_up;\n-\t\tpfe.event_data.link_event.link_speed =\n-\t\t\t(vf->link_up ? I40E_LINK_SPEED_40GB : 0);\n-\t} else {\n-\t\tpfe.event_data.link_event.link_status =\n-\t\t\tls->link_info & I40E_AQ_LINK_UP;\n-\t\tpfe.event_data.link_event.link_speed = ls->link_speed;\n-\t}\n-\ti40e_aq_send_msg_to_vf(hw, abs_vf_id, I40E_VIRTCHNL_OP_EVENT,\n-\t\t\t       0, (u8 *)&pfe, sizeof(pfe), NULL);\n-}\n-\n-/**\n- * i40e_vc_notify_link_state\n- * @pf: pointer to the PF structure\n- *\n- * send a link status message to all VFs on a given PF\n- **/\n-void i40e_vc_notify_link_state(struct i40e_pf *pf)\n-{\n-\tint i;\n-\n-\tfor (i = 0; i < pf->num_alloc_vfs; i++)\n-\t\ti40e_vc_notify_vf_link_state(&pf->vf[i]);\n-}\n-\n-/**\n- * i40e_vc_notify_reset\n- * @pf: pointer to the PF structure\n- *\n- * indicate a pending reset to all VFs on a given PF\n- **/\n-void i40e_vc_notify_reset(struct i40e_pf *pf)\n-{\n-\tstruct i40e_virtchnl_pf_event pfe;\n-\n-\tpfe.event = I40E_VIRTCHNL_EVENT_RESET_IMPENDING;\n-\tpfe.severity = I40E_PF_EVENT_SEVERITY_CERTAIN_DOOM;\n-\ti40e_vc_vf_broadcast(pf, I40E_VIRTCHNL_OP_EVENT, I40E_SUCCESS,\n-\t\t\t     (u8 *)&pfe, sizeof(struct i40e_virtchnl_pf_event));\n-}\n-\n-/**\n- * i40e_vc_notify_vf_reset\n- * @vf: pointer to the VF structure\n- *\n- * indicate a pending reset to the given VF\n- **/\n-void i40e_vc_notify_vf_reset(struct i40e_vf *vf)\n-{\n-\tstruct i40e_virtchnl_pf_event pfe;\n-\tint abs_vf_id;\n-\n-\t/* validate the request */\n-\tif (!vf || vf->vf_id >= vf->pf->num_alloc_vfs)\n-\t\treturn;\n-\n-\t/* verify if the VF is in either init or active before proceeding */\n-\tif (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states) &&\n-\t    !test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states))\n-\t\treturn;\n-\n-\tabs_vf_id = vf->vf_id + vf->pf->hw.func_caps.vf_base_id;\n-\n-\tpfe.event = I40E_VIRTCHNL_EVENT_RESET_IMPENDING;\n-\tpfe.severity = I40E_PF_EVENT_SEVERITY_CERTAIN_DOOM;\n-\ti40e_aq_send_msg_to_vf(&vf->pf->hw, abs_vf_id, I40E_VIRTCHNL_OP_EVENT,\n-\t\t\t       I40E_SUCCESS, (u8 *)&pfe,\n-\t\t\t       sizeof(struct i40e_virtchnl_pf_event), NULL);\n-}\n-\n-/**\n  * i40e_ndo_set_vf_mac\n  * @netdev: network interface device structure\n  * @vf_id: VF identifier\n",
    "prefixes": [
        "net-next",
        "S3",
        "05/13"
    ]
}