[NETNS][FRAGS]: Isolate the secret interval from namespaces.
Since we have one hashtable to lookup the fragment, having different secret_interval-s for hash rebuild doesn't make sense, so move this one to inet_frags. The inet_frags_ctl becomes empty after this, so remove it. The appropriate ctl table is kept read-only in namespaces. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e31e0bdc7e
commit
3b4bc4a2bf
@@ -47,7 +47,7 @@ static void inet_frag_secret_rebuild(unsigned long dummy)
|
||||
}
|
||||
write_unlock(&f->lock);
|
||||
|
||||
mod_timer(&f->secret_timer, now + f->ctl->secret_interval);
|
||||
mod_timer(&f->secret_timer, now + f->secret_interval);
|
||||
}
|
||||
|
||||
void inet_frags_init(struct inet_frags *f)
|
||||
@@ -65,7 +65,7 @@ void inet_frags_init(struct inet_frags *f)
|
||||
|
||||
setup_timer(&f->secret_timer, inet_frag_secret_rebuild,
|
||||
(unsigned long)f);
|
||||
f->secret_timer.expires = jiffies + f->ctl->secret_interval;
|
||||
f->secret_timer.expires = jiffies + f->secret_interval;
|
||||
add_timer(&f->secret_timer);
|
||||
}
|
||||
EXPORT_SYMBOL(inet_frags_init);
|
||||
|
Reference in New Issue
Block a user