[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fozccqzcqh4ihgtnvio3y3m73vwxorcszunwqlphexxjq6lqnf@4nphkotznath>
Date: Sun, 4 May 2025 20:25:08 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, davem@...emloft.net, edumazet@...gle.com,
pabeni@...hat.com, saeedm@...dia.com, horms@...nel.org, donald.hunter@...il.com
Subject: Re: [PATCH net-next 3/5] devlink: define enum for attr types of
dynamic attributes
Sat, May 03, 2025 at 03:46:04AM +0200, kuba@...nel.org wrote:
>On Fri, 2 May 2025 13:38:19 +0200 Jiri Pirko wrote:
>> +/**
>> + * enum devlink_var_attr_type - Variable attribute type.
>> + */
>
>If we want this to be a kdoc it needs to document all values.
>Same as a struct kdoc needs to document all values.
>Not sure if there's much to say here for each value, so a non-kdoc
>comment is probably better?
Okay.
>
>I think I already mentioned this generates a build warning..
Did not see. Any. Will check.
>
>> +enum devlink_var_attr_type {
>> + /* Following values relate to the internal NLA_* values */
>> + DEVLINK_VAR_ATTR_TYPE_U8 = 1,
>> + DEVLINK_VAR_ATTR_TYPE_U16,
>> + DEVLINK_VAR_ATTR_TYPE_U32,
>> + DEVLINK_VAR_ATTR_TYPE_U64,
>> + DEVLINK_VAR_ATTR_TYPE_STRING,
>> + DEVLINK_VAR_ATTR_TYPE_FLAG,
>> + DEVLINK_VAR_ATTR_TYPE_NUL_STRING = 10,
>> + DEVLINK_VAR_ATTR_TYPE_BINARY,
>> + __DEVLINK_VAR_ATTR_TYPE_CUSTOM_BASE = 0x80,
>> + /* Any possible custom types, unrelated to NLA_* values go below */
>> +};
Powered by blists - more mailing lists