Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2483115rdb; Thu, 21 Sep 2023 22:53:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHhxun6zJt1z2BMnLUSozu1vkfy1Zaz/AYGjR1uWcGpUu16/q9B49+P5YkzKi1K1vqkfg3K X-Received: by 2002:a17:902:da86:b0:1c3:e2eb:f79d with SMTP id j6-20020a170902da8600b001c3e2ebf79dmr2665259plx.8.1695362022108; Thu, 21 Sep 2023 22:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695362022; cv=none; d=google.com; s=arc-20160816; b=eZP6wMNSytudrgNQ/m6dEv/AxlIdm8rC6SoQABhvK0ztVLybTOURI1zeeb3oaoTP3K yYO5VrBEhie/325mhBtZ7qR/W1SIfeDvQULCBMD5oBiS8s14mweZo4cgec7WpZXYZN6M w2WDGA1K0CzOJnBpnIh7NNNvwBX6OAyiJC8ljusUc9/RdflcNs9Ar88MMTVQ4j38xAh0 dj7NzWqBqITfR5aw+XXMdHKG7EeO8lxlRd6DkHnoBFEoHiooqzQxPuwf4mVXBT6CbeHp PmdKvbNpYqOBj9D2d4zmrwF94kYhmSdy7s7Pw0BvmVBFt8cJgs0/AXROWqt3FW42EVxj PzAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZcZ6CvS508r428h2XRFuIkYdLum6Ry+D8UPk9663CHc=; fh=8NaYnFhS5Op8+F4KRQass2E6cTdGpwh8phDxBPQ0fmQ=; b=y9tx5929Fe3N8yCYL40wt3AgcaCbcmp2dkgHOpKYiGGKjqP/ZnWFKufarhfuTdZxl5 ZV5W6ISOcOaiNK5T2ft5ivX71qvriBUSjpbHMLjdFQWGypmQ0RBVaWsz1DIaP0l7FvmZ gUs2UvPnIq5H81Ab6QivJ/NVWQTkU+i4IS8uwh4Hm1ocrHcyirgT9i/dXS5ViLPf8Jnf n4mnD1ES7x9QjFz31705x1fX/q7537dQdBgkM3SM66ewiwZI5pX5k3evcuz2+Ye4jmU1 Xms8Til8/vnD55paDF/mcWah7ZxhzfhQpzStzhi5rCIPinnKi9CnA3k78AQ+JyZNWxED JFYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=KV924Ig6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id w3-20020a170902e88300b001bdf69e297bsi3295356plg.588.2023.09.21.22.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 22:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=KV924Ig6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3964084E98A3; Thu, 21 Sep 2023 13:32:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbjIUUcl (ORCPT + 99 others); Thu, 21 Sep 2023 16:32:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231879AbjIUUcU (ORCPT ); Thu, 21 Sep 2023 16:32:20 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286F8AF95C; Thu, 21 Sep 2023 11:07:33 -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=ZcZ6CvS508r428h2XRFuIkYdLum6Ry+D8UPk9663CHc=; b=KV924Ig6YmYwVQ7iLK5PibHLuv 8L+EQdN/eVu9JmB+e6x1uTdtJy58t9qTdEm8pI6JBorWubxwzIZHT9pa03LPTxXkY5f6Jv9q1gVa3 aBs6DfDiLXgkvGVWjxTfYX9bsGY9iNFAOKqMyUnMaTK18/2Cvf1WrpgKZGw21wkxnaF4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qjMbP-0076ay-2H; Thu, 21 Sep 2023 18:32:31 +0200 Date: Thu, 21 Sep 2023 18:32:31 +0200 From: Andrew Lunn To: Roger Quadros Cc: MD Danish Anwar , Vignesh Raghavendra , Richard Cochran , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , vladimir.oltean@nxp.com, Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, srk@ti.com, r-gunasekaran@ti.com, Roger Quadros Subject: Re: [PATCH net-next v2] net: ti: icssg_prueth: add TAPRIO offload support Message-ID: References: <20230921070031.795788-1-danishanwar@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:32:54 -0700 (PDT) > > + if (!netif_running(ndev)) { > > + netdev_err(ndev, "interface is down, link speed unknown\n"); > > + return -ENETDOWN; > > + } > > Do we really need this? The error message suggests it is wrong anyway. netif_running() being true means it is admin up. But the carrier might be down, and so the link speed is unknown. So maybe this should be using netif_carrier_ok() ? Andrew