Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25836
b: refs/heads/master
c: 2d90739
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Apr 14, 2006
1 parent 169d864 commit a5b23a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3a0592b37b83e56a7f47826f552b35a2c3b2fc9
refs/heads/master: 2d9073922bc73f8cb847ce354f0896205f6981a1
16 changes: 5 additions & 11 deletions trunk/net/atm/clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ static struct net_device *clip_devs;
static struct atm_vcc *atmarpd;
static struct neigh_table clip_tbl;
static struct timer_list idle_timer;
static int start_timer = 1;


static int to_atmarpd(enum atmarp_ctrl_type type,int itf,unsigned long ip)
{
Expand Down Expand Up @@ -725,13 +723,8 @@ static int atm_init_atmarp(struct atm_vcc *vcc)
return -EADDRINUSE;
}

if (start_timer) {
start_timer = 0;
init_timer(&idle_timer);
idle_timer.expires = jiffies+CLIP_CHECK_INTERVAL*HZ;
idle_timer.function = idle_timer_check;
add_timer(&idle_timer);
}
mod_timer(&idle_timer, jiffies+CLIP_CHECK_INTERVAL*HZ);

atmarpd = vcc;
set_bit(ATM_VF_META,&vcc->flags);
set_bit(ATM_VF_READY,&vcc->flags);
Expand Down Expand Up @@ -1002,6 +995,8 @@ static int __init atm_clip_init(void)
register_netdevice_notifier(&clip_dev_notifier);
register_inetaddr_notifier(&clip_inet_notifier);

setup_timer(&idle_timer, idle_timer_check, 0);

#ifdef CONFIG_PROC_FS
{
struct proc_dir_entry *p;
Expand Down Expand Up @@ -1029,8 +1024,7 @@ static void __exit atm_clip_exit(void)
/* First, stop the idle timer, so it stops banging
* on the table.
*/
if (start_timer == 0)
del_timer(&idle_timer);
del_timer_sync(&idle_timer);

/* Next, purge the table, so that the device
* unregister loop below does not hang due to
Expand Down

0 comments on commit a5b23a1

Please sign in to comment.