Skip to content

Commit ee74d99

Browse files
edumazetdavem330
authored andcommitted
tun: do not arm flow_gc_timer in tun_flow_init()
Timer is properly armed on demand from tun_flow_update(), so there is no need to arm it at tun init. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 81d98fa commit ee74d99

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/tun.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,8 +1197,6 @@ static void tun_flow_init(struct tun_struct *tun)
11971197

11981198
tun->ageing_time = TUN_FLOW_EXPIRE;
11991199
setup_timer(&tun->flow_gc_timer, tun_flow_cleanup, (unsigned long)tun);
1200-
mod_timer(&tun->flow_gc_timer,
1201-
round_jiffies_up(jiffies + tun->ageing_time));
12021200
}
12031201

12041202
static void tun_flow_uninit(struct tun_struct *tun)

0 commit comments

Comments
 (0)