parent
bd8e1e6430
commit
1f6e261bd4
6
tr.c
6
tr.c
|
@ -40,7 +40,7 @@
|
|||
#include <net/net_namespace.h>
|
||||
|
||||
static void tr_add_rif_info(struct trh_hdr *trh, struct net_device *dev);
|
||||
static void rif_check_expire(unsigned long dummy);
|
||||
static void rif_check_expire(struct timer_list *t);
|
||||
|
||||
#define TR_SR_DEBUG 0
|
||||
|
||||
|
@ -429,7 +429,7 @@ printk("updating rif_entry: addr:%pM rcf:%04X\n",
|
|||
* Scan the cache with a timer and see what we need to throw out.
|
||||
*/
|
||||
|
||||
static void rif_check_expire(unsigned long dummy)
|
||||
static void rif_check_expire(struct timer_list *t)
|
||||
{
|
||||
int i;
|
||||
unsigned long flags, next_interval = jiffies + sysctl_tr_rif_timeout/2;
|
||||
|
@ -659,7 +659,7 @@ static __initdata struct ctl_path tr_path[] = {
|
|||
static int __init rif_init(void)
|
||||
{
|
||||
rif_timer.expires = jiffies + sysctl_tr_rif_timeout;
|
||||
setup_timer(&rif_timer, rif_check_expire, 0);
|
||||
timer_setup(&rif_timer, rif_check_expire, 0);
|
||||
add_timer(&rif_timer);
|
||||
#ifdef CONFIG_SYSCTL
|
||||
register_sysctl_paths(tr_path, tr_table);
|
||||
|
|
Loading…
Reference in New Issue