[ovs-git] Open vSwitch: ofproto: Simplify bucket finding in facet_max_idle() (master)

dev at openvswitch.org dev at openvswitch.org
Thu Jun 30 16:36:31 UTC 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  f11c1ef433cfa363c779176007cbcb9d73b3203a (commit)
      from  dc29f566c17913652984824ce54887fc7903c08d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f11c1ef433cfa363c779176007cbcb9d73b3203a
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=f11c1ef433cfa363c779176007cbcb9d73b3203a
Author: Simon Horman <horms at verge.net.au>
		
ofproto: Simplify bucket finding in facet_max_idle()
		
The existing dual-loop setup is unnecessary
as the outer loop only skips to the first non-zero value
and then exits once the inner loop completes.
Zero values in the inner loop have no affect on its logic.

Signed-off-by: Simon Horman <horms at verge.net.au>
[pushed declaration of subtotal out to function scope]
Signed-off-by: Ben Pfaff <blp at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 ofproto/ofproto-dpif.c |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list