Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/824593/?format=api
{ "id": 824593, "url": "http://patchwork.ozlabs.org/api/patches/824593/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171011214943.7076-1-alan.brady@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": "<20171011214943.7076-1-alan.brady@intel.com>", "list_archive_url": null, "date": "2017-10-11T21:49:42", "name": "[v2,1/2,net-next] i40e: fix link reporting", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "55882775d8c24f2dec172d05acbd90a079837b4d", "submitter": { "id": 69551, "url": "http://patchwork.ozlabs.org/api/people/69551/?format=api", "name": "Alan Brady", "email": "alan.brady@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/20171011214943.7076-1-alan.brady@intel.com/mbox/", "series": [ { "id": 7702, "url": "http://patchwork.ozlabs.org/api/series/7702/?format=api", "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=7702", "date": "2017-10-11T21:49:42", "name": "[v2,1/2,net-next] i40e: fix link reporting", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/7702/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/824593/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/824593/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<intel-wired-lan-bounces@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" ], "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)", "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yC75M1Qv7z9sRq\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 12 Oct 2017 08:53:11 +1100 (AEDT)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id B0479890A1;\n\tWed, 11 Oct 2017 21:53:09 +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 4mO0euWVNAlA; Wed, 11 Oct 2017 21:53:07 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 10CF282121;\n\tWed, 11 Oct 2017 21:53:07 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 16E4D1BFB44\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 21:53:06 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 0EC34883F5\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 21:53:06 +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 iydlYltuXq9B for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 21:53:05 +0000 (UTC)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 3741E87AFE\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 21:53:05 +0000 (UTC)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Oct 2017 14:53:04 -0700", "from dev1-atbrady.jf.intel.com ([10.165.248.38])\n\tby FMSMGA003.fm.intel.com with ESMTP; 11 Oct 2017 14:53:04 -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.43,362,1503385200\"; d=\"scan'208\";a=\"909052877\"", "From": "Alan Brady <alan.brady@intel.com>", "To": "intel-wired-lan@lists.osuosl.org", "Date": "Wed, 11 Oct 2017 14:49:42 -0700", "Message-Id": "<20171011214943.7076-1-alan.brady@intel.com>", "X-Mailer": "git-send-email 2.14.2", "Subject": "[Intel-wired-lan] [PATCH v2 1/2 net-next] i40e: fix link reporting", "X-BeenThere": "intel-wired-lan@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.osuosl.org>", "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>", "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>", "List-Post": "<mailto:intel-wired-lan@osuosl.org>", "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>", "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@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@osuosl.org", "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>" }, "content": "When querying the NVM for supported phy_types, on some firmware\nversions, we were failing to actually fill out the phy_types which means\nethtool wouldn't report any link types.\n\nTesting-hints:\nCheck 'ethtool <iface>' if you have the right (wrong?) firmware.\nWithout this patch, no link modes will be reported.\n\nSigned-off-by: Alan Brady <alan.brady@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e_common.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c\nindex 1b85eb3e6443..8d0ee006606b 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_common.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c\n@@ -1613,8 +1613,13 @@ i40e_status i40e_aq_get_phy_capabilities(struct i40e_hw *hw,\n \tif (report_init) {\n \t\tif (hw->mac.type == I40E_MAC_XL710 &&\n \t\t hw->aq.api_maj_ver == I40E_FW_API_VERSION_MAJOR &&\n-\t\t hw->aq.api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_XL710)\n+\t\t hw->aq.api_min_ver >= I40E_MINOR_VER_GET_LINK_INFO_XL710) {\n \t\t\tstatus = i40e_aq_get_link_info(hw, true, NULL, NULL);\n+\t\t} else {\n+\t\t\thw->phy.phy_types = le32_to_cpu(abilities->phy_type);\n+\t\t\thw->phy.phy_types |=\n+\t\t\t\t\t((u64)abilities->phy_type_ext << 32);\n+\t\t}\n \t}\n \n \treturn status;\n", "prefixes": [ "v2", "1/2", "net-next" ] }