From c402dc0d3e123f784d01888d89f20e57da8bc53d Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Wed, 26 Jul 2000 17:47:20 +0000 Subject: * linux-src/net/core/dev.c (net_bh) [_HURD_]: Leave out the code that gives other bottom halves a chance to run; the network bottom half is the only one present in pfinet. --- pfinet/linux-src/net/core/dev.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pfinet/linux-src/net') diff --git a/pfinet/linux-src/net/core/dev.c b/pfinet/linux-src/net/core/dev.c index 7175dec6..aaee35a2 100644 --- a/pfinet/linux-src/net/core/dev.c +++ b/pfinet/linux-src/net/core/dev.c @@ -837,6 +837,7 @@ void net_bh(void) struct packet_type *ptype; struct packet_type *pt_prev; unsigned short type; +#ifndef _HURD_ unsigned long start_time = jiffies; #ifdef CONFIG_CPU_IS_SLOW static unsigned long start_busy = 0; @@ -845,6 +846,7 @@ void net_bh(void) if (start_busy == 0) start_busy = start_time; net_cpu_congestion = ave_busy>>8; +#endif #endif NET_PROFILE_ENTER(net_bh); @@ -876,15 +878,18 @@ void net_bh(void) { struct sk_buff * skb; +#ifndef _HURD_ /* Give chance to other bottom halves to run */ if (jiffies - start_time > 1) goto net_bh_break; +#endif /* * We have a packet. Therefore the queue has shrunk */ skb = skb_dequeue(&backlog); +#ifndef _HURD_ #ifdef CONFIG_CPU_IS_SLOW if (ave_busy > 128*16) { kfree_skb(skb); @@ -893,6 +898,7 @@ void net_bh(void) break; } #endif +#endif #if 0 @@ -1009,6 +1015,7 @@ void net_bh(void) if (qdisc_head.forw != &qdisc_head) qdisc_run_queues(); +#ifndef _HURD_ #ifdef CONFIG_CPU_IS_SLOW if (1) { unsigned long start_idle = jiffies; @@ -1016,6 +1023,7 @@ void net_bh(void) start_busy = 0; } #endif +#endif #ifdef CONFIG_NET_HW_FLOWCONTROL if (netdev_dropping) netdev_wakeup(); @@ -1025,10 +1033,12 @@ void net_bh(void) NET_PROFILE_LEAVE(net_bh); return; +#ifndef _HURD_ net_bh_break: mark_bh(NET_BH); NET_PROFILE_LEAVE(net_bh); return; +#endif } /* Protocol dependent address dumping routines */ -- cgit v1.2.3