[ovs-git] Open vSwitch: dpif-linux: Close channel Netlink sockets when a port number gets recycled. (master)

dev at openvswitch.org dev at openvswitch.org
Thu May 2 17:12:11 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  48f6fbe1972a4ab6d47e87913fcf537125e7dcb4 (commit)
      from  12d7685905026b090868056c4d19ee866b6dbe5d (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 48f6fbe1972a4ab6d47e87913fcf537125e7dcb4
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=48f6fbe1972a4ab6d47e87913fcf537125e7dcb4
Author: Ben Pfaff <blp at nicira.com>
dpif-linux: Close channel Netlink sockets when a port number gets recycled.
When ovs-vswitchd deletes a port with dpif_linux_port_del(), that function
uses del_channel() to delete the corresponding channel, including closing
its Netlink socket fd.  However, if the vport gets removed by some other
process (e.g. "ip link delete" for veths) then this function never gets
called and thus the channel never gets deleted.

This commit partially fixes the problem.  Now, if a port number gets
reused, add_channel() closes the old Netlink socket assigned to that port
before it installs the new one.

Bug #16784.
Reported-by: Paul Ingram <paul at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>


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

Open vSwitch

More information about the git mailing list