diff options
author | Ben Pfaff <blp@nicira.com> | 2012-05-30 14:33:08 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-06-21 08:00:07 -0700 |
commit | 68941e3f99fb5a3e1ef7f7b7b700b252c1f4d82f (patch) | |
tree | 23db4f1f6664ff204d950c1e5a5f64c2abf8a64e /ofproto/pinsched.c | |
parent | 98f61d42eb78c49ad423fb9de5dc323a4e0c1b59 (diff) | |
download | openvswitch-68941e3f99fb5a3e1ef7f7b7b700b252c1f4d82f.tar.gz |
pinsched: Completely fill the token bucket at initialization.
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>
Diffstat (limited to 'ofproto/pinsched.c')
-rw-r--r-- | ofproto/pinsched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index 41e9c8dd4..4a939b8bf 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -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; |