[ovs-git] Open vSwitch: ofproto: Re-use port numbers of ports that were deleted an hour ago. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Oct 16 17:08:13 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  865b26a4d0793f7789ce61af00843f05a88b0c12 (commit)
      from  3a2742a1fb141b7388d0c8920c0585b2ee79f9bf (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 865b26a4d0793f7789ce61af00843f05a88b0c12
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=865b26a4d0793f7789ce61af00843f05a88b0c12
Author: Gurucharan Shetty <gshetty at nicira.com>
		
ofproto: Re-use port numbers of ports that were deleted an hour ago.
		
We have a least recently used algorithm for assigning ofport values
to newly created ports. i.e., when we don't have any unused ofport
numbers, we use ofport numbers from the oldest deleted port.
What this means is that after using ~65000 previously unused ofport
numbers, we will have to go through all of the possible ports
to see which one was least recently used. This will eventually
slow down ofport allocation.

With this commit, any port that was deleted more than an hour ago is
considered never to have been used. So it's ofport number becomes
free to be used.

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


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

Summary of changes:
 ofproto/ofproto.c |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list