summaryrefslogtreecommitdiffstats
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
authorMichael Brown2007-05-26 17:00:56 +0200
committerMichael Brown2007-05-26 17:00:56 +0200
commit360110338147844bfa4612ae2d6351f1d1054626 (patch)
tree2bee0111a128e36f3f958f0a19c311ec1cc1b912 /src/net/netdevice.c
parentFree I/O buffers when we are finished with them! (diff)
downloadipxe-360110338147844bfa4612ae2d6351f1d1054626.tar.gz
ipxe-360110338147844bfa4612ae2d6351f1d1054626.tar.xz
ipxe-360110338147844bfa4612ae2d6351f1d1054626.zip
Modify process semantics; rescheduling is now automatic.
Add reference-counting to processes. Add timer_running() test.
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r--src/net/netdevice.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index c1ad5f68..ddcb296f 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -388,7 +388,7 @@ int net_rx ( struct io_buffer *iobuf, struct net_device *netdev,
* This polls all interfaces for received packets, and processes
* packets from the RX queue.
*/
-static void net_step ( struct process *process ) {
+static void net_step ( struct process *process __unused ) {
struct net_device *netdev;
struct io_buffer *iobuf;
@@ -410,9 +410,6 @@ static void net_step ( struct process *process ) {
netdev->ll_protocol->rx ( iobuf, netdev );
}
}
-
- /* Re-schedule ourself */
- schedule ( process );
}
/** Networking stack process */
@@ -422,7 +419,7 @@ static struct process net_process = {
/** Initialise the networking stack process */
static void init_net ( void ) {
- schedule ( &net_process );
+ process_add ( &net_process );
}
INIT_FN ( INIT_PROCESS, init_net, NULL, NULL );