Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/15494/?format=api
http://patchwork.dpdk.org/api/patches/15494/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1472312902-16963-26-git-send-email-xiao.w.wang@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1472312902-16963-26-git-send-email-xiao.w.wang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1472312902-16963-26-git-send-email-xiao.w.wang@intel.com", "date": "2016-08-27T15:48:08", "name": "[dpdk-dev,25/39] net/ixgbe/base: set default autoneg speed at reset", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b5561435a3a596cd547fd84cccefafef5f457b48", "submitter": { "id": 281, "url": "http://patchwork.dpdk.org/api/people/281/?format=api", "name": "Xiao Wang", "email": "xiao.w.wang@intel.com" }, "delegate": { "id": 10, "url": "http://patchwork.dpdk.org/api/users/10/?format=api", "username": "bruce", "first_name": "Bruce", "last_name": "Richardson", "email": "bruce.richardson@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1472312902-16963-26-git-send-email-xiao.w.wang@intel.com/mbox/", "series": [], "comments": "http://patchwork.dpdk.org/api/patches/15494/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/15494/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 704235AB1;\n\tSat, 27 Aug 2016 17:49:36 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 426CC590E\n\tfor <dev@dpdk.org>; Sat, 27 Aug 2016 17:49:29 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n\tby fmsmga101.fm.intel.com with ESMTP; 27 Aug 2016 08:49:29 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga004.fm.intel.com with ESMTP; 27 Aug 2016 08:49:28 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id u7RFnQTr008847;\n\tSat, 27 Aug 2016 23:49:26 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid u7RFnN1H017173; Sat, 27 Aug 2016 23:49:25 +0800", "(from xiaowan1@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id u7RFnN7T017169; \n\tSat, 27 Aug 2016 23:49:23 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.28,587,1464678000\"; d=\"scan'208\";a=\"161601060\"", "From": "Xiao Wang <xiao.w.wang@intel.com>", "To": "wenzhuo.lu@intel.com", "Cc": "dev@dpdk.org, Xiao Wang <xiao.w.wang@intel.com>", "Date": "Sat, 27 Aug 2016 23:48:08 +0800", "Message-Id": "<1472312902-16963-26-git-send-email-xiao.w.wang@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1472312902-16963-1-git-send-email-xiao.w.wang@intel.com>", "References": "<1472312902-16963-1-git-send-email-xiao.w.wang@intel.com>", "Subject": "[dpdk-dev] [PATCH 25/39] net/ixgbe/base: set default autoneg speed\n\tat reset", "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": "This patch avoids the situation where we initialize adapter and not\nyet set up phy.autoneg_advertised speeds. In that case we could end\nup in having no autoneg speeds enabled and get no link until we\nreset link and set autoneg speeds correctly.\n\nSigned-off-by: Xiao Wang <xiao.w.wang@intel.com>\n---\n drivers/net/ixgbe/base/ixgbe_x550.c | 6 ++++++\n 1 file changed, 6 insertions(+)", "diff": "diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c\nindex 3c19326..32759cc 100644\n--- a/drivers/net/ixgbe/base/ixgbe_x550.c\n+++ b/drivers/net/ixgbe/base/ixgbe_x550.c\n@@ -2283,6 +2283,12 @@ STATIC s32 ixgbe_reset_phy_m88(struct ixgbe_hw *hw)\n \n \thw->mac.ops.release_swfw_sync(hw, mask);\n \n+\t/* In case of first reset set advertised speeds to default value */\n+\tif (!hw->phy.autoneg_advertised)\n+\t\thw->phy.autoneg_advertised = IXGBE_LINK_SPEED_1GB_FULL |\n+\t\t\t\t\t IXGBE_LINK_SPEED_100_FULL |\n+\t\t\t\t\t IXGBE_LINK_SPEED_10_FULL;\n+\n \treturn ixgbe_setup_m88(hw);\n \n out:\n", "prefixes": [ "dpdk-dev", "25/39" ] }{ "id": 15494, "url": "