Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp370156pxb; Fri, 28 Jan 2022 00:36:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlErxjiJ2AP92Ay+hT5tFM10XRKK2Pno2QexZ06pjSAub1yoAvFB/tcnZPpJxu7d64S6SH X-Received: by 2002:a62:1dcc:: with SMTP id d195mr7352994pfd.4.1643359007120; Fri, 28 Jan 2022 00:36:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643359007; cv=none; d=google.com; s=arc-20160816; b=C+Hqd66bpEoANK7Thft/cR7diYyNazmdLAajkaJdRXM0omLg6s9PzdMIw6kPXnZL5k hJeJgcUGlxerio2quiw2bfj62+7ICvo6Qo1IRF3X5PzjddyF+udMkxuEnXC5nSM9agxb RlP616fLhB+SK8QYabkLPSThK/1KMwE/hsMh2FxNxJaOSKH4Hqef9xQwhmW1ehViENzx HXWGq3XgBkDV9x4UWiVfgOeXh2z7lh4805RzDQk7YZ1ktn5QT108jUyCcGzdcBXp/6Sv M289sthhLqvXpPNMQuqGVKMRmIvWlfpDcYQjtCODEfyGP5OaqDCTS8IfHVaR96a3gNQY GHoA== 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=NRNfjci1BUqMB7hhJHAezNYkKercVodV9D1Lc98O3ZE=; b=r4WvPLTvTlxYO+93rEpuMMquIeojGHiZZVu/qc24IrNB4CjlVfsLHdDFEe8t7CV8nz 8wppF2bwd0tW/cpDB2S4701DsmKml5vziCV0fi/FeFkEgSTfNYRHdOOZLq8Zq/gPQ1dJ QQ4BBlYG/6yfzQJhlQAu43QTVTj0GmPxgpH9B+U+oW8N7fd8Al6TRd1UGWE8NTzCZcqc hQ0ZzKBSWmJXUwCkBn1zT/CHPxiP52HbXMasD31SqUjc59WOIzmsOIDE5pOshFToSUmc YdjGuZt2ymdalzU20IMOl5khO0VIqjGTi6cGZxt+yGddxWjRr0rGyzJL7+JYXuhyrgjp xNBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yF5nFX+L; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r187si4756082pgr.683.2022.01.28.00.36.23; Fri, 28 Jan 2022 00:36:47 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=yF5nFX+L; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243072AbiA0PoB (ORCPT + 99 others); Thu, 27 Jan 2022 10:44:01 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:58116 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234341AbiA0PoA (ORCPT ); Thu, 27 Jan 2022 10:44:00 -0500 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=NRNfjci1BUqMB7hhJHAezNYkKercVodV9D1Lc98O3ZE=; b=yF5nFX+LAKzUnFrdwhYrQ29vb+ LLgfv6kPaZAiKmc165TT20rHGLoi8fVqSLClhC6jJAK5KgqJLYPX6HgCgNjlIePdLjiuTokqh8KDW SDI/cgY78nVbw9WCgvblLjTvp/P5rZUqlIC/L0k81APy44gHNX/nFnxUmAEou686GbcU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nD6wD-0030do-4Y; Thu, 27 Jan 2022 16:43:53 +0100 Date: Thu, 27 Jan 2022 16:43:53 +0100 From: Andrew Lunn To: Oleksij Rempel Cc: Oliver Neukum , "David S. Miller" , Jakub Kicinski , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v1 1/1] usbnet: add devlink support Message-ID: References: <20220127110742.922752-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127110742.922752-1-o.rempel@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 12:07:42PM +0100, Oleksij Rempel wrote: > The weakest link of usbnet devices is the USB cable. Currently there is > no way to automatically detect cable related issues except of analyzing > kernel log, which would differ depending on the USB host controller. > > The Ethernet packet counter could potentially show evidence of some USB > related issues, but can be Ethernet related problem as well. I don't know the usbnet drivers very well. A quick look suggests they don't support statistics via ethtool -S. So you could make use of that to return statistics about USB error events. However, GregKH point still stands, maybe such statistics should be made for all USB devices, and be available in /sys/bus/usb/devices/* Andrew