Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp131789ybg; Mon, 27 Jul 2020 18:00:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw67yeElHuPllsY5W0eznUSroq5RB0kNCg28QkY/ovzURfe/pPWNcYDwTNr9VeWUdJ2HRf+ X-Received: by 2002:a17:907:212b:: with SMTP id qo11mr23112824ejb.452.1595898022601; Mon, 27 Jul 2020 18:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595898022; cv=none; d=google.com; s=arc-20160816; b=Rh6A4cO7WxuI17bGzkszeGSR2ro98e75xfsrUG1Dp2V0PCQ93k3DXP634GO5Rm7NTy it24zSH4ikHJADyk8f1Aulqv60GyGOTp0xSrsbfTdzdjKA93XUdXNA458vzvohfxNyq6 8SD3FmowBdcsFURlJuiVu0RxRu5h6TZnGX55HUqIYSIKvkpNKwGRi5XbszFyeF7TiXZf zgBBc60mZ6qG1OY3N4kk640Khcgj+jP3AroWyOaXr5Ji1HKEwoiwj86qUwMhjpcaurZW kWmagYCq0RqO5mv7/Oj5JeyvQWzlbN6iAKwPpo8ogocPEzPp9axxExDi/T/PKUCuRsoB NrtQ== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=MXdR29BuHxbw1bF4xaIGlezQnzJvDaOawkYmFzf79t0=; b=p7yHhy4VaGpo/A/jMvNcDLrRtqnK32dxsUg2/jTTVs/hzmDBdjJ8P+wthlQZeIO1kL /d3h6eLHwENH+tsRjYTZnMW2an1Ms+T8I7pvWMs+BFoEHMZ6aV/kKXVfdfxEMSOS9b+X YbAtnXZAPgqOG2SdcBw7OFkkdCdkFD2LFX05wrjrWarcHubn8DaIYAg9eGtrZ/mdh18y ubPQGFgAfbiKwUFcmwdMWYc0eGhJB614WRFKhYOnIUf4dWkz6tiLokkxWZ/pYP2u0EgZ eZU9cv7FiJLCocnjx7K0+4wkuXOBgLF62zbvS6ioy3OwutcAJ+4nzaIN4krh94awGRrv mjaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HPgGTKhz; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si1709503edu.248.2020.07.27.18.00.00; Mon, 27 Jul 2020 18:00:22 -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=@kernel.org header.s=default header.b=HPgGTKhz; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726878AbgG1A7i (ORCPT + 99 others); Mon, 27 Jul 2020 20:59:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:56574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgG1A7h (ORCPT ); Mon, 27 Jul 2020 20:59:37 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1B17820809; Tue, 28 Jul 2020 00:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595897977; bh=TiJ2nFSx8p/oc0Ub+qEvsRg4KkH6dx4FIb4AaU6zuZI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HPgGTKhzVQIqJlZQWf9fKC4GGP9qR0R8UsSCWCT/3EY8DjfyGXgByhvnZKpA4nZdc m7BpwZpRfN8W7w2+7Mbv9KMl5AfhqJx7utGWzEFtvdO3h8NhtuhNfB5eo7fcmUGMoE vwpdHw6XA/woh3W9ihuMpvHSl5WhOqNBk7bk+9yQ= Date: Mon, 27 Jul 2020 17:59:35 -0700 From: Jakub Kicinski To: Moshe Shemesh Cc: "David S. Miller" , Jiri Pirko , Vasundhara Volam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next RFC 09/13] devlink: Add enable_remote_dev_reset generic parameter Message-ID: <20200727175935.0785102a@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1595847753-2234-10-git-send-email-moshe@mellanox.com> References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> <1595847753-2234-10-git-send-email-moshe@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 27 Jul 2020 14:02:29 +0300 Moshe Shemesh wrote: > The enable_remote_dev_reset devlink param flags that the host admin > allows device resets that can be initiated by other hosts. This > parameter is useful for setups where a device is shared by different > hosts, such as multi-host setup. Once the user set this parameter to > false, the driver should NACK any attempt to reset the device while the > driver is loaded. > > Signed-off-by: Moshe Shemesh There needs to be a devlink event generated when reset is triggered (remotely or not). You're also missing failure reasons. Users need to know if the reset request was clearly nacked by some host, not supported, etc. vs unexpected failure.