Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp320131ybg; Tue, 28 Jul 2020 06:59:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx043UVVzXza02HOdodanzCoPUwGB64sgnfS+JsXR1KXpZlnoFb3bEEcsffXW/b23dH0CfE X-Received: by 2002:aa7:ccd5:: with SMTP id y21mr25639688edt.91.1595944748131; Tue, 28 Jul 2020 06:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595944748; cv=none; d=google.com; s=arc-20160816; b=S47JA1RlFoZcjkc0dU3oQz802iWfUU0e7fkJbb5H9NTcQBQqxprzO1bGs4Wh4Hjsyk X7zaKkdw/qOmy1Lnz1GuBWoItmtZ0yL8Q240yueWteVO2i0N8OuTAP/pE2dp1UAzVgsJ qmi2VZ1Vpj/T5gUC5OWgG4j1O2hQcsIdclNLmkmHOi8Dvesn/A6zD2x9XmmfJ4Yev2qy ZVdDRxg+GqqAcanwbpUSuXd6/qHYyKXxs5ij6xj92Xei82W6T/hpu6Kc+gEqjzyBqC+L t8k30Q8St5nkRdYGxxjo37oRIzaBc6jS07FvYoMpb9siAITrrYFutvuBcaDHABzRGQXr tjTw== 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=ymP2tkbCreL/BF43+tTjYnEHkymNa3rchuw1gYfZEfQ=; b=yC1Eg6AA0cHaJih4eRpQgfY7Ly0nzaxCuqkgZvlcG7SYgxgMYWprhqAgYm5OKHer0K zz4Cd4kFAMjH5BvVWGI2OKh5AmpZDpCp44T9AFAa0clyBHbDu0VjFeWamVdh04JWF7cK pwE4ZnF1E6yN7TMIVvJ+TzBvWXktSTUuJJJtE8RnmCed+gK6WdpwqTd9S/lVByyrGPom TQnTwhnwOgBKvZjejsxDWBfA03zQ6aJEw1FlTOPAVqEZZiAGvwVEnfXtxmaQpmdKShCv Y+lsIyTloqeZlljLdPPwo1WQrLXDvMbovmE27YREtcSciS4/IVffwD7B4YQKqyB/c2dg UskA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=oMNMtjIM; 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 i23si7521610edx.261.2020.07.28.06.58.46; Tue, 28 Jul 2020 06:59:08 -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=oMNMtjIM; 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 S1730262AbgG1N6N (ORCPT + 99 others); Tue, 28 Jul 2020 09:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730245AbgG1N6L (ORCPT ); Tue, 28 Jul 2020 09:58:11 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C404C0619D2 for ; Tue, 28 Jul 2020 06:58:11 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id f24so247029ejx.6 for ; Tue, 28 Jul 2020 06:58:11 -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=ymP2tkbCreL/BF43+tTjYnEHkymNa3rchuw1gYfZEfQ=; b=oMNMtjIME3+WubEoBwV0RCzBSd3w/ZacHV0/MIaMQsDsXKVA+ffHU1K+cCfA0pZe5b 8cmaUNwUFDPa7F+Oo47Ool4rApNg3xZ/KLqcmxmWlrP0p4y+H0nRUcngVmvfZw9RVRAO RjQhpeAhr763rKw69pCbpurmWe33driw0NlDRsF5667RjxZ/otWwsk8d9+9jzniz1Gn+ oWcKZjScOYxJxQDIBjjkoqrBj+z2yY+8xDZNm1AGXQDBWrYMen1kq16oRSXqq2N6pSn3 L7In1AgtUHsWRKlzODuHHfqmgaC7C0JL7ioaTxuQCVTzJ16Ehr5qMN0akImSf7QXATJB oiNQ== 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=ymP2tkbCreL/BF43+tTjYnEHkymNa3rchuw1gYfZEfQ=; b=GexfzwNiKlZC5Si5SLluA64KRxqVCWsamt28UY66D7DjlEW1AcFMxZikHA9GrNOzGA VFfu0he1OIdHQafdhOD5cQhjMpdC5LwcNBSXuArrBi44OIEH8/mol7VmcWll9AsYs1zH uEUQq80J0t46b3VSnf1He3ibfLLm+DYJ9uizELiaiRqAHSz7i81Csn60zAcos5TrfD3p TXiW5OdW0kAJk2K5OPJSGWGYTWkRbbKSTWpXtrc5sVKxkdu2WX2oi6eXgnyBdVGRriA2 3k+fPCCEcJY7N7zcdauHSWQntNO5FC5NX6W25/tPzRhVigXV4UA7YRLlMvvV+V2nBTbf Hxog== X-Gm-Message-State: AOAM531hmKKxi5rNVO7sSetNVwa5IZsldfLIJt56/3SdJX8r4kDf8SbO VF2HOeK6mlEF6KN4DVsJN0K9hA== X-Received: by 2002:a17:906:7f0e:: with SMTP id d14mr1886365ejr.400.1595944690141; Tue, 28 Jul 2020 06:58:10 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id f22sm442617edt.91.2020.07.28.06.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 06:58:09 -0700 (PDT) Date: Tue, 28 Jul 2020 15:58:08 +0200 From: Jiri Pirko To: Jakub Kicinski Cc: Moshe Shemesh , 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: <20200728135808.GC2207@nanopsycho> References: <1595847753-2234-1-git-send-email-moshe@mellanox.com> <1595847753-2234-2-git-send-email-moshe@mellanox.com> <20200727175802.04890dd3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200727175802.04890dd3@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, Jul 28, 2020 at 02:58:02AM CEST, kuba@kernel.org wrote: >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. But this is needed to maintain the existing behaviour which is different for different drivers. > >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