X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fipv4%2Finetpeer.c;h=c7527f6b9ad9b54f36185975aed21171757c4600;hb=bc9259a8bae9e814fc1f775a1b3effa13e6ad330;hp=e1e0a4e8fd3469f7534cdc65b7ba3312ad66fa39;hpb=1fad1e9a747687a7399bf58e87974f9b1bbcae06;p=~andy%2Flinux diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c index e1e0a4e8fd3..c7527f6b9ad 100644 --- a/net/ipv4/inetpeer.c +++ b/net/ipv4/inetpeer.c @@ -510,7 +510,10 @@ relookup: secure_ipv6_id(daddr->addr.a6)); p->metrics[RTAX_LOCK-1] = INETPEER_METRICS_NEW; p->rate_tokens = 0; - p->rate_last = 0; + /* 60*HZ is arbitrary, but chosen enough high so that the first + * calculation of tokens is at its maximum. + */ + p->rate_last = jiffies - 60*HZ; INIT_LIST_HEAD(&p->gc_list); /* Link the node. */