patch-2.1.36 linux/net/ipv4/arp.c
Next file: linux/net/ipv4/fib.c
Previous file: linux/net/ethernet/eth.c
Back to the patch index
Back to the overall index
- Lines: 69
- Date:
Thu Apr 17 13:20:52 1997
- Orig file:
v2.1.35/linux/net/ipv4/arp.c
- Orig date:
Mon Apr 14 16:28:27 1997
diff -u --recursive --new-file v2.1.35/linux/net/ipv4/arp.c linux/net/ipv4/arp.c
@@ -230,13 +230,6 @@
int sysctl_arp_dead_res_time = ARP_DEAD_RES_TIME;
-/* This should be completely nuked... -DaveM */
-#if RT_CACHE_DEBUG >= 1
-#define ASSERT_BH() if (!in_interrupt()) printk(KERN_CRIT __FUNCTION__ " called from SPL=0\n");
-#else
-#define ASSERT_BH()
-#endif
-
static void arp_neigh_destroy(struct neighbour *neigh);
/*
@@ -251,8 +244,8 @@
};
-static atomic_t arp_size = ATOMIC_INIT;
-static atomic_t arp_unres_size = ATOMIC_INIT;
+static atomic_t arp_size = ATOMIC_INIT(0);
+static atomic_t arp_unres_size = ATOMIC_INIT(0);
#ifdef CONFIG_ARPD
static int arpd_not_running;
@@ -340,12 +333,9 @@
{
struct sk_buff *skb;
- ASSERT_BH();
-
/* Release the list of `skb' pointers. */
while ((skb = skb_dequeue(&entry->u.neigh.arp_queue)) != NULL)
kfree_skb(skb, FREE_WRITE);
- return;
}
static void arp_free(struct arp_table **entryp)
@@ -353,8 +343,6 @@
struct arp_table *entry = *entryp;
*entryp = entry->u.next;
- ASSERT_BH();
-
if (!(entry->flags&ATF_PUBL)) {
atomic_dec(&arp_size);
if (!(entry->flags&ATF_COM))
@@ -373,8 +361,6 @@
struct arp_table *entry = (struct arp_table*)neigh;
struct hh_cache *hh, *next;
- ASSERT_BH();
-
del_timer(&entry->timer);
arp_purge_send_q(entry);
@@ -877,11 +863,8 @@
{
struct sk_buff *skb;
- ASSERT_BH();
-
- while((skb = skb_dequeue(&entry->u.neigh.arp_queue)) != NULL) {
+ while((skb = skb_dequeue(&entry->u.neigh.arp_queue)) != NULL)
dev_queue_xmit(skb);
- }
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov