Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1115846imm; Wed, 1 Aug 2018 10:26:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfp+r3pboqWvwzjnGXKeTRlg0qeNXUz5K+r4xwWBKPcgOCL2o0ngkbTkDST/pMQrn9bEos+ X-Received: by 2002:a63:f043:: with SMTP id s3-v6mr15910287pgj.94.1533144386470; Wed, 01 Aug 2018 10:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533144386; cv=none; d=google.com; s=arc-20160816; b=aZ4TgqD1J6kHuC7vMM42uBeHcfO113xoBCgrt+Nty2X65xkYRI8uR294UQiNsXH+5b 2p4ugyD6TCDLEU/Q2m/dK5ccfHAgtfBV5cD5dFg87h3d7O/hgRnIqeHFXtIBNpgbmF99 3EtooFOI+N6n4oG+SdWXyrjKgbYadFVR8N8qYMGrcpm1jeowCm6o11QNRFgGGyEaMAhN D/U2aaAbmWcXVvZ+A5Q7KzFsxblHelwZstTHAyXQzO8hscbKtB9Kd+nSOJYc/NFFrJUO EuVVQmlQC0IF0UmSAdXo/v3fQImEDGR1OoLQlHpcNxQMrTHupwe7ftRobYhxBlRGhc2B pNuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0k22FhhUbA3HlodKAtXIeHnX+YS1JxV+bSppFh8ykvY=; b=qGZFM8gvMC+LSuN2AUROj/FDW07tHgqoWEVlerSCQvWSQtLC0+AQb6+PJRXwu00K+U aodDnGHJyDFD7o/dHrTpcFeGZHMhhEBDQWy7hvpVL8ciagAwQcOCr7yP+Gr28uTpusaW s08edZJMjfmg1DsO5Bs2St8/mMeS5uM2Ow9vPo8zzB+UR9LJ31HJNoKkpVtr4JdM5F7b CHIPXyRrY6aok5ZeswIGQ9ctOK+TAmAItkKSek6gfvuMgIIe8dU2jp9OxZD0zUkQl/oy mkymw//f5FsXPhWFZowPwnFoJzGamQrNvG9/oRgWBYEbE7wgqUdQfLEOlYPeZpBlaS6D 3M/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2-v6si16881338pgh.396.2018.08.01.10.26.12; Wed, 01 Aug 2018 10:26:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406539AbeHATLE (ORCPT + 99 others); Wed, 1 Aug 2018 15:11:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51112 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406206AbeHATLD (ORCPT ); Wed, 1 Aug 2018 15:11:03 -0400 Received: from localhost (D57E6652.static.ziggozakelijk.nl [213.126.102.82]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E8168CC3; Wed, 1 Aug 2018 17:24:20 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, tangpengpeng , Tom Lendacky , "David S. Miller" Subject: [PATCH 4.14 234/246] net: fix amd-xgbe flow-control issue Date: Wed, 1 Aug 2018 18:52:24 +0200 Message-Id: <20180801165022.926478238@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180801165011.700991984@linuxfoundation.org> References: <20180801165011.700991984@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: tangpengpeng [ Upstream commit 7f3fc7ddf719cd6faaf787722c511f6918ac6aab ] If we enable or disable xgbe flow-control by ethtool , it does't work.Because the parameter is not properly assigned,so we need to adjust the assignment order of the parameters. Fixes: c1ce2f77366b ("amd-xgbe: Fix flow control setting logic") Signed-off-by: tangpengpeng Acked-by: Tom Lendacky Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c @@ -1128,14 +1128,14 @@ static void xgbe_phy_adjust_link(struct if (pdata->tx_pause != pdata->phy.tx_pause) { new_state = 1; - pdata->hw_if.config_tx_flow_control(pdata); pdata->tx_pause = pdata->phy.tx_pause; + pdata->hw_if.config_tx_flow_control(pdata); } if (pdata->rx_pause != pdata->phy.rx_pause) { new_state = 1; - pdata->hw_if.config_rx_flow_control(pdata); pdata->rx_pause = pdata->phy.rx_pause; + pdata->hw_if.config_rx_flow_control(pdata); } /* Speed support */