Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp127172pxb; Thu, 27 Jan 2022 16:56:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF0nYmFOc4GnpXI6qmdN/pijGlg8JIE8Cj4YJchboXHzw5vqyth5aKEcbUMAhMbrSEou23 X-Received: by 2002:a17:902:d109:: with SMTP id w9mr5963793plw.138.1643331394618; Thu, 27 Jan 2022 16:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643331394; cv=none; d=google.com; s=arc-20160816; b=JUCCv4LgTE9hoL0ouglZkanr/yAB5L2Mdl4fl/jZ0WKE0GEU4w29WGQ3mw5sZkgqWQ P3Xx78FEzm/hiI/uXnfHXNTajZL/nzAtvT9K9XqfLWgnfwt5vp3BKZgLJ7nuGy56zuld bIFsmUoblWp0Nhgw9VT7s24o54OQWT/xIXufSX7XruFgqC+u9znawVzZWjV4BM/134C5 AjZUKACSa6/3kgt8gTOt/yPi0HvCgco+OjdS6uaOtGfrXgb0ej1mks0g/VtrzA+b6cT9 +emfp6qyWQRF1v/hPy2hLJXYUKWsxiVxc/QErSWCiI+bDNYpW/q6c7YDPemsN1iqtTNq s23Q== 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=RozWaeyBnCfAvfGds22B6NdHVC+Ft6DJrVpdHWeEEBA=; b=lIMFMEPaRbU6GH8TTt1BWJNV1FpOOdbxZbNjPkjzwZa9WsIccanjM58MRk94BACinD UswafMDSGuV6gk+ZA4owV0GfisouMv1mDKxMnoN2fZ5bW3Rh/Yq4Ny59OnBp4PrrJtUC Yrf3dM4576o1XNr0BJevbq/G53/bxEupbHvPaAPlBXZxTa5m+ip2GpwCJaF4ra9J2Yan 4YKTfttbKpVZczazg+E+4HMr1BP8J1E+bGjgHtk5Awrxl5fbjKUiB2O7uJyu4vfhEE9o /83ySqFCbgGo239o690VF5jZTof2A109BWEdNieMdtc40AHZsjVuDFCrLvE6K9lViceI GEBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="D/idt8ra"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si4336209plf.69.2022.01.27.16.56.23; Thu, 27 Jan 2022 16:56:34 -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=@linuxfoundation.org header.s=korg header.b="D/idt8ra"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241859AbiA0NXF (ORCPT + 99 others); Thu, 27 Jan 2022 08:23:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241798AbiA0NXA (ORCPT ); Thu, 27 Jan 2022 08:23:00 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB2A1C06174E; Thu, 27 Jan 2022 05:22:54 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 776CBB82213; Thu, 27 Jan 2022 13:22:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9863FC340E4; Thu, 27 Jan 2022 13:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643289772; bh=gw18Fbvfp/ZEQuA9OJdXjIR6yRIzDEoPY96pix/ilGQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D/idt8ra099XTl6YPGYstQELWlBsoUXLp9amRf+aqvj1IcC9/fD8ktbfl/zC+nPGk oDoSzzufNCZLCwTITvC548tMScQNDXlGs81N7y19jcub9YNquaKkWXtJxmAC+G4zhS EfIsahAmL1vV5aIUM/f66fTODwMzOGBQay+z183M= Date: Thu, 27 Jan 2022 14:22:49 +0100 From: Greg KH 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> <20220127123152.GF9150@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220127123152.GF9150@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 27, 2022 at 01:31:52PM +0100, Oleksij Rempel wrote: > 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? You tell us, you are the one that thinks this needs to be reported to userspace. What is only being reported in kernel logs that userspace somehow needs to see? And what will userspace do with that information? thanks, greg k-h