[ovs-git] Open vSwitch: dpif-linux: Recycle leaked ports. (master)

dev at openvswitch.org dev at openvswitch.org
Fri Apr 29 23:07:06 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  8522b383863cbc8f0d530fc7d44c0643dcac541d (commit)
      from  0ee17a3ba726ec23cc49f2c40da4b084084dbdb7 (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 8522b383863cbc8f0d530fc7d44c0643dcac541d
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=8522b383863cbc8f0d530fc7d44c0643dcac541d
Author: Ethan Jackson <ethan at nicira.com>
		
dpif-linux: Recycle leaked ports.
		
When ports are deleted from the datapath they need to be added to
an LRU list maintained in dpif-linux so they may be reallocated.
When using vswitchd to delete the ports this happens automatically.
However, if a port is deleted directly from the datapath it is
never reclaimed by dpif-linux.  If this happens often, eventually
no ports will be available for allocation and dpif-linux will fall
back to using the old, kernel implemented, allocation strategy.

This commit fixes the problem by automatically reclaiming ports
missing from the datapath whenever the list of ports in the
datapath is dumped.

Bug #2140.


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

Summary of changes:
 lib/dpif-linux.c |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list