Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2709376pxk; Mon, 14 Sep 2020 23:21:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU7ICXY8CDyvNNoG/s6I2zohglxPZSq00d9bq861TNMErFFYEX5RsrtWtXTdFNwic4qudN X-Received: by 2002:aa7:d35a:: with SMTP id m26mr20032688edr.183.1600150918497; Mon, 14 Sep 2020 23:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600150918; cv=none; d=google.com; s=arc-20160816; b=YUZrUlBBmLxUDpasUf1zGm04FzvzU8paDHLdsqeglGHCuva3IFJ42amx9K90NfFL64 ifSciV7v8VZbkYgDvFmv2x4khPatbQNivMHAGLeJXfDRX/C6vhYaYla36pXoMlTlOxRi cjnsIkqis/ob2PGWMmdR2qfnhDIg+TyRScAK1ywpqvB/oN0s/VcOvf1s+wPSiPe9AWD0 7IfyFZZZJjXsr6ot2H+fBfwnsmQ4Wn+sdRO8otoA37NBwfCiV5Jk8nWxztwBR+I49DuH 8zLv2TTZcKVSp7DjiK6V6oMqB0yU/nptK44b4dO5nux40fnlbTRArDVXs9lqd9tf+j7g B/Tg== 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=9am9YLQ12i+k6cN6RIp9GxfKB8+xvQlyP4sg2rnKSZw=; b=YVXu3l3v0MZQkwqDNp7GWc5AXasR2V/8t4G/l7z86rfv7IY0j3uQk7tFg70iphy03P C3gDlfzQoCI0k7iI8NYkKP2LY/YX9DtYhI9NHhbz6/nz5s17tO8VdeH1ILdyxBR+z5cv UakjEkdoUnX1S+HYCe1zJk/Bn5GSTXzmLvOhggAZQQ6FNOgJGIc5x/AYbSsz4FZ3BdTy 1X5Wc8eHzHkU4Ou6YxzlIIC/HJfrFBv2LpXIsE1RK+M2uK/I2E7/kSe6bLP4G3tuGG8t lZu4xgX/bXQnt7EsaQI38+N9Ba6Ty732wSxHHqo2MjSjjwf1xNFBjPg4AZMCU0hekiR4 2jMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=qhCa3eWd; 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 nu21si5211487ejb.96.2020.09.14.23.21.35; Mon, 14 Sep 2020 23:21:58 -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=qhCa3eWd; 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 S1726062AbgIOGSw (ORCPT + 99 others); Tue, 15 Sep 2020 02:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726031AbgIOGSs (ORCPT ); Tue, 15 Sep 2020 02:18:48 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7FFFC061788 for ; Mon, 14 Sep 2020 23:18:47 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id i1so1865255edv.2 for ; Mon, 14 Sep 2020 23:18:47 -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=9am9YLQ12i+k6cN6RIp9GxfKB8+xvQlyP4sg2rnKSZw=; b=qhCa3eWd5M9dMGkBFiu7uOJh6zgpigFNEIHSG99UMkqd6ZWKMJqHHfeSu/J7uZZZWq jlAZ21H+lr0ZhcU5zxu21KF5FIo4uhlq89KNwg1Yh415hPW9beuXs5KZomv52rqi/ixj yhbBzE8A4EnzlnY49LEb8qZwCNDSohbZs/P6Oyz2ZLtF9yAVjds0CsnzdhDSNXSjmk/H JVNssND4QaP7utjwKFmL2MNhJDrO5ujEzi+F/8k2UHlw+zqcb8dG+mxpvOYPaNWrndCO rooG5jVJodO0iKcV0Mp1DoPesfFkgJTxpVevPLGMkwXc1NXe2nZzmF7wajdewxjtWq2o 7u6A== 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=9am9YLQ12i+k6cN6RIp9GxfKB8+xvQlyP4sg2rnKSZw=; b=DYIqkSepLVLslmvLgVwjCb0uHuf9Lmv7AD7IBawJErmmumqSmxiOejyMaL5EF5EFOE tRYCGbDFD1U7wpgorrohtNKlTqqeoEnJuSpMjkHFxio5YdBYulfNVB6G5lzwBx24CBXS AVZMd5TH/NBmFx5V0H5OyxfMicglb+UMmPC2yF5ic4kd+eV1tOe/MW84cqlAVLhkBS8n Fg2GGhfyDa4Z+tPW0Wkj6gGvNjtTth1+F6zvQ1TaIxJI66WPrD2LOWXa69BsS+it1vU3 fLnvJXx/7JpnKjt8s9lbHlT+hpPtxziJt/o8Up+YPnYaxCfKYp0DYzqv6OHqts7tYabA 1krg== X-Gm-Message-State: AOAM533TCkfRaLipOtspPeJEFYJ/3jV2o+9myyQAYR1mZVdE9D/UQDiz OM68uMhEai3LdfhYGx019wwedw== X-Received: by 2002:a50:d942:: with SMTP id u2mr21466383edj.0.1600150725984; Mon, 14 Sep 2020 23:18:45 -0700 (PDT) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id u23sm9300369ejc.108.2020.09.14.23.18.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 23:18:45 -0700 (PDT) Date: Tue, 15 Sep 2020 08:18:44 +0200 From: Jiri Pirko To: Michael Chan Cc: Jakub Kicinski , Vasundhara Volam , Moshe Shemesh , "David S. Miller" , Jiri Pirko , Netdev , open list Subject: Re: [PATCH net-next RFC v4 01/15] devlink: Add reload action option to devlink reload command Message-ID: <20200915061844.GL2236@nanopsycho.orion> References: <1600063682-17313-1-git-send-email-moshe@mellanox.com> <1600063682-17313-2-git-send-email-moshe@mellanox.com> <20200914093234.GB2236@nanopsycho.orion> <20200914112829.GC2236@nanopsycho.orion> <20200914143100.06a4641d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tue, Sep 15, 2020 at 12:06:19AM CEST, michael.chan@broadcom.com wrote: >On Mon, Sep 14, 2020 at 2:31 PM Jakub Kicinski wrote: >> >> On Mon, 14 Sep 2020 13:28:29 +0200 Jiri Pirko wrote: >> > >> Instead, why don't you block in reload_up() until the reset is complete? >> > > >> > >Though user initiate "devlink dev reload" event on a single interface, >> > >all driver entities undergo reset and all entities recover >> > >independently. I don't think we can block the reload_up() on the >> > >interface(that user initiated the command), until whole reset is >> > >complete. >> > >> > Why not? mlxsw reset takes up to like 10 seconds for example. >> >> +1, why? > >Yes, we should be able to block until the reset sequence is complete. >I don't see any problem. I will work with Vasundhara on this. Could you please also remove fw_reset as it is apparently misuse of devlink health mechanism? Thanks!