Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3136367ybt; Sat, 4 Jul 2020 07:19:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQF2YiE2FPvfo1dBcfaS5rnamhYeL4QUdwROips0+egztZcMcF3IlMlKgkbBjzN1XOVWNp X-Received: by 2002:a50:f418:: with SMTP id r24mr40564755edm.382.1593872399352; Sat, 04 Jul 2020 07:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593872399; cv=none; d=google.com; s=arc-20160816; b=bEonIU1yC2eprUanscoOLgDlvwAk5Om/V7zNljD1IjOKqTHap+b8oyJ3QBhyWMA280 Pusj56+qiM17keGGx7ESD4/drEW/1rM1bWDGviF/3xVuMNLGRwoHdLHjdLm0ppr304EI dfJV1EdZIJlm3gWeGqS70RdCFrvtsTu6bSt1FucX6ErVBAMItYgEpEcwZdiB6h96XGxh rDLliHkrhzSUumThWxbDLHtoVAHHBsv+w/sdDDMz+GzV247Jqz4kzH2YvLOJx1FqiBfv ABRSKERqQt21RUhFGAZEH8qFstHg7xaHJZIFI6/9ZLtoAqzFDL1UCLqXl4z/mvXJ6R89 GWAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RyP58M97fR4d4gYrtVZFFIlbkVDeOHjRK6AV21s2HP0=; b=qAOkuxlctzlMecI9CzSly0nUU37id4mziED/EOoENYqee5iLVN1mJL1OCruEf12LIa Xdxx8Vcrw5pY1UisEfwv6OZ7Q53I2dlo+e/WLhU06DVrjCkzFD+j49ZxzLq9nfBZFFvF OZEWtYrCr8kVKKJJ73ycvYYivuupZ1C1LYv72+RvJbaz1naIkguvFkpcryYH+fgLFpX/ v+iI4zsp9mcJIFDKUWmel6sAJTbV7bdKVKlnCXXvtdBGLRs320xsrlXfEYUUrBB/Xiy7 vMPEuED9hwMd6beg3JsBWYU1jhyZ6JQTp+KezUxTs+MLHTQMqV5hB4DlmByLySfS7zCg xAPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=x8Ysllir; 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 i20si9587244edy.277.2020.07.04.07.19.32; Sat, 04 Jul 2020 07:19:59 -0700 (PDT) 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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=x8Ysllir; 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 S1726687AbgGDOQq (ORCPT + 99 others); Sat, 4 Jul 2020 10:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbgGDOQq (ORCPT ); Sat, 4 Jul 2020 10:16:46 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC65BC08C5DE for ; Sat, 4 Jul 2020 07:16:45 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f18so37017034wml.3 for ; Sat, 04 Jul 2020 07:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RyP58M97fR4d4gYrtVZFFIlbkVDeOHjRK6AV21s2HP0=; b=x8YsllirNzVCoMItskHCIy73oxoF9kpRfUgzpjsetHVOIQvNPXuELeOrV2QnKMfI3W YBOTYlBknhAYTfzFZol9WcxQiB3vDoDoHxUTEF5/WNM0LxBIfpRwQHNuoI+rvBqp6CkK Gh/kWuZHcJvzAkQdqRb+o3jtUzzybklNOmNRtRw+Xb7jsiIbqAWm1AY059kmakeAcrAG BpBDFbRbrGv9pTsMMoKk184xqImB/XwFhk2LpjEZB/t9z6VaDIGjX8b7MHJ2wukmsIhm jIHC/PjTq0yPE2GTLluX8qSYutUbKYm76hwfmoXEnac5O89E5eT0Io0Gt6QlMocWpQC3 841w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=RyP58M97fR4d4gYrtVZFFIlbkVDeOHjRK6AV21s2HP0=; b=j1nbJSvTTVYWU2P9U+qz5WR0I1HwDiWJGlbZal+hIkSi8b4U7ZUj7eXgxU9OvEgKle mzgIi5NaP9drLg3G4cdepoZqcbazgjfpVDSUZ/ZmJ4GLXAqUzWtGmQ3zgFgxydd4MBBF GiSSEV+F1C0H4+QTyep6gh6vEH7p5pQbtiPapmeD5/ONJHUInnkYoctI8imC995JUR7H bFxxOtlW9YEkTPJB4G6Bj/7EOPpG4reWKASMlsM5rVoPtJqHnIUlsxH8BNIGvsElQNLN Aqc0YCTWKvACvYwKYGJQHg0hxSVu0iDcun897WAFvb+j3j7dw8ydymLdRQVaZDW/9cHO hPig== X-Gm-Message-State: AOAM530yfhg5pamE/S6rdwx/tgVWu1bMUCk4aFXDQwAr6xpygJ2u/DYB 1GFJShR0bWFzfo1DCNYyQuuXcQ== X-Received: by 2002:a05:600c:2209:: with SMTP id z9mr40143484wml.178.1593872204404; Sat, 04 Jul 2020 07:16:44 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id g3sm7522235wrb.59.2020.07.04.07.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 07:16:43 -0700 (PDT) Date: Sat, 4 Jul 2020 16:16:42 +0200 From: Jiri Pirko To: Jakub Kicinski Cc: Moshe Shemesh , "David S. Miller" , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 0/7] Add devlink-health support for devlink ports Message-ID: <20200704141642.GA4826@nanopsycho.orion> References: <1593746858-6548-1-git-send-email-moshe@mellanox.com> <20200703164439.5872f809@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200703164439.5872f809@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sat, Jul 04, 2020 at 01:44:39AM CEST, kuba@kernel.org wrote: >On Fri, 3 Jul 2020 06:27:31 +0300 Moshe Shemesh wrote: >> Implement support for devlink health reporters on per-port basis. First >> part in the series prepares common functions parts for health reporter >> implementation. Second introduces required API to devlink-health and >> mlx5e ones demonstrate its usage and effectively implement the feature >> for mlx5 driver. >> The per-port reporter functionality is achieved by adding a list of >> devlink_health_reporters to devlink_port struct in a manner similar to >> existing device infrastructure. This is the only major difference and >> it makes possible to fully reuse device reporters operations. >> The effect will be seen in conjunction with iproute2 additions and >> will affect all devlink health commands. User can distinguish between >> device and port reporters by looking at a devlink handle. Port reporters >> have a port index at the end of the address and such addresses can be >> provided as a parameter in every place where devlink-health accepted it. >> These can be obtained from devlink port show command. >> For example: >> $ devlink health show >> pci/0000:00:0a.0: >> reporter fw >> state healthy error 0 recover 0 auto_dump true >> pci/0000:00:0a.0/1: >> reporter tx >> state healthy error 0 recover 0 grace_period 500 auto_recover true auto_dump true >> $ devlink health set pci/0000:00:0a.0/1 reporter tx grace_period 1000 \ >> auto_recover false auto_dump false >> $ devlink health show pci/0000:00:0a.0/1 reporter tx >> pci/0000:00:0a.0/1: >> reporter tx >> state healthy error 0 recover 0 grace_period 1000 auto_recover flase auto_dump false > >What's the motivation, though? > >This patch series achieves nothing that couldn't be previously achieved. Well, not really. If you have 2 ports, you have 2 set's of tx/rx health reporters. Cannot achieve that w/o per-port health reporters. > >Is there no concern of uAPI breakage with moving the existing health >reporters in patch 7? No. This is bug by design that we are fixing now. No other way around :/ This is mlx5 only.