[ovs-git] Open vSwitch: ofproto: Recycle least recently used ofport. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Sep 26 20:40:31 UTC 2013


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  fdcea8032d8d179759315627c52f81554a780b63 (commit)
      from  d4ee72b4098d06fc1711f9ab33e0be452d17467b (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 fdcea8032d8d179759315627c52f81554a780b63
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=fdcea8032d8d179759315627c52f81554a780b63
Author: Gurucharan Shetty <gshetty at nicira.com>
		
ofproto: Recycle least recently used ofport.
		
If there is a lot of churn in creation and deletion of
interfaces, we may end up recycling the ofport value of a
recently deleted interface for a newly created interface.
This may result in an old stale openflow rule applying
on the newly created interface.

With this commit, when a new port is added, try and provide
it an ofport value that has not been used during the current
run. If such value does not exist, provide the least
recently used ofport value.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


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

Summary of changes:
 ofproto/ofproto-provider.h |    2 +-
 ofproto/ofproto.c          |   91 +++++++++++++++++++++++++++++++++++++-------
 2 files changed, 78 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list