[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y4cY1DIKYkwLA8ul@nanopsycho>
Date: Wed, 30 Nov 2022 09:48:20 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, davem@...emloft.net, pabeni@...hat.com,
edumazet@...gle.com
Subject: Re: [patch net-next v2] net: devlink: convert port_list into xarray
Wed, Nov 30, 2022 at 06:27:36AM CET, kuba@...nel.org wrote:
>On Mon, 28 Nov 2022 12:08:03 +0100 Jiri Pirko wrote:
>> @@ -9903,9 +9896,9 @@ void devlink_free(struct devlink *devlink)
>> WARN_ON(!list_empty(&devlink->sb_list));
>> WARN_ON(!list_empty(&devlink->rate_list));
>> WARN_ON(!list_empty(&devlink->linecard_list));
>> - WARN_ON(!list_empty(&devlink->port_list));
>>
>> xa_destroy(&devlink->snapshot_ids);
>> + xa_destroy(&devlink->ports);
>
>Will it warn if not empty? Should we keep the warning ?
I don't think so.
Will add the warning in next V.
Powered by blists - more mailing lists