Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3757366pxt; Tue, 10 Aug 2021 10:36:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8cUCoELaHlZEEBYbte1JIR56tWhcXtpKzWFxawkNMXvfCmZgAhu9F1EeojIyzVKuyI9RY X-Received: by 2002:a50:c092:: with SMTP id k18mr6194928edf.361.1628616977807; Tue, 10 Aug 2021 10:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628616977; cv=none; d=google.com; s=arc-20160816; b=kyvFJ6gw24LTeQvPFlN56JR7leXTFJYocjWE4d7Ys1+n/7RVr88IxTydqlPdGS0thp e94Wbeme8zaMRSxVh0VyofZzT4Dj2ZegXcJHelPTuWHbgceCYY75cd/mHdZx5JF6MPWd NpjdrnvRvew7/F0OVfY6uvl4+a7my20rJ/IIVbaot0sxr7DTNRIYN97Os66aoTVPiX/e TFuiOUHLvyuuZq2vFi4J2GrdmdJGHrLKz/vMjHXgwdalT8OOBJ+03eNvLOnQF3VFNsRE SQFbD2bQtb6iTFb9mN10Ok9yJ9PNSSiSbpgzVXYfcVj7zWzTSkve3nXMoVg+1DfiroX9 8qwQ== 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=Rm85RRRbG1Pnb3MEMsbCTgC6ldoIR/R9hiBGhKRol/s=; b=u5fyLZpL1iGODkOgYy+bDveW9q7Ozr56UuTj+I0K3t0LCWwrclVjLtGbCy+nIyryO9 1/HYBK0h8EvCPck/8o7JVtLKCZPY0cyM7Zx/PBBGAG8xbixYSimwhgTtmfNztrBIARZi kTLge3nGim5T3Rzd6AZNJO4dyfRCerwxULTj0ZYj3Kp26g+i94Bsi3Q1oOXIaNvZ7sZI KmeKb97++UMvDXea+AfzgwoWc1wN8Eo123AW/DtXSD5CnaZ0HNjvkxWciqT8HD+PG1Rt abb0NPUb45hF4EUAkFQN58sIUo7LTGYieT3SSIj1T6OH7r4xNtdvxY95XVJ1G/RV9m06 qzFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XMrvKZ71; 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 de22si20947303ejc.18.2021.08.10.10.35.52; Tue, 10 Aug 2021 10:36:17 -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=XMrvKZ71; 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 S232412AbhHJReF (ORCPT + 99 others); Tue, 10 Aug 2021 13:34:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:33530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232521AbhHJRd0 (ORCPT ); Tue, 10 Aug 2021 13:33:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E74D60F41; Tue, 10 Aug 2021 17:33:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628616784; bh=y12iQn0jQuAmtCkT58rXuIsWVDtZvJLbmgfh4RI+Cyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XMrvKZ71KNlNtnU7LcmKB8tn99rObhaBD8r24BU8kirUi44VrNSxiXssxAwLh1HLP LnZvyAHe2mncbD44a14CT5bybv9LQPDeSYG0V4awiTQPiyX0ne9/tPktmyfK0JmMxu mCdR6W66tzjWu+obUmBkIuYC3Xc23eom1jcCxYLI= 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 4.19 12/54] nfp: update ethtool reporting of pauseframe control Date: Tue, 10 Aug 2021 19:30:06 +0200 Message-Id: <20210810172944.592235490@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810172944.179901509@linuxfoundation.org> References: <20210810172944.179901509@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 9043d2cadd5d..2e75d0af4a58 100644 --- a/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c +++ b/drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c @@ -292,6 +292,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