Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2385855ybl; Mon, 20 Jan 2020 01:51:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzP/WOSYzPuBhNTQU0Gi94x2RnOKCEJN6IMae9DXMqcLK+/OfjwtuPIZNHHsBMTQUMyLoRy X-Received: by 2002:a9d:6196:: with SMTP id g22mr15726451otk.204.1579513919280; Mon, 20 Jan 2020 01:51:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579513919; cv=none; d=google.com; s=arc-20160816; b=Dk8z/JLkM9tMgee/2ojUC910OClsSrYFtzFt8yr9LaA3m9jqu7GldSnGdb2917Xtcq UImZT7htZpKgCw52Rggro7yx2J5mGzwE0WiiCIi/vlOzCDFfGoeICLe9UBNjDHxiCOKK uPPVR/3Wm0ZHGAPK0d3f+bIf8Q7O3A0q2piF90M0/m4a4gQFn7SippgxI1p0q5J4Bx8W qPJdzVFikb0KuXaX8Ne3LiA43uNMH3rDtCCnfoi6xqvg4+y6/iTjrABJsqGEXUEEG1dg coO1741lFF1bgeQ54sOtxQVGxsNh0YH3wMTZKwDugwOIQqrg+Q193ZNPyNwVXewilFM3 gNCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=PEuZyRmwo3539CanAR52BRtANnXDDI0iDmXujLVdyQ8=; b=ArzKEBglMsC3nlcCHDX4KZ9qca0ByomQ1JA62dLCMSnypx6R7lW+rNz3OzwOqbRSlq ixlqOGeDSHtlDW2rwnvYuVn69ejuY7geKA7cIhI++hu/OSepiiK1r9dEpIpAkxk1lD4P O4AWchCfFcBentr+Ugtish6hH1Yg4bbW29m8oi/kLCkAoJjIXRgcXj/77t2U/NP/2qMm zxZbj8lseZvOpAShCGO1cvBrfbc+cIXjdBCAsIvXb1FmFEbZ/lH60GtFyWA7x4CEhc6p sPWkc0o3cPN/ecfSfO/12JnY5cOJrbTPL17UeFq7Tz9wGXzKTHY/kIqUqC0oelUefo09 SfqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e26si20995649otj.113.2020.01.20.01.51.47; Mon, 20 Jan 2020 01:51:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbgATJua (ORCPT + 99 others); Mon, 20 Jan 2020 04:50:30 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:55212 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbgATJua (ORCPT ); Mon, 20 Jan 2020 04:50:30 -0500 Received: from localhost (82-95-191-104.ip.xs4all.nl [82.95.191.104]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 1716D153D88BE; Mon, 20 Jan 2020 01:50:28 -0800 (PST) Date: Mon, 20 Jan 2020 10:50:27 +0100 (CET) Message-Id: <20200120.105027.695127072650482577.davem@davemloft.net> To: moshe@mellanox.com Cc: jiri@mellanox.com, vikas.gupta@broadcom.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] devlink: Add health recover notifications on devlink flows From: David Miller In-Reply-To: <1579446268-26540-1-git-send-email-moshe@mellanox.com> References: <1579446268-26540-1-git-send-email-moshe@mellanox.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 20 Jan 2020 01:50:30 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Moshe Shemesh Date: Sun, 19 Jan 2020 17:04:28 +0200 > Devlink health recover notifications were added only on driver direct > updates of health_state through devlink_health_reporter_state_update(). > Add notifications on updates of health_state by devlink flows of report > and recover. > > Fixes: 97ff3bd37fac ("devlink: add devink notification when reporter update health state") > Signed-off-by: Moshe Shemesh > Acked-by: Jiri Pirko I really dislike forward declarations and almost all of the time they are unnecessary. Could you please just rearrange the code as needed and resubmit? Thank you.