Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files

From: Jiri Pirko

Date: Thu Dec 03 2026 - 04:29:49 EST


Wed, Dec 02, 2026 at 03:28:10PM +0100, jgg@xxxxxxxxxx wrote:
>On Wed, Dec 02, 2026 at 03:01:58PM +0100, Jiri Pirko wrote:

[..]

>> >> >Just to be clear about exactly what is being extracted from
>> >> >hash_algo.. It is the total number of entries, not the maximum value
>> >> >or something else.
>> >>
>> >> I already have this changed in my work tree as:
>> >> "supported-hash-algorithms[enum hash-algo]: enum hash-algo". I think it
>> >> is enough, what do you think?
>> >
>> >I still look at it and wonder what value is inside the [], max value
>> >or total number? Here we want total number
>> >
>> >The enum is certainly helpful though
>>
>> the docs define it as "up to once per value of the enum". So it is the
>> number of values,n ever the highest one.
>
>I guess my point is it should be clear enough without having to
>consult the documentation. IMHO this YAML is not a good place to trade
>succinctness for readability.

Okay, will change this to:
supported-hash-algorithms[num_entries(enum hash-algo)]: hash-algo