From 9f9f3e6e8548a596697778337110a423c384b6f3 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 7 Mar 2000 15:45:24 +0000 Subject: Merge with Linux 2.3.49. --- drivers/net/Space.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'drivers/net/Space.c') diff --git a/drivers/net/Space.c b/drivers/net/Space.c index d497f72d5..bccd82b04 100644 --- a/drivers/net/Space.c +++ b/drivers/net/Space.c @@ -681,6 +681,15 @@ static struct net_device tr0_dev = { -struct net_device *dev_base = NEXT_DEV; +/* + * The loopback device is global so it can be directly referenced + * by the network code. Also, it must be first on device list. + */ + +extern int loopback_init(struct net_device *dev); +struct net_device loopback_dev = + {"lo", 0, 0, 0, 0, 0, 0, 0, 0, 0, NEXT_DEV, loopback_init}; + +struct net_device *dev_base = &loopback_dev; rwlock_t dev_base_lock = RW_LOCK_UNLOCKED; -- cgit v1.2.3