]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: replace global gc_args with local variable
authorMichal Kubeček <mkubecek@suse.cz>
Tue, 8 Mar 2016 13:44:25 +0000 (14:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Mar 2016 20:16:50 +0000 (15:16 -0500)
commitdf69a56e7f78d31964911b214731dc094f1cfb67
treee08b44c0e8312a5657e211bcb1c157d116132ee0
parent7733f85c7e60d38bedaf35e89098bc2883aac5fa
ipv6: replace global gc_args with local variable

Global variable gc_args is only used in fib6_run_gc() and functions
called from it. As fib6_run_gc() makes sure there is at most one
instance of fib6_clean_all() running at any moment, we can replace
gc_args with a local variable which will be needed once multiple
instances (per netns) of garbage collector are allowed.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_fib.c