Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3759103pxt; Tue, 10 Aug 2021 10:39:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ9HNkjaPYA/Ao/HuG0ufBxGG37HtCzozD8AL6HomXh4BA7QQafpZRtLs/mQqp2q919mGL X-Received: by 2002:a17:906:828a:: with SMTP id h10mr28782996ejx.15.1628617144719; Tue, 10 Aug 2021 10:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617144; cv=none; d=google.com; s=arc-20160816; b=tks1MchookyRcSmokANUKjHFhjKqcg6L14qtZeIBpO4RtjTcYL3pLnnkS7VJ+1WCMN 3Rs4nbKhRk5Y53droUXhcK21nB0qrevmc72zqmWgDHPUDnr7JI+zWD8FGBYFx+Bbue+o /E0uHTxfRselQTeI7naxCK9tV9Qa8DUEEa+jU0IkQZ9pSBFjICr5lYVUoWKIOk5Ia++c sriBVIthCjjHYXm4A+S9McwPJx7yfFkJwISQkR98rS70qPFVLge0foNDNN3y9o5UhqEB alh2vfqNcQNj5CAUFWytRelV9/JpG73bzvBUGvTHtXEzR9iUFZv+TuOZrvnBrANZGKBc Oqtw== 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=MyCa4tAfnAArtifLbpB6YpIGi5sXEG6nvRku56vHh2c=; b=VA+RsjAdbTBu/RV9qFzdFvIsYSeH6St8h0EKdBQMl2NnD8NnbbiEnda3jy3ZbKWqIy ldkBtRXVic1zjMSEff4uuR2tLEZSK7VXquiENiUvdPf/2QpCXXJl/az4aepJjsAoj7IR 1s6pA9LA1HsjTRlNxfIvd1EgcaKQefyftwBArOsWK8FMi4r5YA96MQfkdLIi7KPJOKeK LUzoJ78eRYBGy6K+7S2lcxfQLbO8+HTWm2tRbVKdOlYqSPMsJj4PfpybVdejjACcCnJQ GP1tHidYvUABlysmJmoUbhj/z0AwASKlw0iIo+yvj4ujysdNUQ2CzYQ9m/i9HOPQKRCb kMXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yemaSyDw; 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 s18si22864109ejh.472.2021.08.10.10.38.41; Tue, 10 Aug 2021 10:39:04 -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=yemaSyDw; 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 S233936AbhHJRgC (ORCPT + 99 others); Tue, 10 Aug 2021 13:36:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:42350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233128AbhHJRes (ORCPT ); Tue, 10 Aug 2021 13:34:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6EEAB6109E; Tue, 10 Aug 2021 17:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616865; bh=kHC0BEt7uSPi7mzIZRmtyXHWQk8ug+KOaKNi/Q7JPqs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yemaSyDwOx+fVk/jXvikfOkP6UQMCWze5B6V2rdt+CWy5WSxNiq9pMn03aqc7aCCU +pArxG55lugCJ2WhvGs+Z5qn4CQQrZmS9ML4hQWJW8E1Pau7U/GNFUrkNLbvUGjfAr 1NTB6Aplm12GYNkTjtfNomnqfDrU3FJh5G/ix530= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Fei Qin , Louis Peens , Simon Horman , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 27/85] nfp: update ethtool reporting of pauseframe control Date: Tue, 10 Aug 2021 19:30:00 +0200 Message-Id: <20210810172949.113738512@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172948.192298392@linuxfoundation.org> References: <20210810172948.192298392@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: Fei Qin [ Upstream commit 9fdc5d85a8fe684cdf24dc31c6bc4a727decfe87 ] Pauseframe control is set to symmetric mode by default on the NFP. Pause frames can not be configured through ethtool now, but ethtool can report the supported mode. Fixes: 265aeb511bd5 ("nfp: add support for .get_link_ksettings()") Signed-off-by: Fei Qin Signed-off-by: Louis Peens Signed-off-by: Simon Horman Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c b/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c index 17b91ed39369..2354dec99418 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c @@ -266,6 +266,8 @@ nfp_net_get_link_ksettings(struct net_device *netdev, /* Init to unknowns */ ethtool_link_ksettings_add_link_mode(cmd, supported, FIBRE); + ethtool_link_ksettings_add_link_mode(cmd, supported, Pause); + ethtool_link_ksettings_add_link_mode(cmd, advertising, Pause); cmd->base.port = PORT_OTHER; cmd->base.speed = SPEED_UNKNOWN; cmd->base.duplex = DUPLEX_UNKNOWN; -- 2.30.2