[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3631cc77-6866-904b-e256-0d66af44fcc8@6wind.com>
Date: Fri, 4 Nov 2022 23:28:13 +0100
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, jiri@...nulli.us, razor@...ckwall.org,
gnault@...hat.com, jacob.e.keller@...el.com, fw@...len.de
Subject: Re: [PATCH net-next v2 12/13] genetlink: allow families to use split
ops directly
Le 04/11/2022 à 23:19, Jakub Kicinski a écrit :
> On Fri, 4 Nov 2022 23:10:57 +0100 Nicolas Dichtel wrote:
>>> + /* Check sort order */
>>> + if (a->cmd < b->cmd)
>>> + continue;
>> If I understand correctly, the goal of the below checks, between a and b, is to
>> enforce flags consitency between the do and the dump.
>> Does this work if the cmds in the struct genl_split_ops are declared randomly (
>> ie the do and the dump are separated by another cmd)?
>
> I'm trying to go further and enforce sort order as weel (see comment
> above the check), so that we can use binary search if we ever get to
> a large enough family for it to matter.
Ok, thanks for the details. TBH, the comment before the check confuses me, I
read it as an explanation of the check, not like a TODO ;-)
Powered by blists - more mailing lists