Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3767581pxt; Tue, 10 Aug 2021 10:51:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcJbbkbhgUE3/tjBVR7Ke3tUyfTpp2L40O8zPTLqE1/t80UVMoGNkq7e2sLm35mmbnyftI X-Received: by 2002:aa7:de05:: with SMTP id h5mr6446131edv.174.1628617884791; Tue, 10 Aug 2021 10:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628617884; cv=none; d=google.com; s=arc-20160816; b=CtNxW9Vep+lO4AihIaGUDFEvlx7wwKMGh4mbgw1XUlCesjzqC3VgK2VhDl9YN2zxi3 beEAhuee6+EiLkljV/u8VMp8pvQxrRB8HAGY69UqEsTYZ8J5997mj5+LJ4Bqq2E977oR 7Puzdcq6Qci3eLHMFi7i+DVkY0PIwIjfM00qMKgSUlF1YC1JLhm/wJwu66W2pYpac6Hd aY6cX38bo+OvwOnj1SRJ/AeEbMDEy1nLfIpcSR5F+7kTO6t9d5xkxSyujkl6D8XsL4Cv PvdxT7iiQNJ5PsNNaOW4hWqCFmmN5Pc5dcnFt+iEDVwNRxBztoBTxrxnikW9X3HMul1h ftRw== 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=JKcAzReSiTIGFXIL0snfuOjh+ekXaTRkcwUAx5E2c7I=; b=YBWGi9VE/eT7rNj6cvtMDMvaxCcObhgIVMgk6B/JdRcZasR19wrngX3a3RjhRs3mxI 0dl0RlCaqr0yYpOy5m6DbHqWGneq58ZKVV6PjTJ16Xv3lUPaLdep+DUntIRUUXcO5qex sxE0vV12jWKait0XqXRFYwWXMBKjCFH29CXvvKbjZtW1RYDHF0ChjFSer72e8Ri4wUqH zCPCKcK0LQWwZtj4Ad7WOVh9lnpDD2ZcX2yuhtdmcDfeODq+Z6OEN4FPAV6Za9zxfRam TKpsle2mJdFFwAHE9aXdsbysHmA3ti57z9cMXSXRthUbY6VVNRSsN+0vc9NOdzNUisSE EA/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AyxeoK0t; 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 p12si20629844ejj.2.2021.08.10.10.51.01; Tue, 10 Aug 2021 10:51:24 -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=AyxeoK0t; 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 S236342AbhHJRrA (ORCPT + 99 others); Tue, 10 Aug 2021 13:47:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:42798 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235003AbhHJRoK (ORCPT ); Tue, 10 Aug 2021 13:44:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 771F761152; Tue, 10 Aug 2021 17:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617166; bh=E/z/JvZfJMHCsozoepjfR5TwcFIaZZE+LoTO4kyoZxo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AyxeoK0tQwDcav39W6fpYSJWNsrDiksm4pMo/z4BEAAmDcGfc3tOkJ/IEAP8s0je2 2l52+CpUO5e2IAmCkOCKfQYUywR7VPgzY43wf6Z1HbO7UmxKuinOdoj1ReyOXCbGkb lhEOc63CnzlDlENfFojfsWNNtCkDJFgnOgXb+NjU= 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.10 040/135] nfp: update ethtool reporting of pauseframe control Date: Tue, 10 Aug 2021 19:29:34 +0200 Message-Id: <20210810172957.042063167@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172955.660225700@linuxfoundation.org> References: <20210810172955.660225700@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 9c9ae33d84ce..c036a1d0f8de 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c @@ -286,6 +286,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