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 A7C31C19F28 for ; Wed, 3 Aug 2022 15:19:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236364AbiHCPTT (ORCPT ); Wed, 3 Aug 2022 11:19:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236253AbiHCPTS (ORCPT ); Wed, 3 Aug 2022 11:19:18 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D98B15FA9; Wed, 3 Aug 2022 08:19:17 -0700 (PDT) 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=RQOFXZWs2tYr8L8+xWFfYSf+X3mKpoMc+tlzny8a7aU=; b=ghTmO+qLfHAJHYRXY/jt5jXHuV Qrj1MkFatPZdVbKhVcDL6hjoIAeYxBOC9E8POkPZoO63HZ/8Oa9VQOF7GO6q2kEI8ZN235GLKV5yG mv1z+XDR6MHcJLbz3rDdZwwbExeYhoWd8sEW/lwmSC8XKJMbNVf4D5BtmXhXMjI4GOMY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oJG9Q-00CLld-QF; Wed, 03 Aug 2022 17:19:12 +0200 Date: Wed, 3 Aug 2022 17:19:12 +0200 From: Andrew Lunn To: Alexandra Winter Cc: David Miller , Jakub Kicinski , netdev@vger.kernel.org, linux-s390@vger.kernel.org, Heiko Carstens , Thorsten Winkler Subject: Re: [PATCH net 1/2] s390/qeth: update cached link_info for ethtool Message-ID: References: <20220803144015.52946-1-wintera@linux.ibm.com> <20220803144015.52946-2-wintera@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220803144015.52946-2-wintera@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On Wed, Aug 03, 2022 at 04:40:14PM +0200, Alexandra Winter wrote: > Speed, duplex, port type and link mode can change, after the physical link > goes down (STOPLAN) or the card goes offline If the link is down, speed, and duplex are meaningless. They should be set to DUPLEX_UNKNOWN, SPEED_UNKNOWN. There is no PORT_UNKNOWN, but generally, it does not change on link up, so you could set this depending on the hardware type. Andrew