diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-01-22 06:09:37 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 15:10:37 -0800 |
commit | b2fd5321dd160ef309dfb6cfc78ed8de4a830659 (patch) | |
tree | 48d56923c239a2f5174e82528ee2632e159d33a7 /net/ipv4/inet_fragment.c | |
parent | e4a2d5c2bccd5bd29de5ae4f14ff4448fac9cfc8 (diff) | |
download | kernel_samsung_tuna-b2fd5321dd160ef309dfb6cfc78ed8de4a830659.zip kernel_samsung_tuna-b2fd5321dd160ef309dfb6cfc78ed8de4a830659.tar.gz kernel_samsung_tuna-b2fd5321dd160ef309dfb6cfc78ed8de4a830659.tar.bz2 |
[NETNS][FRAGS]: Make the net.ipv4.ipfrag_timeout work in namespaces.
Move it to the netns_frags, adjust the usage and
make the appropriate ctl table writable.
Now fragment, that live in different namespaces can
live for different times.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inet_fragment.c')
-rw-r--r-- | net/ipv4/inet_fragment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_fragment.c b/net/ipv4/inet_fragment.c index ad79ae0..9da9679 100644 --- a/net/ipv4/inet_fragment.c +++ b/net/ipv4/inet_fragment.c @@ -206,7 +206,7 @@ static struct inet_frag_queue *inet_frag_intern(struct netns_frags *nf, } #endif qp = qp_in; - if (!mod_timer(&qp->timer, jiffies + f->ctl->timeout)) + if (!mod_timer(&qp->timer, jiffies + nf->timeout)) atomic_inc(&qp->refcnt); atomic_inc(&qp->refcnt); |