Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp132052ybg; Mon, 27 Jul 2020 18:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWb9KGduY5ZpTwVu9CcI2kMtVMEUEFKhGI9iLBU2gYCCjOJfDsrPRTw05O5U+xVlEVqez4 X-Received: by 2002:a05:6402:1d25:: with SMTP id dh5mr8052705edb.266.1595898045748; Mon, 27 Jul 2020 18:00:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595898045; cv=none; d=google.com; s=arc-20160816; b=jVmCCKbz3pYyDF8+1vUFKm5f5xbqhmlfs3mHu0zqi918RKJNJAZeBl5QNs0YFYOAOt ULfipyBCHa5fSyyCYuWHI5LsIntvNFqeWDFb+0I85m4qCO93dRYp77CQqpqJEQgIacRQ fPFBDrEbBlhqJXaJx89AfxxggvbnGckclZAoWSNOv5tAef36CsTRtqezJC1bo1coSWzt Ru0fT3SzCi7M5vYenuhd7ujVlesyqt4hcQJTp91PCjSHb85bQrnN9VavjXkcAWsQNEaL H9PQj4kRiasEqXT97kPBmXboyUgLKlCki85Z3uLMlBj+iiZhHzzdmbJ3eHbKPyCR8ZWb xMFw== 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=XItDeRD/VOW0c0vh0gxeveqgJidWpf1z1F08rUsRr68=; b=vHHfUsFTF6VtcNvanoerZRYpSX6/47jwT1tLC/GVPokt0J7j/Kh2EwBTSM7q6tL+h+ yTBDirCLYAPcM/CByKw82dMFfFpPo24cLKuASbcBxrNOIabR5TPvB/vUtyCd3YsQE/Cf rifH8psP1JS3kIatoEp2BiPy5TZWpPGL/XUD3+VW/qwOPO9ZYeF59jou5E90ZY4GsKaU +l08x8y0cqRu59wYpc4hAe7rA3hbC1gOZME7Dtfzxs928MIOi6eHsg4KcDsOO8Lsp2tP 95pZvZNn6cexVo7RTdRDt6ZZSrWmnAFNl+Zm98JhqAGZjH0KKgHLZlO9CrSqQYF0fWTV cyng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q55qY5hj; 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 v26si6415022edq.507.2020.07.27.18.00.23; Mon, 27 Jul 2020 18:00:45 -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=Q55qY5hj; 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 S1726811AbgG1A6F (ORCPT + 99 others); Mon, 27 Jul 2020 20:58:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:56134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgG1A6F (ORCPT ); Mon, 27 Jul 2020 20:58:05 -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 8D88920809; Tue, 28 Jul 2020 00:58:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595897884; bh=XItDeRD/VOW0c0vh0gxeveqgJidWpf1z1F08rUsRr68=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q55qY5hjfzZsvbLN/ssXqZAh3kShL5ptHB9qO5ASSnpIKkVFcshi6+1XNovoXyEWa y/BYih70ZzEd+GLlAGHC9I6cRxXz+ru6FpKJLC7T22a8Id9Oz8UIo6H9fpw5IV7ZTJ hRUs4I1367VD5/Yu8gDfT6dsmBpypJ8gPC9RYq7E= Date: Mon, 27 Jul 2020 17:58:02 -0700 From: Jakub Kicinski To: Moshe Shemesh , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "David S. Miller" , Jiri Pirko , Vasundhara Volam Subject: Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command Message-ID: <20200727175802.04890dd3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1595847753-2234-2-git-send-email-moshe@mellanox.com> References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> <1595847753-2234-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, 27 Jul 2020 14:02:21 +0300 Moshe Shemesh wrote: > Add devlink reload level to allow the user to request a specific reload > level. The level parameter is optional, if not specified then driver's > default reload level is used (backward compatible). Please don't leave space for driver-specific behavior. The OS is supposed to abstract device differences away. Previously the purpose of reload was to activate new devlink params (with driverinit cmode), now you want the ability to activate new firmware. Let users specify their intent and their constraints. > Reload levels supported are: > driver: driver entities re-instantiation only. > fw_reset: firmware reset and driver entities re-instantiation. > fw_live_patch: firmware live patching only. I'm concerned live_patch is not first - it's the lowest impact (since it's live). Please make sure you clearly specify the expected behavior for the new API. The notion of multi-host is key for live patching, so it has to be mentioned. > Signed-off-by: Moshe Shemesh