Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2472893pxk; Sun, 4 Oct 2020 00:21:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyTrjf7kwd3/D54SpLWtuX97Q70PUdHGsx8n9PlDjAiL9rs+BwpiXbdNuNhWXbrqYQPHAs X-Received: by 2002:a17:906:a282:: with SMTP id i2mr9641954ejz.39.1601796100167; Sun, 04 Oct 2020 00:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601796100; cv=none; d=google.com; s=arc-20160816; b=uTOBrx4T7OdNiaCrDc0QcnAptHXbpBsbm5GP89cW4MVtm0F5y8dxxhjA9KEj+COW3c jdru9l9qc9OAmT4TpYVBZQouifQV4BVWTajg/M17NbQfh3CebEaasxalg6bX2k3RqKeE eBoFIITHDZOhVBEQUL/mHyncOvn0ex/hWPdnHaoqRANJTdtNwQywmHPZRFMVWQyzuSmU girHNMh5Z2vjXaomuT9K4RDksR5ZDprAhghjDLjovaNOJh8Gb3oUCee3T74F3VKt07do 5L9qWIOmWRxrE00ClRUfwNqv+qC68q5EGIo3EVzoyBfN8nOABi7FLfXo6RCUT6Oj2Elf 7ozQ== 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=ohvtIRryN1zqM/5y/NLdA3n4okfaM02PHrUQ5xzLOpA=; b=j+gXWP414f4hySuz58vVpcyePrflMwyUJmg/K6QyklO58c56Uz1NK0AgY3HqqTR19m c6DIbF+18DJC2GT0s9pzr5tq4PZ24534GRLQu8zNvvo/8DYDDvb0kwYlkHpJS8sXywo6 X23f06YS0igarzex4vb4LLzUwTiaaRXLpDykAI2ljKgny+XsUMhMGGdpgsNNdqpiBaOx yIRa5znLDw3tJP1AKmkaz/MvssNJQMCKAXkoBDlIJEDdE3IdRb/V8NfgPefEm39LhfTu 5YCS5S+q2SiOi6RAe315Cd1EdBKmbTeh40yRooZarFY8uayAKoPVeCvgsZxW5BlBSjDe 2UjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=phne8JUY; 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 v27si1884450ejq.250.2020.10.04.00.21.17; Sun, 04 Oct 2020 00:21:40 -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=phne8JUY; 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 S1725867AbgJDHSZ (ORCPT + 99 others); Sun, 4 Oct 2020 03:18:25 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:8682 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgJDHSZ (ORCPT ); Sun, 4 Oct 2020 03:18:25 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 04 Oct 2020 00:17:31 -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 07:18:15 +0000 Subject: Re: [PATCH net-next 03/16] devlink: Add devlink reload limit option To: Jakub Kicinski , Jiri Pirko CC: Moshe Shemesh , "David S. Miller" , 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> <20201003080436.40cd8eb5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Moshe Shemesh Message-ID: <62b6436c-5f12-8362-b10f-3b19f913e08a@nvidia.com> Date: Sun, 4 Oct 2020 10:18:11 +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: <20201003080436.40cd8eb5@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> 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=1601795851; bh=ohvtIRryN1zqM/5y/NLdA3n4okfaM02PHrUQ5xzLOpA=; 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=phne8JUY+Ba311sQJ194bnAHtbO7HikyzBYSwY16YfKlxoWCVrHITLzSmy8JVRES9 QYw+0wiCJLOyp8YbNNVifEaWdFEsOXN/8dgY2Ui0gJwGAoMgaaBe3VolBmtsFMR4iB TQuapQBEZJSNdwchwPf8BMkGeVWeXvoGJHN8Bcz0d2ygNRqvLjMAXfjnFKAZpvyZnD 1Yf0aLA/nmaJDmCSD9/tJMkAiRmh4dflTPWkFLLU+faPDzoFehBOUEl5cLK51EtVJc RJi77DXSWJHyX15G+FZnFIwQcM5oTleNWbCueJ0rbHzQ3DaDVJaT6mNxt4HfQlQHQL 2fMrBEDAtFH5A== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/3/2020 6:04 PM, Jakub Kicinski wrote: > External email: Use caution opening links or attachments > > > 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. Didn't know this tool, but I will. Thanks.