patch-2.2.5 linux/net/ipv4/route.c

Next file: linux/net/ipv4/tcp_ipv4.c
Previous file: linux/net/ipv4/ipmr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.4/linux/net/ipv4/route.c linux/net/ipv4/route.c
@@ -5,7 +5,7 @@
  *
  *		ROUTE - implementation of the IP router.
  *
- * Version:	$Id: route.c,v 1.64 1999/03/23 21:21:13 davem Exp $
+ * Version:	$Id: route.c,v 1.65 1999/03/25 10:04:35 davem Exp $
  *
  * Authors:	Ross Biro, <bir7@leland.Stanford.Edu>
  *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
@@ -338,11 +338,11 @@
 
 	rt_deadline = 0;
 
-	net_serialize_enter();
+	start_bh_atomic();
 	for (i=0; i<RT_HASH_DIVISOR; i++) {
 		if ((rth = xchg(&rt_hash_table[i], NULL)) == NULL)
 			continue;
-		net_serialize_leave();
+		end_bh_atomic();
 
 		for (; rth; rth=next) {
 			next = rth->u.rt_next;
@@ -350,9 +350,9 @@
 			rt_free(rth);
 		}
 
-		net_serialize_enter();
+		start_bh_atomic();
 	}
-	net_serialize_leave();
+	end_bh_atomic();
 }
   
 void rt_cache_flush(int delay)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)