Subject: Re: [PATCH][NETNS] Use list_for_each_entry_continue_reverse in setup_net

From: Stephen Hemminger <[email-masked]>
Date: Fri, 14 Sep 2007 14:49:38 +0200

On Fri, 14 Sep 2007 11:39:32 +0400
Pavel Emelyanov <[email-masked]> 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 <[email-masked]>

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.