Skip to content

Commit

Permalink
[NET]: Proper comment for loopback initialization order.
Browse files Browse the repository at this point in the history
Loopback device is special. It should be initialized at the very
beginning.  Initialization order has been changed by
Eric W. Biederman <ebiederm@xmission.com> and this change is non-obvious
and important enough to add proper comment.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Oct 10, 2007
1 parent f4618d3 commit 070ac3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,4 +293,7 @@ static int __init loopback_init(void)
return register_pernet_device(&loopback_net_ops);
}

/* Loopback is special. It should be initialized before any other network
* device and network subsystem.
*/
fs_initcall(loopback_init);

0 comments on commit 070ac3a

Please sign in to comment.