Re: [ovs-dev] [PATCH v9 1/4] token-bucket: Make token-bucket timestamp updated by caller.

2023-08-16 Thread Simon Horman
On Wed, Aug 09, 2023 at 12:19:19AM +0800, mit...@outlook.com wrote: > From: Lin Huang > > Now, token-bucket 'last_fill' is updated by token_bucket_withdraw() itself. > Add a new function parameter 'now' to update timestamp by caller. > > Signed-off-by: Lin Huang ... > diff --git a/lib/vlog.c

[ovs-dev] [PATCH v9 1/4] token-bucket: Make token-bucket timestamp updated by caller.

2023-08-08 Thread miterv
From: Lin Huang Now, token-bucket 'last_fill' is updated by token_bucket_withdraw() itself. Add a new function parameter 'now' to update timestamp by caller. Signed-off-by: Lin Huang --- include/openvswitch/token-bucket.h | 3 ++- lib/token-bucket.c | 4 ++-- lib/vlog.c