Skip to content

Commit

Permalink
netns: add struct net parameter to rt_cache_invalidate
Browse files Browse the repository at this point in the history
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jul 6, 2008
1 parent 9f5e97e commit 86c657f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ static void rt_worker_func(struct work_struct *work)
* many times (2^24) without giving recent rt_genid.
* Jenkins hash is strong enough that litle changes of rt_genid are OK.
*/
static void rt_cache_invalidate(void)
static void rt_cache_invalidate(struct net *net)
{
unsigned char shuffle;

Expand All @@ -792,7 +792,7 @@ static void rt_cache_invalidate(void)
*/
void rt_cache_flush(struct net *net, int delay)
{
rt_cache_invalidate();
rt_cache_invalidate(net);
if (delay >= 0)
rt_do_flush(!in_softirq());
}
Expand All @@ -803,7 +803,7 @@ void rt_cache_flush(struct net *net, int delay)
static void rt_secret_rebuild(unsigned long __net)
{
struct net *net = (struct net *)__net;
rt_cache_invalidate();
rt_cache_invalidate(net);
mod_timer(&net->ipv4.rt_secret_timer, jiffies + ip_rt_secret_interval);
}

Expand Down

0 comments on commit 86c657f

Please sign in to comment.