[ovs-git] Open vSwitch: vswitchd: Remove port from datapath if it becomes non-operational (branch-1.5)

dev at openvswitch.org dev at openvswitch.org
Tue Apr 10 11:44:31 PDT 2012


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, branch-1.5 has been updated
       via  613bded455dfed2755c4f734baf2f8ecb046c9ae (commit)
       via  a3edfc39a77445f18c69347dc51f8e7c722fa6e5 (commit)
      from  2eb053125001b1d663e3e3692af9450648eff9b6 (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 613bded455dfed2755c4f734baf2f8ecb046c9ae
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=613bded455dfed2755c4f734baf2f8ecb046c9ae
Author: Ansis Atteka <aatteka at nicira.com>
		
vswitchd: Remove port from datapath if it becomes non-operational
		
If kernel module rejects config changes then vswitchd sets the ofport
column to -1, but does not remove the non-operational port from the
datapath. This patch fixes this problem.

ovs-vsctl add-br ovsbr
ovs-vsctl add-port ovsbr p1
ovs-vsctl add-port ovsbr p2
ovs-vsctl set Interface p1 options:remote_ip=2.1.1.1 options:key=123 type=gre
ovs-vsctl set Interface p2 options:remote_ip=1.1.1.1 options:key=123 type=gre
ovs-vsctl set Interface p2 options:remote_ip=2.1.1.1 options:key=123 type=gre
ovs-dpctl show #observe that p2 does not appear here anymore

Signed-off-by: Ansis Atteka <aatteka at nicira.com>


commit a3edfc39a77445f18c69347dc51f8e7c722fa6e5
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=a3edfc39a77445f18c69347dc51f8e7c722fa6e5
Author: Ansis Atteka <aatteka at nicira.com>
		
datapath: Do not send notification if ovs_vport_set_options() failed
		
There is no need to send a notification if ovs_vport_set_options() failed
and ovs_vport_cmd_set() did not change anything.

Issue#10285

Acked-by: Jesse Gross <jesse at nicira.com>
Signed-off-by: Ansis Atteka <aatteka at nicira.com>


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

Summary of changes:
 datapath/datapath.c |    2 ++
 vswitchd/bridge.c   |    5 +++++
 2 files changed, 7 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Open vSwitch


More information about the git mailing list