patch-2.3.35 linux/net/core/dev.c
Next file: linux/net/core/skbuff.c
Previous file: linux/net/bridge/br_tree.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Thu Dec 23 00:08:44 1999
- Orig file:
v2.3.34/linux/net/core/dev.c
- Orig date:
Mon Dec 20 18:48:22 1999
diff -u --recursive --new-file v2.3.34/linux/net/core/dev.c linux/net/core/dev.c
@@ -55,7 +55,7 @@
* Adam Sulmicki : Bug Fix : Network Device Unload
* A network device unload needs to purge
* the backlog queue.
- * Paul Rusty Russel : SIOCSIFNAME
+ * Paul Rusty Russell : SIOCSIFNAME
*/
#include <asm/uaccess.h>
@@ -860,7 +860,11 @@
#ifdef CONFIG_BRIDGE
static inline void handle_bridge(struct sk_buff *skb, unsigned short type)
{
- if (br_stats.flags & BR_UP && br_protocol_ok(ntohs(type)))
+ /*
+ * The br_stats.flags is checked here to save the expense of a
+ * function call.
+ */
+ if ((br_stats.flags & BR_UP) && br_call_bridge(skb, type))
{
/*
* We pass the bridge a complete frame. This means
@@ -884,7 +888,6 @@
}
#endif
-
/*
* When we are called the queue is ready to grab, the interrupts are
* on and hardware can interrupt and queue to the receive queue as we
@@ -2094,6 +2097,13 @@
dst_init();
dev_mcast_init();
+
+#ifdef CONFIG_BRIDGE
+ /*
+ * Register any statically linked ethernet devices with the bridge
+ */
+ br_spacedevice_register();
+#endif
/*
* Initialise network devices
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)