Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp434289imm; Thu, 26 Jul 2018 06:15:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeHovTHn7cmphDM+a6uvPUrpeYbo2eyz633NvGmRyrzuznTrH0vFLuc0eOI/qxienT9zFmb X-Received: by 2002:a17:902:b401:: with SMTP id x1-v6mr1957862plr.236.1532610906761; Thu, 26 Jul 2018 06:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532610906; cv=none; d=google.com; s=arc-20160816; b=XmBxVlRZUgJRf3AxwPEg2ifQAFk9L2bwkt+YkK9d7odIgwglFyo+F92IJkkyie3JH1 spxfQlxrxpEpRlce1VXnGoZ8xQqnfqB9iuHGH74uzvyyrTkSTMKwrLBJCShNwqkhsltu jTu3qho6lVTY6KIVTuewJzhL4HqG3O1aoJmTtSOcC9dtc9LrqZw4hZjhE0xosFltD3zO c/OFaIT/dyQiBwp9syq/U/fuRNbc/mfVuB988DHneGmXVjJn+EkurSQ4DLAZ7t7qsen0 bqx0jUctXQYJljfDneKNjKc5ePkapj7rM9wjuexBNK9VpqNeHL+T4pHt4DT94GrYUohG iTeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt :openpgp:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=c/fughKdR0m/S3aiKGBaGnD5q8eO26YPmeBLbVHgVFI=; b=AV1w+lT19ZVTYOmSJEgpue1B3m1WmqkCyUMTpP4eo5Dqx2dxPmW/h+3MDvrFOAuaKY pUPIsZojCm4hxM0+GWV1Ug18byd+x8II4MTcrR6oJcekh7ETt44gHrdBUkHQXslwKa1R VyPpEK8LT4LnQG8JDMI7PZggZUSX7DAlfdZgkvkPPokZQ7iS5GaxSG7HBTISqZG8Gw+O n6FCAB+5DJ6xl/yKu+tqIS9zMaSdX/gIjYgkSUXyhHQM6CEYy5w6LEdK7Or5Wg7JCm1s aW33nRlV3gYSbtm80LU1qZ7BFV4vNPiYJ0I7oPcDFod5qDxWiJ8X1Bx97EKatifzFlyc hN6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=gt4U+hYP; 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 k188-v6si1250239pgc.321.2018.07.26.06.14.51; Thu, 26 Jul 2018 06:15:06 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=gt4U+hYP; 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 S1730602AbeGZOa2 (ORCPT + 99 others); Thu, 26 Jul 2018 10:30:28 -0400 Received: from mail-co1nam03on0056.outbound.protection.outlook.com ([104.47.40.56]:2337 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729948AbeGZOa2 (ORCPT ); Thu, 26 Jul 2018 10:30:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c/fughKdR0m/S3aiKGBaGnD5q8eO26YPmeBLbVHgVFI=; b=gt4U+hYP2b8pTdbyZsqAPDnmtEA4mgVQlsYte5YcpRqguru4GH4gzSZJNzOqnoY6ulFzcE8zGF5MEe6m3VmLmz1OeoRDSQRep6VWPV2m6L4VFnHbYmFslMsaeanVy/B04lobDEDeZkBzi7AcVLYczynvxY48b26HNBUaId+oWkI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; Received: from [10.236.64.67] (165.204.78.1) by DM2PR12MB0169.namprd12.prod.outlook.com (2a01:111:e400:50ce::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.16; Thu, 26 Jul 2018 13:13:34 +0000 Subject: Re: [PATCH] net: fix amd-xgbe flow-control issue To: tli012345@163.com Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, tangpengpeng References: <20180726064516.56740-1-tli012345@163.com> From: Tom Lendacky Openpgp: preference=signencrypt Autocrypt: addr=thomas.lendacky@amd.com; prefer-encrypt=mutual; keydata= xsFNBFaNZYkBEADxg5OW/ajpUG7zgnUQPsMqWPjeAxtu4YH3lCUjWWcbUgc2qDGAijsLTFv1 kEbaJdblwYs28z3chM7QkfCGMSM29JWR1fSwPH18WyAA84YtxfPD8bfb1Exwo0CRw1RLRScn 6aJhsZJFLKyVeaPO1eequEsFQurRhLyAfgaH9iazmOVZZmxsGiNRJkQv4YnM2rZYi+4vWnxN 1ebHf4S1puN0xzQsULhG3rUyV2uIsqBFtlxZ8/r9MwOJ2mvyTXHzHdJBViOalZAUo7VFt3Fb aNkR5OR65eTL0ViQiRgFfPDBgkFCSlaxZvc7qSOcrhol160bK87qn0SbYLfplwiXZY/b/+ez 0zBtIt+uhZJ38HnOLWdda/8kuLX3qhGL5aNz1AeqcE5TW4D8v9ndYeAXFhQI7kbOhr0ruUpA udREH98EmVJsADuq0RBcIEkojnme4wVDoFt1EG93YOnqMuif76YGEl3iv9tYcESEeLNruDN6 LDbE8blkR3151tdg8IkgREJ+dK+q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MeL0pnD5ONg1FIuleGlvvKdQdFnE4AlwGcKid5GUD+vNNj/pbZyUpe4r zBFsc21/8jXSlR6zJS4mgkNDIIBGiPny3tvKINMZ8VK00mR6INpd+NErd2LxwZ/DQ5ejVyVL 080CbiD55mxxhqkbd5fHSfdhvvXIIYN+nM/RFLwaQGW9g62iFWlqeNRXezkERDV5ahFqZMP4 YDdodn0nRVZYu2kaXfOclKPcH58HlrRb8pKTE3t/TNKGY3SmKoznH0QtM27TWeZ9R9RgTYiV zSNqP+QUNp6BotWI Message-ID: <2c28089a-7a2b-c279-2905-b6a533b87932@amd.com> Date: Thu, 26 Jul 2018 08:13:28 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180726064516.56740-1-tli012345@163.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR04CA0050.namprd04.prod.outlook.com (2603:10b6:405:3b::39) To DM2PR12MB0169.namprd12.prod.outlook.com (2a01:111:e400:50ce::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 88fe37ac-ff55-4ba4-9130-08d5f2f997f2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600073)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DM2PR12MB0169; X-Microsoft-Exchange-Diagnostics: 1;DM2PR12MB0169;3:MZ8pSm51c4oRbhA/Sk2sp/Ff23BRENcCbIwa1MJ0U0hyfcmRBXurpdglZtEDqT/NSntGzRdpmksbbY7k557fSwy6+QDLaIYpYWQaq5NJV0n0hX7JhfNjJqQ9sgj2yO7TxxrgQx+wRWY5XjvsXghMl9Ja7vx2j8tqkOltNqRyRKJXg30Whs00pQrAKC6iJY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XIfocelzbCF9DhMjIoHLWEb7EiaABfwjIcs+poXeQH2xatk20UERvyh7JPhDjIj1M/VTF/LoCTM6vXIUU0wU7BQEWMgkTw7rtSVnbRy+hU1LAmpRZjUEe0pXYZVaWarFlQ0L4WA/W/4G2Sou6xtILZlsxXhNZ;4:Ys219VGImLm7dCOObklkapMsxsr4bBbGDvlbzmhKVGMfZpabdM9JuEcdPbbWxnU7oBBeDacYmLeQrAb//z6Aja8Vtsp5Zxl/jbWVEe2/STBV3c80olqEJLbJ5/N2lnxpt+8SYzERTVmeqycywjkSN5rryz31GsBQFLKtev3i6JFmORs9XRVRhGGKMty0sCrK9cZdZba8lMecVKOyz06WL2apFc4J5V6oeLcYyPIaZALStamXBbzwAdFV04dgMfRJp5AZtVMxcBP/WOre//aRQI7h7lJqFeoXaGrTg45774BnyWm6qyH5SJ6RtOy+OwTHj3a4UYAg2gItpuGFooID4wYkpUOOYMMjgbgocqXFpmA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(130843839470238); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:DM2PR12MB0169;BCL:0;PCL:0;RULEID:;SRVR:DM2PR12MB0169; X-Forefront-PRVS: 07459438AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39860400002)(376002)(346002)(366004)(136003)(396003)(189003)(199004)(6486002)(31686004)(956004)(68736007)(16526019)(7736002)(36756003)(47776003)(76176011)(65806001)(58126008)(11346002)(186003)(65956001)(305945005)(316002)(66066001)(386003)(53546011)(26005)(77096007)(97736004)(2361001)(105586002)(16576012)(50466002)(6916009)(86362001)(3846002)(52146003)(4326008)(52116002)(23676004)(230700001)(229853002)(25786009)(2486003)(5660300001)(6666003)(65826007)(2906002)(14444005)(64126003)(106356001)(81156014)(2616005)(8936002)(53936002)(3260700006)(476003)(31696002)(2351001)(72206003)(8676002)(6246003)(478600001)(486006)(81166006)(446003)(6116002)(1491003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR12MB0169;H:[10.236.64.67];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjEyTUIwMTY5OzIzOnRkNHpsOUVBS1d5RWczSDAwTWV1RVh6b0JT?= =?utf-8?B?NVllRkRWZ3lQek9BVDRZRm9FZC9sVm43dVBmelpxbkpGSzZoVSs4L0FQVW9Z?= =?utf-8?B?aU8vQXlHWW9vbFFLRVc1WDV6QVFuT2ZSaVJLQ0x2ZnN1aTF5eCtDN1JyejBm?= =?utf-8?B?MXNkbFhSZWhTUVNCamJacHVoSmFNc2huRXpsWnVVYWdjR1diZWdPTnljN1Qy?= =?utf-8?B?NE1PaUE1Sk5hdEdkbnEwaEZWdC9Zb3AxMHVBUWdNSWpOR2JFYlUrbC8reit6?= =?utf-8?B?VWFhZHc2V2xVcjRyTFlWUHFROFVocnVzMG01bEdwbXpRVFVIclhHNmtmdlNG?= =?utf-8?B?SkF5TytEWE5QZG9OS1phamRSOTJ6WldmcE1wVElsSFJHZ0s3TmVFVGxhZUtB?= =?utf-8?B?ZDlJNVA1S01CS0gzYllZZEF5dFR3NldRR0VyWEN2WDY0SXRFcytFd2ZWR1Br?= =?utf-8?B?VGlBMGUvaFlzbHdHcXJKWklZUjlqVWVpeTRBVW1weFJTb1Y1UFN5Zy9kaGFk?= =?utf-8?B?TURCeXVUai9ib2Q5aXYvQkJyWk1Iek1udXBXU2VFUTZ6WERBbU5hMXVKRXZF?= =?utf-8?B?eGhNb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Et+JCHe6aYg52AOJwNBZb0KKYsJxLN7sZ8BuOdbI0ufQ9R6ozZSqG+h/zN6uAMhla6xiQzx9NkjxTJVAa9iBY/O/eu2R2dtDv5clTla6QMG9aOD27wAZDpqkNzHmGfNCZySOm3lvZxL9nHpLXdIAonOeik1F4VhfHaJuTLdkb8v1cYW8HJso056TTUpFEt017RKSOqUeJ3GrTKKAA8b X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2018 13:13:34.7193 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88fe37ac-ff55-4ba4-9130-08d5f2f997f2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR12MB0169 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/26/2018 1:45 AM, tli012345@163.com wrote: > From: tangpengpeng > > 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. > > Signed-off-by: tangpengpeng You should add a Fixes tag as this bug was introduced with commit: c1ce2f77366b ("amd-xgbe: Fix flow control setting logic") And since that commit was introduced in 4.2, you'll want to ask David to push this to stable (4.4 and higher). With that, Acked-by: Tom Lendacky > --- > drivers/net/ethernet/amd/xgbe/xgbe-mdio.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c > index 4b5d625de8f0..8a3a60bb2688 100644 > --- a/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c > +++ b/drivers/net/ethernet/amd/xgbe/xgbe-mdio.c > @@ -1111,14 +1111,14 @@ static void xgbe_phy_adjust_link(struct xgbe_prv_data *pdata) > > 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 */ >