Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2484853pxa; Mon, 17 Aug 2020 10:44:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeojJp5huml6aEuplZ1BBeX3KTo6ytUchqc+Z8ZG8rL9o7eU9tovp8or4P7hHs7fHxSu8s X-Received: by 2002:a17:906:5a93:: with SMTP id l19mr15829206ejq.418.1597686257732; Mon, 17 Aug 2020 10:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597686257; cv=none; d=google.com; s=arc-20160816; b=HnfMoS5/L1XoMVl4G+gzMkM5GS4Vr8xy4TVOvERDErAlwAtvWBXA03AiH1BNVzvQsJ gD+fwC1DOi4CDIuGltpE+Xb4JiK3L30Hv/c9Dd80vg58BrYJbYFXAzTm6uS4bEll+/N2 STV4yMxoT+ZCVqnHbPxKvORyDfrXzpmRzRUxGbNAMLZV/2+DA7EnFpfN1rDoN8tGNwoy OZdA9T8lTSk9aGU22vUqmY4NEuiMo18TqdXmubvHVcJajA9QKFmfPTnpLqJIw4RaP+zm YmRDqeTRHff5YfjoW9KGpPyS84VtJOY3AyS22k9Qwo+rm2gl76rqafL+WUdihWm+hOUd CVXg== 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=v4HelnalJzFpiLFpsVkj6R47/57bdzqA2rWP/P9h16k=; b=OjM7BjSBkeNQfRaCTvqi62MhcdNkuyy4wycpXBKTsF/yJMah/MYeq27WQyx5bD8OjX nOdBuR8pIcp7z2zJE8sDYKlNjquaeUan0MhJC0P5MF35dSrj34oCgOKXK8lIIHaIp6kA 35VLjqsYq18WAcyN2zLJiS39IHzkqc2GsZsRCh3lVKu98TzrynAAPOtS2BvOr1LVRYCo /hv11Yz2Z0dyBD9UE7SQ+whES2VjBvr++6KK2LikOi7fJzzxo+jZPTLcstCnmwxpYFPO Z0sELRoQJFdtlhrmREDhZQmLYpSfM6wLDQ0mrP3CJ0ksXszzF8Cny6IEJSI+1wY2seWK Htpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aRwgKhUW; 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 y5si11719464ejm.213.2020.08.17.10.43.54; Mon, 17 Aug 2020 10:44:17 -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=aRwgKhUW; 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 S1731534AbgHQRmO (ORCPT + 99 others); Mon, 17 Aug 2020 13:42:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:55088 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731101AbgHQQQj (ORCPT ); Mon, 17 Aug 2020 12:16:39 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (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 554E720658; Mon, 17 Aug 2020 16:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680977; bh=qmXn2ePcxDGgDoZI/rAKqc3zaoL0TNCzGzLKaOLK0fM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=aRwgKhUWjrCwd9uDv+ANJAH6gUxStlMD4owM5J9/JPiol4eK+RhA/NJs9yjLlH1dp VL4xjbKcKHexzaohKJnatJcHKzuB9VdmwpwYw941s7tmsprSnIwZffmUt9g0k8Pff7 NwNK0j0seE62MAOq3/lU3Q0T/EbSRcR+GHGSIJL4= Date: Mon, 17 Aug 2020 09:16:15 -0700 From: Jakub Kicinski To: Moshe Shemesh Cc: "David S. Miller" , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next RFC v2 01/13] devlink: Add reload action option to devlink reload command Message-ID: <20200817091615.37e76ca3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1597657072-3130-2-git-send-email-moshe@mellanox.com> References: <1597657072-3130-1-git-send-email-moshe@mellanox.com> <1597657072-3130-2-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, 17 Aug 2020 12:37:40 +0300 Moshe Shemesh wrote: > Add devlink reload action to allow the user to request a specific reload > action. The action parameter is optional, if not specified then devlink > driver re-init action is used (backward compatible). > Note that when required to do firmware activation some drivers may need > to reload the driver. On the other hand some drivers may need to reset > the firmware to reinitialize the driver entities. See, this is why I wanted to keep --live as a separate option. Normally the driver is okay to satisfy more actions than requested, e.g. activate FW even if only driver_reinit was requested. fw_live_patch does not have this semantics, it explicitly requires driver to not impact connectivity much. No "can do more resets than requested" here. Hence the --live part would be better off as a separate argument (at least in uAPI, the in-kernel interface we can change later if needed). > Reload actions supported are: > driver_reinit: driver entities re-initialization, applying devlink-param > and devlink-resource values. > fw_activate: firmware activate. > fw_live_patch: firmware live patching.