Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2098493pxk; Sat, 3 Oct 2020 08:06:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7QXw0lDptFl7Q+oym/9Dp+AjXayfO8+MOevU94gNI4Ox1CJELh2bTt/PmI7l3ky63Zx2F X-Received: by 2002:a17:906:6855:: with SMTP id a21mr6794793ejs.289.1601737568752; Sat, 03 Oct 2020 08:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601737568; cv=none; d=google.com; s=arc-20160816; b=MIFYL7j3yIIiB+xdPka77PhUM+iVNmEkU8kPhTENsDvfOxie7Mvn2qiboqer5tzHQV 79Gj9nbWByQ/E/vldBk8HuGVpGiJE79WXRUixDfbbzPZfASp/tnfXlr7/yWrmfyN/Hce S/AzyKp4JSIM46DsKa6tOXKvjO7OaGcJg3/Ou4mA3A563cy9z9xTxdKrH8RAIGksBqSr 3yuluP2uVWUAEqSbPeiYuWcud+jpYWwhKfJNGDVgBszj4koU3pLpUj2e8OvPkFdZbikA Cv4b4WolPEnjkg4v7bq8YzrcW1iZ5WsoPec4pUD/0xrp1FY0L2KwIZWaaHdo+v2/Adzc 3ISQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=huFryKLfvRWwkNe6PYotPrzGSciN+fWXdZ08ZzHAgTg=; b=m7yW52+ONXdzTxxGbiapMCcXNIW+pCaqjT2pfLmrCu6nJDlsaHr2D67Zjkv33Lxk/c 0So1OaV7cXSfLizLeEmstox8JeKkWRUQp/ecdOY56GZy0ffj6ssNcL8+zt4ZR22COadR 7kSMymGjiSMLFp1eZ1KQlv7cQOiV731HV0h7y/+hIxYB/vR6JqSB+wzy/CbZWbtXVMDO bY6w93vmAvWQMn3LKL+jJ0WBN/qI+kb98VmX5fOQ0TCEhwxiviBGZjvnZdDfva4HYgu9 pxJF3swytIKSFIUp4yMbjXwhTM/qRv0j68vyTd+JkeZmdTg0YVuHI7byiduZkTsTrety OSFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=snHH6g4Y; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si3566744edr.352.2020.10.03.08.05.45; Sat, 03 Oct 2020 08:06: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=@kernel.org header.s=default header.b=snHH6g4Y; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725804AbgJCPEi (ORCPT + 99 others); Sat, 3 Oct 2020 11:04:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:56512 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgJCPEi (ORCPT ); Sat, 3 Oct 2020 11:04:38 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (c-67-180-217-166.hsd1.ca.comcast.net [67.180.217.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BDEA8206B8; Sat, 3 Oct 2020 15:04:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601737478; bh=mYMOEMj8bE6Mnms4S5xjwsT+ei8YeSpI0eJUCZu5mCA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=snHH6g4Y5n3I4rE75V2ohwiXIqOQTnPiXt+WHVQZ+Y1sCaKIWkRyyNqSdindkyNsn cwwRuT6IyeLUrKvexUVnUIPQSywWxB+Ev7PraRxIMTxpc7XRQ32SKb6mYzbDBbya6Q A3TiKIL5+UjiNCRD5F7lOAh1uhUGU+H3Qs5Bge4k= Date: Sat, 3 Oct 2020 08:04:36 -0700 From: Jakub Kicinski To: Jiri Pirko Cc: Moshe Shemesh , "David S. Miller" , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 03/16] devlink: Add devlink reload limit option Message-ID: <20201003080436.40cd8eb5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20201003075100.GC3159@nanopsycho.orion> References: <1601560759-11030-1-git-send-email-moshe@mellanox.com> <1601560759-11030-4-git-send-email-moshe@mellanox.com> <20201003075100.GC3159@nanopsycho.orion> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Oct 2020 09:51:00 +0200 Jiri Pirko 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. Hm I was expecting limits to be ordered (in maths sense) but you're right perhaps that can't be always guaranteed. Also - Moshe please double check that there will not be any kdoc warnings here - I just learned that W=1 builds don't check headers but I'll fix up my bot by the time you post v2.