Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3519381pxk; Mon, 5 Oct 2020 11:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrhoIrwW0mSr48K798qqEzCwSCNmu2VJNV5BBw8WveTVCDtJ5AzyyAR0npd5vjXNbA1rvt X-Received: by 2002:a17:907:20e7:: with SMTP id rh7mr1146864ejb.515.1601923621796; Mon, 05 Oct 2020 11:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601923621; cv=none; d=google.com; s=arc-20160816; b=USEzLApzVBMEQVXVTLnPjxnCEe1yyCLm1CjE0CHxNAjqDjWThnjVAaDG3oiOi2t5J+ kBNlJW02BC8LS9klFHSbgq6+fLA0QsJI7t04G6IxKF24qQSjJY5PSivCbdprYfGCk/a0 B89i5ksMkWKaoaWQDAlnvIY/Pshl3vdSJN45zKhoCiq88RxGpc8BWiBHoi29nql/88GY msIKx2Yn9s9fzGuYSp814Uixio16jHEJ/KIuhwjsujFzhEzx1yBIH4Us+dE3uzUQojnj XM2ao1jAD2AwLxeQ7G4IwEza3LguKECci4L95ibQpdJk3Bah095PQfU2Df3oghK23k7z XL3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=9q9x6UX5vR8FWo+iQTLt+l85ocFo2I0UdQM1Knmm4nw=; b=H5/0lGHOLMWTrzAucW43RsHJO1Lx+yQwlN+XaelhL+nuBb9MhIENk4vAyI7V9/1HoU wY3pv2WMG9dF48EltwzIK43efZMTZ+VhooZCmlyVySU3iIwLnkaquOWTqhAWU4MqtNBt R7X5b6dM5oNCog6iRwktWcREXv6fG9RoRQBp6AJYklHoXKaMw6Bo5noVf2nibuyko+Mt WxakFG3MwA+59vP38oKl02RW/u9oPQSZgwyLhVeu6mSSBMdZQrlyW2R+w2HN1ZOzSVqh Liv/Rs+aE1Z9bRyUzYc3bVG5YRehv2y0kV+GH8iQ+OEPoRD4LkMOugYGx3m2MhzPi9VX dNIQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si353389ejy.70.2020.10.05.11.46.35; Mon, 05 Oct 2020 11:47:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728667AbgJESpT (ORCPT + 99 others); Mon, 5 Oct 2020 14:45:19 -0400 Received: from mga12.intel.com ([192.55.52.136]:53468 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbgJESpS (ORCPT ); Mon, 5 Oct 2020 14:45:18 -0400 IronPort-SDR: 3FSZuNeWLE69Oj/NonUN39167rJ+Db7PVeOia6VtIR7AZxYdapNZH/DW2pPbFLHkXxQPV1fyXB HnAtbkRqlqQg== X-IronPort-AV: E=McAfee;i="6000,8403,9765"; a="143228411" X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="143228411" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 11:45:10 -0700 IronPort-SDR: E6pQ9YDI43zkKwK8oS0eoACx4mVqkzMEAalzHvSyvUD1wuPoyXtTbVSvzXE55meb2TUd8mVs0Q dOtLAfd3R2ag== X-IronPort-AV: E=Sophos;i="5.77,340,1596524400"; d="scan'208";a="310164830" Received: from jekeller-mobl1.amr.corp.intel.com (HELO [10.255.65.178]) ([10.255.65.178]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2020 11:45:09 -0700 Subject: Re: [PATCH net-next 03/16] devlink: Add devlink reload limit option To: Moshe Shemesh , "David S. Miller" , Jakub Kicinski , Jiri Pirko Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1601560759-11030-1-git-send-email-moshe@mellanox.com> <1601560759-11030-4-git-send-email-moshe@mellanox.com> From: Jacob Keller Organization: Intel Corporation Message-ID: <150136a2-f391-b588-3d6e-d97cd11e4cf2@intel.com> Date: Mon, 5 Oct 2020 11:45:06 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <1601560759-11030-4-git-send-email-moshe@mellanox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/1/2020 6:59 AM, Moshe Shemesh wrote: > Add reload limit to demand restrictions on reload actions. > Reload limits supported: > no_reset: No reset allowed, no down time allowed, no link flap and no > configuration is lost. > > By default reload limit is unspecified and so no constrains on reload > actions are required. Nit: I think the spelling for the noun here would be "constraints"? Same for a comment in the header file. > > Some combinations of action and limit are invalid. For example, driver > can not reinitialize its entities without any downtime. > Good to see that checked in the core code. > The no_reset reload limit will have usecase in this patchset to > implement restricted fw_activate on mlx5. > > Signed-off-by: Moshe Shemesh > --- Other than the spelling hit and things pointed out by others, this looks good to me. Reviewed-by: Jacob Keller