aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-11-08 01:52:14 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-08 01:52:14 -0500
commit3d8160b1493bcadca74fbb635d79b3928b8999cf (patch)
tree901a01cd2170f4eddaba38e05b17683acb9cc0de /net/core/dev.c
parent167c6274c30d17c41742096d1a12c32bd3b7e366 (diff)
Revert "net: Guaranetee the proper ordering of the loopback device."
This reverts commit ae33bc40c0d96d02f51a996482ea7e41c5152695.
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index e0dc67a789b7..2306d56fbb5e 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4909,18 +4909,6 @@ static int __init net_dev_init(void)
4909 if (register_pernet_subsys(&netdev_net_ops)) 4909 if (register_pernet_subsys(&netdev_net_ops))
4910 goto out; 4910 goto out;
4911 4911
4912 /* The loopback device is special if any other network devices
4913 * is present in a network namespace the loopback device must
4914 * be present. Since we now dynamically allocate and free the
4915 * loopback device ensure this invariant is maintained by
4916 * keeping the loopback device as the first device on the
4917 * list of network devices. Ensuring the loopback devices
4918 * is the first device that appears and the last network device
4919 * that disappears.
4920 */
4921 if (register_pernet_device(&loopback_net_ops))
4922 goto out;
4923
4924 if (register_pernet_device(&default_device_ops)) 4912 if (register_pernet_device(&default_device_ops))
4925 goto out; 4913 goto out;
4926 4914