Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp189113pxa; Tue, 4 Aug 2020 03:07:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSHN1BA/vabF62olKb+sSSi2aqguxdHrPwsxr3bB3eikgZY4XMU4pI+eKaxbGzL9AcjV9B X-Received: by 2002:a50:a166:: with SMTP id 93mr2111627edj.336.1596535623627; Tue, 04 Aug 2020 03:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596535623; cv=none; d=google.com; s=arc-20160816; b=fccpI6NjlhgyRI36VKWh6iIjbTGGT+dRM7yk7j2o47WikdrabrZieO29Jb8QOeJYts oOuxrikP4DvUkJ5O0luV5CgIJc9MqFNlYfZzCUtXROc8Gm2KD/aJBhHnQxULslGPKB+N rtp8XKMV2z4WnFYlHVWVyaL/LmwZPh+/uHpUkFsMnlZ0SnkrofXQqHgPtDQhPNsuvtUC XSF6qAtmdczrdU6qkERhBGDaelXIyOFqMPsDM7LIvtoh+zi5ybB8DoV03vDRcaFnKgoQ zYbH7ybo19+DJlB7fUWULC8QRELKvKN7A0ikQr2z5wGAoNE7LX4tHPS2/JB6LGB8V0li EtPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Pegb0ogFlCOGFMDWVKjVJSjrV23uFfG+68FKgoAHUYg=; b=kTEY24mqMCWLOzbKeCIl7bmft1Z6XT3HwTei4GbaONyucs1YwCGZggeO0sPHjDipTn rjsGTX27AlLxbPDPyRa1mXdrFPXxfrICSBAjkkoqPvm3T5mjdU8HlCRCZoHu5lENjkfg 87gafYBU+P76BPU+CViOiKwvOQ0AvBzHTKgaZlvVC84kv6wYnGMtHl9QZKAurBxXP6vI MUqav8Z71LewMXse/oeALbSd/yamW/Q6OQMC3ScWPt/4va6YP/eGioQmczN+UMrwFN5j oxCJ9a8i9PwGiieum8eWVASVC7hAahc+DCj5OUXpQvnLqhABf1c5punatAXp33HPcxSm ESOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="qQ/w6vAt"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lz26si5812789ejb.40.2020.08.04.03.06.40; Tue, 04 Aug 2020 03:07:03 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b="qQ/w6vAt"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730132AbgHDKEW (ORCPT + 99 others); Tue, 4 Aug 2020 06:04:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728332AbgHDKEV (ORCPT ); Tue, 4 Aug 2020 06:04:21 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D029C06174A for ; Tue, 4 Aug 2020 03:04:21 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id x5so2118688wmi.2 for ; Tue, 04 Aug 2020 03:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Pegb0ogFlCOGFMDWVKjVJSjrV23uFfG+68FKgoAHUYg=; b=qQ/w6vAtQCyNq/N4PY2sly/z47Hs2FmYbLoaFwozntW55ABMjsTts2O+Es0m+jaOyG ndtUKCdb1yI2DENSgvww2GO8gUK9+zwzLZsL/5tXQOHh7buHn0aN1mb42LcU96AwSlOU PUhRcvOjTh3gr+RqpKJhaCIb6gKkvEXoRy5KrT3L+8Dhd6Q86WoDNtvU3T/LhpBFexCq g4Nd4JtUMXVXPWTZ04C2ZDXxzik3XgVOQXl/dbMhM/jOZHYP0hB0m0ajaC6T2Xwf8GcY xPSSpTuhFtOoR9wZN5cXyunYxhySi3pw/P4B3DFJ/Iqd5aaYi6PZ2M+j1cROPpCEiCgq wgBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Pegb0ogFlCOGFMDWVKjVJSjrV23uFfG+68FKgoAHUYg=; b=CzyFUnZSicXoPXjHUUPVVEowPv4AcHYvYgy2tKq5bHVIsphuKuSffHbjaUtfNzVtwo 45+dqyQ1PixZQ4CLsasNt/vYv2VB/JP7Vfk8OIkxDXUzW69UEfFTwCF7vyztA5tL4CLY Rv1Mm8e/spMHEQELAxWpjDKfoVAceJ9fbY12dIyYW7V8DyPBt6A+FIZXrdcEElCE2jC/ kFESuMh1BEnevPHB6bHSPyFq2TZUbnogxj4majVG+e/9VvQnevKN6ofWPpNP9qIYQeBZ EWf04egU70Tw/JJU0zoKKGIH5KwsZ1bI2G3lJ4LlAoeOdBgITo+we8d7l15Xps/U7qwr Ib2w== X-Gm-Message-State: AOAM533yplUB7SdcJy4TIiCvA7zSA9EliDhVFpvUPOfRh6CXO4v1u24A aGDcqYWW3jz5r7QTln6e00WXCg== X-Received: by 2002:a1c:e107:: with SMTP id y7mr3143467wmg.99.1596535460198; Tue, 04 Aug 2020 03:04:20 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id z15sm28680490wrn.89.2020.08.04.03.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 03:04:19 -0700 (PDT) Date: Tue, 4 Aug 2020 12:04:18 +0200 From: Jiri Pirko To: Jakub Kicinski 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: <20200804100418.GA2210@nanopsycho> References: <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> <20200803135703.16967635@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200803135703.16967635@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, Aug 03, 2020 at 10:57:03PM CEST, kuba@kernel.org wrote: >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. Clear actions, that is what I'm fine with. But not sure how you think we can achieve no driver-specific defaults. We have them already :/ I don't think we can easily remove them and not break user expectations.