diff options
author | Jay Vosburgh <fubar@us.ibm.com> | 2007-10-17 20:37:45 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-23 20:32:00 -0400 |
commit | 1b76b31693d4a6088dec104ff6a6ead54081a3c2 (patch) | |
tree | d6353be6b4654ec85ab6cfe42d2c78fac9a755c8 /drivers/net/bonding/bonding.h | |
parent | 15df5806c6fc94e607632bba70328194905e988f (diff) |
Convert bonding timers to workqueues
Convert bonding timers to workqueues. This converts the various
monitor functions to run in periodic work queues instead of timers. This
patch introduces the framework and convers the calls, but does not resolve
various locking issues, and does not stand alone.
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r-- | drivers/net/bonding/bonding.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index b8180600a309..a8f2384f550d 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h | |||
@@ -184,8 +184,6 @@ struct bonding { | |||
184 | s32 slave_cnt; /* never change this value outside the attach/detach wrappers */ | 184 | s32 slave_cnt; /* never change this value outside the attach/detach wrappers */ |
185 | rwlock_t lock; | 185 | rwlock_t lock; |
186 | rwlock_t curr_slave_lock; | 186 | rwlock_t curr_slave_lock; |
187 | struct timer_list mii_timer; | ||
188 | struct timer_list arp_timer; | ||
189 | s8 kill_timers; | 187 | s8 kill_timers; |
190 | s8 send_grat_arp; | 188 | s8 send_grat_arp; |
191 | s8 setup_by_slave; | 189 | s8 setup_by_slave; |
@@ -205,6 +203,11 @@ struct bonding { | |||
205 | struct list_head vlan_list; | 203 | struct list_head vlan_list; |
206 | struct vlan_group *vlgrp; | 204 | struct vlan_group *vlgrp; |
207 | struct packet_type arp_mon_pt; | 205 | struct packet_type arp_mon_pt; |
206 | struct workqueue_struct *wq; | ||
207 | struct delayed_work mii_work; | ||
208 | struct delayed_work arp_work; | ||
209 | struct delayed_work alb_work; | ||
210 | struct delayed_work ad_work; | ||
208 | }; | 211 | }; |
209 | 212 | ||
210 | /** | 213 | /** |
@@ -307,9 +310,9 @@ int bond_create_slave_symlinks(struct net_device *master, struct net_device *sla | |||
307 | void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave); | 310 | void bond_destroy_slave_symlinks(struct net_device *master, struct net_device *slave); |
308 | int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev); | 311 | int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev); |
309 | int bond_release(struct net_device *bond_dev, struct net_device *slave_dev); | 312 | int bond_release(struct net_device *bond_dev, struct net_device *slave_dev); |
310 | void bond_mii_monitor(struct net_device *bond_dev); | 313 | void bond_mii_monitor(struct work_struct *); |
311 | void bond_loadbalance_arp_mon(struct net_device *bond_dev); | 314 | void bond_loadbalance_arp_mon(struct work_struct *); |
312 | void bond_activebackup_arp_mon(struct net_device *bond_dev); | 315 | void bond_activebackup_arp_mon(struct work_struct *); |
313 | void bond_set_mode_ops(struct bonding *bond, int mode); | 316 | void bond_set_mode_ops(struct bonding *bond, int mode); |
314 | int bond_parse_parm(char *mode_arg, struct bond_parm_tbl *tbl); | 317 | int bond_parse_parm(char *mode_arg, struct bond_parm_tbl *tbl); |
315 | void bond_select_active_slave(struct bonding *bond); | 318 | void bond_select_active_slave(struct bonding *bond); |