OpenVZ Forum


Home » Mailing lists » Devel » [PATCH][NETNS] Use list_for_each_entry_continue_reverse in setup_net
Re: [PATCH][NETNS] Use list_for_each_entry_continue_reverse in setup_net [message #20274 is a reply to message #20253] Fri, 14 September 2007 12:49 Go to previous messageGo to previous message
Stephen Hemminger is currently offline  Stephen Hemminger
Messages: 37
Registered: August 2006
Member
On Fri, 14 Sep 2007 11:39:32 +0400
Pavel Emelyanov <xemul@openvz.org> wrote:

> I proposed introducing a list_for_each_entry_continue_reverse
> macro to be used in setup_net() when unrolling the failed
> ->init callback.
> 
> Here is the macro and some more cleanup in the setup_net() itself
> to remove one variable from the stack :) Minor, but the code
> looks nicer.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Maybe it is time to just eliminate the init hook from the API.
It has very few users, and there is no reason the setup needed
could be done before or after registering in most cases.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Network Namespace status
Next Topic: [NETNS45][PATCH 1/1] Fix network namespace unshare support.
Goto Forum:
  


Current Time: Thu Aug 21 06:13:25 GMT 2025

Total time taken to generate the page: 0.05966 seconds