diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-09-09 05:05:04 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-09-09 05:05:04 +0000 |
commit | a954869b1da55349ce3de83df3f8a8ec0334b767 (patch) | |
tree | 1d2fe2f1d4dc617e0833a6180b127e4eeb8892bc /pfinet/ethernet.c | |
parent | 45a569132f7b3d9c5ae0080908491baf525fa511 (diff) |
1999-09-09 Thomas Bushnell, BSG <tb@mit.edu>
* ethernet.c (ethernet_open): Don't start the input work thread
here.
(more_packets, mark_bh, input_work_thread): Move
these to ...
* devices.c: ... here.
Also include "pfinet.h" instead of list of <> includes.
* main.c (main): Launch input work thread here.
* pfinet.h (input_work_thread): Declare function.
* devices.c (add_device): Remove unused function.
* pfinet.h (incoming_net_packet): Remove unused declaration.
Diffstat (limited to 'pfinet/ethernet.c')
-rw-r--r-- | pfinet/ethernet.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/pfinet/ethernet.c b/pfinet/ethernet.c index b79563ab..85162fd8 100644 --- a/pfinet/ethernet.c +++ b/pfinet/ethernet.c @@ -38,7 +38,6 @@ struct device ether_dev; struct enet_statistics retbuf; -static struct condition more_packets = CONDITION_INITIALIZER; /* Mach doesn't provide this. DAMN. */ struct enet_statistics * @@ -68,11 +67,6 @@ static int ether_filter_len = sizeof (ether_filter) / sizeof (short); static struct port_bucket *etherport_bucket; -void -mark_bh (int arg) -{ - condition_broadcast (&more_packets); -} any_t ethernet_thread (any_t arg) @@ -122,16 +116,6 @@ ethernet_demuxer (mach_msg_header_t *inp, return 1; } -any_t -input_work_thread (any_t arg) -{ - mutex_lock (&global_lock); - for (;;) - { - condition_wait (&more_packets, &global_lock); - net_bh (0); - } -} int ethernet_open (struct device *dev) @@ -161,7 +145,6 @@ ethernet_open (struct device *dev) if (err) error (2, err, "%s", dev->name); cthread_detach (cthread_fork (ethernet_thread, 0)); - cthread_detach (cthread_fork (input_work_thread, 0)); return 0; } |