[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6b284a02-15e2-4eba-9d5f-870a8baa08e8@web.de>
Date: Mon, 17 Jun 2024 12:07:48 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Justin Lai <justinlai0215@...ltek.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Andrew Lunn <andrew@...n.ch>,
Hariprasad Kelam <hkelam@...vell.com>, Jiri Pirko <jiri@...nulli.us>,
Larry Chiu <larry.chiu@...ltek.com>, Ping-Ke Shih <pkshih@...ltek.com>,
Ratheesh Kannoth <rkannoth@...vell.com>
Subject: Re: [v20 02/13] rtase: Implement the .ndo_open function
>> How do you think about to increase the application of scope-based resource management?
>> https://elixir.bootlin.com/linux/v6.10-rc3/source/include/linux/cleanup.h#L8
>
> Due to our tx and rx each having multiple queues that need to
> allocate descriptors, if any one of the queues fails to allocate,
> rtase_alloc_desc() will return an error. Therefore, using 'goto'
> here rather than directly returning seems to be reasonable.
Some goto chains can be replaced by further usage of advanced cleanup techniques,
can't they?
Regards,
Markus
Powered by blists - more mailing lists