Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp794270pxa; Wed, 5 Aug 2020 12:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfXfXd3Abo7hpWE15Dq8DadnbwB3PUD+K1plt9awCO+jci3ZdAqpBEPA7KD05RLbMtB3gt X-Received: by 2002:a17:906:8318:: with SMTP id j24mr888581ejx.409.1596657462111; Wed, 05 Aug 2020 12:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596657462; cv=none; d=google.com; s=arc-20160816; b=EMKAku5s0x3Z2zRc/RpOkE8dpIECgts85RHGwBfrqefJ8lGVK4UNa8WmpHPxS3uenR xENaf3vx3YcMrMmCSZS9wF9ft6AyUVAW4FtUBvKwjqnMtagrd108+z8+t4niIO4jHVzB 4fpN/I36MojIwDTmQHesnCmTWZ21XfALex3U9chPQ2xHA3y4PrVcPmY5aTwzJLLvqNGa wH96HSujfbOyLSHV2tNeG56mh2rkvsOi1dUPKpIISH7jQfapcSztmN/MYU/Z34ijogxa qTTdl/tMF4dda2YEDcyWBgY16XM8gJREdyI+5+MVpo8RfIsz0xdoMC5IStFJH+V5mGFB OoHA== 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=vywA2wspQfpo/+2soJmF21VREcdXyi5ZnRQZUMSV7tA=; b=Y2s6Al7lZ8drC+gtoEmRmczErLHGS5FAdQPnPxOtstpkFlVuoWbqZfwa8HTs0mRD7m utUPeagnkhG+BocuL0nPAlxGNJoowjUBW1TD2piUlAxFQ0mxVYroN/ZAAmE7mk6P4JOB mjJEYACtwxe6ZmjVZx3s5+DBugtohlQOCvw9PydT8j+iW1/0NhzpGCppfhJ5oJxFO/Y1 gcX2pG7YaeaLm8RAWnxa8BHR+ymG0rq8qzJ4AbuUTFfgZVb/vIa1uzbqYEDrpkANFlj8 dkmWght44ek1eF1d90U1/IUcY/8DImfCJJRCU0AJlYmXVYupaHsZaiBydhi+4LHq2r5p 0XDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=Ru8oOB0o; 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 e1si1840860eds.65.2020.08.05.12.57.19; Wed, 05 Aug 2020 12:57:42 -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=Ru8oOB0o; 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 S1729419AbgHETzt (ORCPT + 99 others); Wed, 5 Aug 2020 15:55:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728044AbgHEQqQ (ORCPT ); Wed, 5 Aug 2020 12:46:16 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4224DC061A14 for ; Wed, 5 Aug 2020 04:03:01 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id x5so5424900wmi.2 for ; Wed, 05 Aug 2020 04:03:01 -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=vywA2wspQfpo/+2soJmF21VREcdXyi5ZnRQZUMSV7tA=; b=Ru8oOB0onYaJd4dRPmoeLEHLVVGRjqx5C4IoMZb0HqJdoDmXduW8/4B9rUnBZGhD8K zfRkoVZv2cXuTqIlnNhmvqWA2np6FcWGRig+L7ITcOSv3J45FO9/skC9G8j1xe1t12LB Dw7niNYMPCfLN8cNP9yfs3imZY5YaGjVUUkWmucTiqylveFJYXUxqBlmMGGHsE5FfUP9 gwr38uStrRpITFhsTu761NUCjKyK6w+YRLVwAqzPu/tp77mKYOwxMdVNtFlWQX6wrUbu S4P4+jTh0C2maJvlZWMAYjJjkd+udl/gMkg0lQ90V+Gc53ctKfsXYeXhfD+6IcQMW4Vv oyCw== 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=vywA2wspQfpo/+2soJmF21VREcdXyi5ZnRQZUMSV7tA=; b=K41BaiQZXng4uOrxeaAzCvz9tAS/3Tjimi1ET9itcTPGY2whD0Zk4IjbI9XhQZGlJa nyfH5uBI8OuRxagt7cLqg/rdfZpr07bp3MXRwmtt7rGgki8wTLIso5EYS+ulWFA6Nuf0 ugwvmcYL3jrfb6owZgu027oE2OgmupSG63QbptAh4NcbWZ/tCAk/9QgIlR9+ZFN5/iiO ea6NTLzn9EQr7OOWLYeBcR7nh+QVtikPYcA26gbNFAuaacqjXWYBqjh0y1/T6AXO+1Se hFNVZh3bp1801U8+K1+8nAgl6Kn4h6sNwRaQhFYFk/boJ4gSG20S385u2IeL7aEAlAeD 4s6Q== X-Gm-Message-State: AOAM5328244bmiiZWBPxsVErt+AiFLYpSDtPc9v5DqjdvXUFcC0fLtz/ Mt/t7wysN8gwDIZxVJ2h5n+F5A== X-Received: by 2002:a7b:c7d5:: with SMTP id z21mr2906047wmk.145.1596625379899; Wed, 05 Aug 2020 04:02:59 -0700 (PDT) Received: from localhost ([85.163.43.78]) by smtp.gmail.com with ESMTPSA id d14sm2274189wre.44.2020.08.05.04.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 04:02:59 -0700 (PDT) Date: Wed, 5 Aug 2020 13:02:58 +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: <20200805110258.GA2169@nanopsycho> References: <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> <20200804100418.GA2210@nanopsycho> <20200804133946.7246514e@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200804133946.7246514e@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 Tue, Aug 04, 2020 at 10:39:46PM CEST, kuba@kernel.org wrote: >On Tue, 4 Aug 2020 12:04:18 +0200 Jiri Pirko wrote: >> Mon, Aug 03, 2020 at 10:57:03PM CEST, kuba@kernel.org wrote: >> >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. > >AFAIU the per-driver default is needed because we went too low >level with what the action constitutes. We need maintain the higher >level actions. > >The user clearly did not care if FW was reset during devlink reload >before this set, so what has changed? The objective user has is to Well for mlxsw, the user is used to this flow: devlink dev flash - flash new fw devlink dev reload - new fw is activated and reset and driver instances are re-created. >activate their config / FW / move to different net ns. > >Reloading the driver or resetting FW is a low level detail which >achieves different things for different implementations. So it's >not a suitable abstraction -> IOW we need the driver default. I'm confused. So you think we need the driver default? > > >The work flow for the user is: > >0. download fw to /lib/firmware >1. devlink flash $dev $fw >2. if live activation is enabled > yes - devlink reload $dev $live-activate > no - report machine has to be drained for reboot > >fw-reset can't be $live-activate, because as Jake said fw-reset does >not activate the new image for Intel. So will we end up per-driver >defaults in the kernel space, and user space maintaining a mapping from Well, that is what what is Moshe's proposal. Per-driver kernel default.. I'm not sure what we are arguing about then :/ >a driver to what a "level" of reset implies. > >I hope this makes things crystal clear. Please explain what problems >you're seeing and extensions you're expecting. A list of user scenarios >you foresee would be v. useful.