Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp63589pxb; Thu, 27 Jan 2022 15:09:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxI7Ed4WVswZFP7NA6PnZ4chQU7mX5IR3pCnTt2DkWNAaSp4hHCstKa9gifSTqyoCrbhlgE X-Received: by 2002:a05:6402:509:: with SMTP id m9mr5459595edv.237.1643324990935; Thu, 27 Jan 2022 15:09:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643324990; cv=none; d=google.com; s=arc-20160816; b=EPuLeMg0mocQq/dIy3+YnPSzXYg2TGU7FJYn1HJsbPy8l/9HmUmjIahs6Qh1Et2lQz xciNK8ymS7EcK74TV7CnWJqm3vEleVVn6VL0nqsyMcvrW1Pov1CqpD96KG8VMDxLBhGR mXM1jC4OLy42bi8CsYakvYgBlXrKFseaCmDNvp8bVLRg60JW11ZwMW2LEvOL51Z/X3T3 0kCMdsXzDwu98BizNkkyXpQsjKMujopj8KageCvMs3GdoqTKuFVY3ecudm5BJ7uDosdv 52JWTFzYuQCAlYzYE/ciwb9/3bkzJWynQ2IaQb+FqNg+V+3zM1urMQNST77ggKIkYvJm AZsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7StAd9oc6/h+hobgfLdIwguNTo188lbMB87cFmEw6jg=; b=kO2bVSpS7PF5tVfPDQFBwCpcXWWpd5WiVJT3JTLIpDxlKcDk1XjnNsoyeOq+BGg5ed Q+hoYm9QNKB4um8IoAJrIxME8njoO3kHdHcGGcQkDU62PoRdEWj6x8PbUFOJ2Q5npLBT dsTFE+LPNTms6uQv86zuCefSMD3j3CJopRwdgsuYWMLg8v88gLtoosYKT5h1pSQEVGkf Np6QmHcxSnA+9lE9UKQj3h1B8FVN1JH3waL0drYdaa4oMzLs3HtglctcLpAQSYIp9QGW /WaGanygnduLNhOFHKhsMO3k4yisLBbJ2d3h5pHUP44tV4x2KD22aNqAYC3hq+6kNK+6 zEng== 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 oz24si1827703ejb.950.2022.01.27.15.08.53; Thu, 27 Jan 2022 15:09:50 -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 S241043AbiA0Mb7 (ORCPT + 99 others); Thu, 27 Jan 2022 07:31:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235195AbiA0Mb6 (ORCPT ); Thu, 27 Jan 2022 07:31:58 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5A4CC061714 for ; Thu, 27 Jan 2022 04:31:57 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nD3wP-00067W-Q3; Thu, 27 Jan 2022 13:31:53 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nD3wO-0003q2-VX; Thu, 27 Jan 2022 13:31:52 +0100 Date: Thu, 27 Jan 2022 13:31:52 +0100 From: Oleksij Rempel To: Greg KH 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: <20220127123152.GF9150@pengutronix.de> References: <20220127110742.922752-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 13:29:24 up 47 days, 21:14, 90 users, load average: 0.07, 0.29, 0.30 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org 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. Ok. I'll need some help. What is the best place to attach devlink registration in the USB subsystem and the places to attach health reporters? Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |