Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3423891pxf; Mon, 29 Mar 2021 01:39:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOWVQnZxjS0kmp94+JOmEB6m7G/OiyiSwJntxV5Exfu1uOznJ5+GB3ltx72diAMjJ/F3oU X-Received: by 2002:a17:906:2710:: with SMTP id z16mr27459450ejc.176.1617007178484; Mon, 29 Mar 2021 01:39:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617007178; cv=none; d=google.com; s=arc-20160816; b=u4EWHpKvwtIUPwob0PMwlBL/8zh0jz6v81nExl9JhEVpzwXMUwmVxaA7HSfSi8S4X0 1HkzQTgtGo3+oscPYtILRFvbkIogeLnDkZq3pw5/AOWveuuk/xIUNOUFiI16w+Ir5if9 jxWSxyLXyK/kf7PWpbUtpICEXQvDyUAbR2QUwBpc8QSBWvUjxDt1CGlVCjcAro81uaPj Dkw1+vLJZZwFAUGSCVFdEFByjSmW5JwPqfRiKAb88DmxIJWC4lVAQfuGnqGbuq7CEdzn CMNw52lW0sNfHibhGHgQbiGvfZ3jruAnCQYmM0/jwAj0sYO2P2IIYompWLdNaFSoqV0q 02XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eBBJQ9fTsQmxqh8s9bb85qgBh3kggXMWMbyg1riUTu4=; b=Yd4zeL2fO/dzIXkTFDiQsRCCxHhtQfqcbcFI29uZSJD7gXG1E28q+BbMdCwLVTv4rr xsMrq6QuxR6exonu+0+btFaimdKOby51SMUENYkeOOc4BCnoVSn3Et5YzdJqKdoUXv0j L6bvQw8AhcRrKUGEEWQQdooPKcx2cIIKJVq5SToQeNMIUqwMf99rKIUFlh74CzaFOkJs SLwHmr63P19ULC/zSBdQBtXOdGZP5AzEsvRtFcHrGkoKaf/vCGyxV4nPFvdLJjOOAEgg 8X1dHCFg3b1nSlpOvoyf59Rw9Zph5T87VUACt5LlrYCpP0MzOIsvbzrIzUp7PxMNOgoZ hNAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NSHVMgHn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji5si12901206ejc.360.2021.03.29.01.39.15; Mon, 29 Mar 2021 01:39:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NSHVMgHn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234796AbhC2IhV (ORCPT + 99 others); Mon, 29 Mar 2021 04:37:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:39332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233983AbhC2IWs (ORCPT ); Mon, 29 Mar 2021 04:22:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7AC9E61481; Mon, 29 Mar 2021 08:22:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006168; bh=OwXO/HiN+vWFBMyr5p8yncZ3dYdxBpPbHIb7UfnZ9O4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NSHVMgHn9vfOjLu8IKUZJFcxcgksmlxA9WXcyrWf5h9EZ80B8Yma6SUmHgxzuE+xd d7f9+mGhmKEHvD6gqktOYx3lKDNQCBROn7KGQzVU1QDo0IZTVd/UiXyNsxzzQTkw4P J1QUTR7Lvxsa/o7aqSZZAefQQIhRgW06RobsClhc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Muhammad Husaini Zulkifli , Malli C , Sasha Neftin , Dvora Fuxbrumer , Tony Nguyen , Sasha Levin Subject: [PATCH 5.10 106/221] igc: Fix Pause Frame Advertising Date: Mon, 29 Mar 2021 09:57:17 +0200 Message-Id: <20210329075632.753359677@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Muhammad Husaini Zulkifli [ Upstream commit 8876529465c368beafd51a70f79d7a738f2aadf4 ] Fix Pause Frame Advertising when getting the advertisement via ethtool. Remove setting the "advertising" bit in link_ksettings during default case when Tx and Rx are in off state with Auto Negotiate off. Below is the original output of advertisement link during Tx and Rx off: Advertised pause frame use: Symmetric Receive-only Expected output: Advertised pause frame use: No Fixes: 8c5ad0dae93c ("igc: Add ethtool support") Signed-off-by: Muhammad Husaini Zulkifli Reviewed-by: Malli C Acked-by: Sasha Neftin Tested-by: Dvora Fuxbrumer Signed-off-by: Tony Nguyen Signed-off-by: Sasha Levin --- drivers/net/ethernet/intel/igc/igc_ethtool.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/intel/igc/igc_ethtool.c b/drivers/net/ethernet/intel/igc/igc_ethtool.c index ec8cd69d4992..35c104a02bed 100644 --- a/drivers/net/ethernet/intel/igc/igc_ethtool.c +++ b/drivers/net/ethernet/intel/igc/igc_ethtool.c @@ -1709,9 +1709,7 @@ static int igc_ethtool_get_link_ksettings(struct net_device *netdev, Asym_Pause); break; default: - ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); - ethtool_link_ksettings_add_link_mode(cmd, advertising, - Asym_Pause); + break; } status = pm_runtime_suspended(&adapter->pdev->dev) ? -- 2.30.1