From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 153A8C4708C for ; Sat, 29 May 2021 00:22:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE1B1613EB for ; Sat, 29 May 2021 00:22:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbhE2AXw (ORCPT ); Fri, 28 May 2021 20:23:52 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:34786 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbhE2AXu (ORCPT ); Fri, 28 May 2021 20:23:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=AGrOMjrB8PkVi7aeI+ZHwE/D7dNsrdCe0Y1qW9/Xf7Q=; b=JAwkfKa4b+R4z95o8Ts4NGypQO AvwczwZLoGwthlbDygq5400ysjb2ALDcpHJasO047RoPE67Ke4AGE2LpMIiEn7qCTBYYotxb+0Xzg Q8tc1kkgZpFm28ymvZ2nvdYt8F0XSIPeJzdCW1WKbx/61iNRh/d0qTAKFuBaj3Gb9aoo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lmmju-006ouE-Cx; Sat, 29 May 2021 02:22:06 +0200 Date: Sat, 29 May 2021 02:22:06 +0200 From: Andrew Lunn To: David Thompson Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, limings@nvidia.com, Asmaa Mnebhi Subject: Re: [PATCH net-next v5] Add Mellanox BlueField Gigabit Ethernet driver Message-ID: References: <20210528193719.6132-1-davthompson@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210528193719.6132-1-davthompson@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > +static void mlxbf_gige_adjust_link(struct net_device *netdev) > +{ > + struct mlxbf_gige *priv = netdev_priv(netdev); > + struct phy_device *phydev = netdev->phydev; > + > + if (phydev->link) { > + priv->rx_pause = phydev->pause; > + priv->tx_pause = phydev->pause; > + } ... > + /* MAC supports symmetric flow control */ > + phy_support_sym_pause(phydev); What i don't see anywhere is you acting on the results of the pause negotiation. It could be, mlxbf_gige_adjust_link() tells you the peer does not support pause, and you need to disable it in this MAC as well. It is a negotiation, after all. Andrew