Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp432331pxb; Fri, 28 Jan 2022 02:20:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzELSEHGwABnvSuJM0g+AZK1spWcgvaXxT0dXK7gZfwLjo2TUhik+Pm120HLWs4PoPTGE7Z X-Received: by 2002:a17:902:e887:: with SMTP id w7mr8069154plg.161.1643365251256; Fri, 28 Jan 2022 02:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643365251; cv=none; d=google.com; s=arc-20160816; b=yF2MW0j6EjzfHFoIUcsDoMgB4ot9EBdx1CIxdzsdQ1+CDEsx4WqcNzIsnY+R+Qh5qD 9xApMhXJOCWWewbvLzhDQo7q76IiIWy0rQuKuWp5hDxWWYMgPph27l/M6htOWOL20QMo YA1LLHxXpjDmDvAHONktkpfP/yRaO6iUk68M5wcXvnYknB6nlD2YP5WCNjEu8U17VBa1 zrgIZ+5jat2qof3aGhA8T8NmTCoflWePlb4IhCnL0B2eJJp6H+EHY4yJT5sW11tudIkw NdaBFVq+FFkduuVOd3PSrYdKChe65CYE5tG7zaqnPF1kiTGyx4Nfz/LN5A3/MdjOwUnD jVmg== 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; bh=jmyPLc6V67OU2UdCYt5/NFkxJtFQ3tL32pXu1fXSn2E=; b=r35+rN4FCf9TValjKbxSPTtvSQk2F18+h2ka6F9O4OL5qfCvwQAdCYgHeXzsg8Zq0y dHr48wsWhvg2z8NKbdCMdKtEmlByoU7PdXp8Nea2cfMyIf2gqui8kDEup2E+mQ+9UqFn j6VmFpYjN2aqSZfaI7OY560fCsiREGHrQCE1jrEQ+qQb2X07MuPMsP7uRLt+c0BsB9qb YsmUxV9Vu5JP4QWKYtNjUeS0Th+dbjfJakTkYmxhBWtAdBk3gjvqYLbhTU/r/XS3DKgc SAJiH92YtgcSsu1f50dmbSM/AGVYAUTsHktzGqpH8L5GUMeIQY/hp0sYr+Y6Sb6w+56g DxGg== ARC-Authentication-Results: i=1; mx.google.com; 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 a5si4801836pgm.271.2022.01.28.02.20.39; Fri, 28 Jan 2022 02:20:51 -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; 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 S244256AbiA0RAr (ORCPT + 99 others); Thu, 27 Jan 2022 12:00:47 -0500 Received: from netrider.rowland.org ([192.131.102.5]:45351 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S229861AbiA0RAq (ORCPT ); Thu, 27 Jan 2022 12:00:46 -0500 Received: (qmail 178125 invoked by uid 1000); 27 Jan 2022 12:00:44 -0500 Date: Thu, 27 Jan 2022 12:00:44 -0500 From: Alan Stern To: Greg KH Cc: Oleksij Rempel , 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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 12:13:53PM +0100, Greg KH wrote: > On Thu, Jan 27, 2022 at 12:07:42PM +0100, Oleksij Rempel wrote: > > The weakest link of usbnet devices is the USB cable. > > The weakest link of any USB device is the cable, why is this somehow > special to usbnet devices? > > > 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. > > > > To provide generic way to detect USB issues or HW issues on different > > levels we need to make use of devlink. > > Please make this generic to all USB devices, usbnet is not special here > at all. Even more basic question: How is the kernel supposed to tell the difference between a USB issue and a HW issue? That is, by what criterion do you decide which category a particular issue falls under? Alan Stern