Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2459299pxk; Sat, 3 Oct 2020 23:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPM6WJeosY6yp9zK0FTkyCdTLhcGtxNcEV+s3OKFK+HVFYGkPGohcIBlGhxH86mOTEfZ+6 X-Received: by 2002:a17:906:2894:: with SMTP id o20mr3456580ejd.221.1601793858766; Sat, 03 Oct 2020 23:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601793858; cv=none; d=google.com; s=arc-20160816; b=f9Rs3833zBhZXAAba4BNL9RuSQQNtEioVkSvRRCiqm8c8s9sA+RW5iM6orFrn6Imf3 I1eFO2HABOdHQzzu1zxMnxBBCsFJKeVGXqfu+k0w7AivBa6HmOoFKYK7VNh/0P1i3KLf e0OQtr980onk+sbuvTr1oPMVBiMaVrgUhtz94cq3GcleHBpwYwtvdtO7BQ+sj2V9olPR Cjxnn+Dh0XYxOXb9eN0FWGuldC9NntJgfnB0aUQDz/LiaVJXFpw+Sbob6RKNge5Oqa8J vZiCNStMjKfofzE3KbOwPJLp14lfXy6HSr109Y0Ebl66WlyHI8hzeFj5gyZM+7kxhLAN ybtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=3f7ocMFDJGTXvJfoe+Ta4bX4ElhSzZUOdZHzS8aX3YE=; b=wQz9jIK2m/0JSvPb1wVpdjBBq0d8CtYXjPRRkCfUNje59EryLG23sG4auo6G5Ax71P iR3cURlWfSDv5dhYiExcmmc786uooxD/YtCLOue6lR4uFczSNvHS8ssdPmEkPJ5HDhpx aicAimR81desLkYQS8LxPFqX9+CAi1usxs6I4PgkZ63dXYuvo122dvh1OFactz+1jugA NZhyPbcOKSuWZrHerwWIfoMaVLk1LtXSagnNihBzUBmEcYrXZkMgL9CQ3d99v7o+qWmB NEQ+T4OnMvKxlCrZCaYnOTT1NR6BO3YdZBbRo05IoEBOxyQiCXcXRvnd/10o5iddt/du RpHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=keJ8HCRa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s26si4685947eds.49.2020.10.03.23.43.55; Sat, 03 Oct 2020 23:44:18 -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=@nvidia.com header.s=n1 header.b=keJ8HCRa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725855AbgJDGm7 (ORCPT + 99 others); Sun, 4 Oct 2020 02:42:59 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:12504 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725822AbgJDGm7 (ORCPT ); Sun, 4 Oct 2020 02:42:59 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sat, 03 Oct 2020 23:42:46 -0700 Received: from [10.21.180.76] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 4 Oct 2020 06:42:50 +0000 Subject: Re: [PATCH net-next 03/16] devlink: Add devlink reload limit option To: Jiri Pirko , Moshe Shemesh CC: "David S. Miller" , Jakub Kicinski , Jiri Pirko , , References: <1601560759-11030-1-git-send-email-moshe@mellanox.com> <1601560759-11030-4-git-send-email-moshe@mellanox.com> <20201003075100.GC3159@nanopsycho.orion> From: Moshe Shemesh Message-ID: Date: Sun, 4 Oct 2020 09:42:47 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201003075100.GC3159@nanopsycho.orion> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601793766; bh=3f7ocMFDJGTXvJfoe+Ta4bX4ElhSzZUOdZHzS8aX3YE=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding: Content-Language:X-Originating-IP:X-ClientProxiedBy; b=keJ8HCRa6vbiWsfMsxMl8G3Qnll75cRUj+ASpcGL6P8MZzA/K9AbRPLZJn8TR39VS wtDidiGt9ZBDDthhw/sG7ehpYCk4CjUqRLvV62qB0zw/E+Pr2VttE0AFaItLw00Mlk vc1nSHQZ0hL97msUeh5/qPg37Ouie5lbVMS3kHbCkr5jLnBvrcK5VwZj84rK09DHrP IMBeNpF98frICHzfBAo0troXigwmrFdlqyBWnKuNcGOerHiToP1cdfcZKYfDsiKIEF xyCYQJvP1qzsPv9RsbCRUQWUUYkR9CYCQoNvCM0q3UD4JyslkQRjdB++WLGGmV+wkw J8R9Xkn20RaQw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/3/2020 10:51 AM, Jiri Pirko wrote: > Thu, Oct 01, 2020 at 03:59:06PM CEST, moshe@mellanox.com wrote: > > [...] > >> enum devlink_attr { >> /* don't change the order or add anything between, this is ABI! */ >> DEVLINK_ATTR_UNSPEC, >> @@ -507,6 +524,7 @@ enum devlink_attr { >> >> DEVLINK_ATTR_RELOAD_ACTION, /* u8 */ >> DEVLINK_ATTR_RELOAD_ACTIONS_PERFORMED, /* u64 */ >> + DEVLINK_ATTR_RELOAD_LIMIT, /* u8 */ > Hmm, why there could be specified only single "limit"? I believe this > should be a bitfield. Same for the internal api to the driver. Why bitfield ? Either the user asks for a specific limit or he doesn't ask for any (unspecified). If the user doesn't need limitation he will not specify a limit. > [...]