Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2346932pxa; Mon, 3 Aug 2020 13:59:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDUUh5jD9A8uDfIJGWM6sxBFg03TiroURmhXdoczOJVQMYNos9Dd9sbWSQG0gUFNZPmNrY X-Received: by 2002:a17:906:1455:: with SMTP id q21mr18156174ejc.139.1596488375639; Mon, 03 Aug 2020 13:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596488375; cv=none; d=google.com; s=arc-20160816; b=IVgpBTx2vCttVJruGp+u8Qw24hORtJOrOXOSKhmiW7iCva+mjz9fQMZ2NSdPDJv8xg qIgMig+N+v/gw0cIUq/9v6LZPg5wbQMt8TzaN3ihTk1yCp6X2eDZbvW3X4+ptqAqnQbN 1xQN9cYEECXX9VoqedPKvH6L9uby/fA4nzjsPWxuJW1vV0sjMTih4798XbbO5uKaSsCv 02/qhXs96mdMH9DqLe4Wp6mK9HJPdW+s3yZDjYKsC6N2mRclndSMxlTvEqe62y7VqPag KWibuOYm5wCctsz0aSosPgAkDRiHP1gvEInG3jDQDLaldBWLpX+rzv9utetT4biUI1WY We6A== 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=6Keb7YlkXYKXe1T1PztJYxHIxYLwFnQCzYqM5jyUuEQ=; b=qaaZo0HOxIJ438xvsegDN1fnSJK+/aFWjaByijyD1CYUz3GXo7Sxbd4IeW/lxIvGA9 QAlnfV5z4yRl+QcMQVs9B6JpJg8orjDpfHdBn1BFrHsPI7TNAe89FGYq0+fsJKFn3t3F jkPVUQ+L0Y97/QESfSMoCSLgIbFGPI2+jU6O4WKcwvEEwusBhTL/K1WMNc4W6r0YNazB oFurxnkdYo9XFmRaS93LX9HMYTat5LWPoQ6R/uHOUazzS4ZPX8hBX2eancRfjYiT6Szc 9c9IEb4trYgsfD2r+CuEJffCgUKMX3p6IMnF/2RU3hbXbP6xMVrBZlu67ffkybFhg/Av Asfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JqSxVqPb; 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 r18si8463033edo.272.2020.08.03.13.59.13; Mon, 03 Aug 2020 13:59:35 -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=JqSxVqPb; 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 S1728662AbgHCU5F (ORCPT + 99 others); Mon, 3 Aug 2020 16:57:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:36000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727003AbgHCU5F (ORCPT ); Mon, 3 Aug 2020 16:57:05 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (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 2961F22C9F; Mon, 3 Aug 2020 20:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596488225; bh=ioAaLukKTrijk4ocD2pI0AsCHOBKhdMM0s3SVbC8gpI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JqSxVqPbaU9vmBNgaPLSR58vvYbbd6M2DWvpdUfCASRgXmAWQEgl5H2tCqMavhOPw ywGoCWqsiG2Gm29GMcCALmE1pWLPhecxzsfdk8k8GIxr7s8//4u5t1qs9hVtzMbd1p 9JMLAAg9VLrwzdnUZqoVGTOTTH6ovOneyGDYIPYE= Date: Mon, 3 Aug 2020 13:57:03 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: Moshe Shemesh , Jacob Keller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "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: <20200803135703.16967635@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200803141442.GB2290@nanopsycho> References: <20200728135808.GC2207@nanopsycho> <464add44-3ab1-21b8-3dba-a88202350bb9@intel.com> <20200728114458.762b5396@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200728130653.7ce2f013@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <04f00024-758c-bc19-c187-49847c24a5a4@mellanox.com> <20200729140708.5f914c15@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <3352bd96-d10e-6961-079d-5c913a967513@mellanox.com> <20200730161101.48f42c5b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <0f2467fd-ee2e-1a51-f9c1-02f8a579d542@mellanox.com> <20200803141442.GB2290@nanopsycho> 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, 3 Aug 2020 16:14:42 +0200 Jiri Pirko wrote: > >devlink dev reload [ net-ns-respawn { PID | NAME | ID } ] [ driver-param-init > >] [ fw-activate [ --live] ] > > Jakub, why do you prefer to have another extra level-specific option > "live"? I think it is clear to have it as a separate level. The behaviour > of the operation is quite different. I was trying to avoid having to provide a Cartesian product of operation and system disruption level, if any other action can be done "live" at some point. But no strong feelings about that one. Really, as long as there is no driver-specific defaults (or as little driver-specific anything as possible) and user actions are clearly expressed (fw-reset does not necessarily imply fw-activation) - the API will be fine IMO.