pinsched: Completely fill the token bucket at initialization.
authorBen Pfaff <blp@nicira.com>
Wed, 30 May 2012 21:33:08 +0000 (14:33 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 21 Jun 2012 15:00:07 +0000 (08:00 -0700)
This code, which dates to August 2008, initially sets the packet-in
scheduler token buckets to 10% full, without any rationale.  I suspect
that this is just a typo for 100% full, which I think would be more
conventional, so this commit switches to that.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/pinsched.c

index 41e9c8dd47d54c3d6d832b887a4d4c15b2dca54f..4a939b8bf294f12ce6e18af05deffd51d50a3f61 100644 (file)
@@ -268,7 +268,7 @@ pinsched_create(int rate_limit, int burst_limit)
     ps->n_queued = 0;
     ps->next_txq = NULL;
     ps->last_fill = time_msec();
-    ps->tokens = rate_limit * 100;
+    ps->tokens = rate_limit * 1000;
     ps->n_txq = 0;
     ps->n_normal = 0;
     ps->n_limited = 0;