patch-2.2.4 linux/net/ipv4/ip_forward.c

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

diff -u --recursive --new-file v2.2.3/linux/net/ipv4/ip_forward.c linux/net/ipv4/ip_forward.c
@@ -5,7 +5,7 @@
  *
  *		The IP forwarding functionality.
  *		
- * Version:	$Id: ip_forward.c,v 1.42 1998/10/03 09:37:19 davem Exp $
+ * Version:	$Id: ip_forward.c,v 1.43 1999/03/21 05:22:37 davem Exp $
  *
  * Authors:	see ip.c
  *
@@ -260,7 +260,7 @@
 		if (rt->rt_flags&RTCF_FAST && !netdev_fastroute_obstacles) {
 			unsigned h = ((*(u8*)&rt->key.dst)^(*(u8*)&rt->key.src))&NETDEV_FASTROUTE_HMASK;
 			/* Time to switch to functional programming :-) */
-			dst_release(xchg(&skb->dev->fastpath[h], dst_clone(&rt->u.dst)));
+			dst_release_irqwait(xchg(&skb->dev->fastpath[h], dst_clone(&rt->u.dst)));
 		}
 #endif
 		ip_send(skb);

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