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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84BF6C63797 for ; Mon, 9 Jan 2023 13:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233085AbjAINER (ORCPT ); Mon, 9 Jan 2023 08:04:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236533AbjAINDI (ORCPT ); Mon, 9 Jan 2023 08:03:08 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF8541649D for ; Mon, 9 Jan 2023 05:02:23 -0800 (PST) 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=B2HK/pF6A9R9ayW6PczULprhkx/935lJ+O19dnKs9gg=; b=YKAgI0AG7mm4LBizY/KEmgk0gk BLodud1Zw0JgSee93dQdmbDDlf/rrc9YgZDIG+IMbHakQTI3xUOBZ389E0M/wgjadEkxJXdo9fzOG felw7ZiWfBomSsqiCSxM6KsF6ouyINqwDdayYaXp1fUhZ+FxZ0g3Bz5HeF2rdIf+f1AI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pErmz-001Z9q-Le; Mon, 09 Jan 2023 14:02:09 +0100 Date: Mon, 9 Jan 2023 14:02:09 +0100 From: Andrew Lunn To: "Neftin, Sasha" Cc: Jamie Gloudon , Tony Nguyen , davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org, Naama Meir , "Ruinskiy, Dima" Subject: Re: [PATCH net-next 1/1] e1000e: Enable Link Partner Advertised Support Message-ID: References: <20230103230653.1102544-1-anthony.l.nguyen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Jan 09, 2023 at 10:40:47AM +0200, Neftin, Sasha wrote: > On 1/4/2023 19:44, Andrew Lunn wrote: > > > > I don't know this driver at all. What i don't see anywhere here is > > > > using the results of the pause auto-neg. Is there some code somewhere > > > > that looks at the local and link peer advertising values and runs a > > > > resolve algorithm to determine what pause should be used, and program > > > > it into the MAC? > > > > > > > > Andrew > > > This is a old patch i had laying around, If i remember correctly, phy->autoneg_advertised plugs in "Link partner > > > advertised pause frame use link" line in ethtool everytime the nic renegotiate. > > > > Hi Jamie > > > > Could you point me at the code which interprets the results of the > > auto neg and configures the MAC for the correct pause. > probably you look at e1000e_config_fc_after_link_up method > (this is very legacy code https://elixir.bootlin.com/linux/latest/source/drivers/net/ethernet/intel/e1000e/mac.c#L1001) Thanks. That is exactly what i wanted to see. Reviewed-by: Andrew Lunn Andrew