From: Ethan Jackson Date: Mon, 17 Jun 2013 21:09:50 +0000 (-0700) Subject: ofproto-dpif: Reconfigure tunnel in port_modified(). X-Git-Tag: sliver-openvswitch-1.10.90-3~6^2~97 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f1e78bbd29981a026f732b45cffd7c42a968735d;p=sliver-openvswitch.git ofproto-dpif: Reconfigure tunnel in port_modified(). This seems like the logical place to do it. Signed-off-by: Ethan Jackson --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 194f5bd45..5b4def07e 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -1557,6 +1557,11 @@ port_modified(struct ofport *port_) if (port->cfm) { cfm_set_netdev(port->cfm, port->up.netdev); } + + if (port->tnl_port && tnl_port_reconfigure(&port->up, port->odp_port, + &port->tnl_port)) { + ofproto_dpif_cast(port->up.ofproto)->backer->need_revalidate = true; + } } static void @@ -2889,12 +2894,6 @@ port_run(struct ofport_dpif *ofport) port_run_fast(ofport); - if (ofport->tnl_port - && tnl_port_reconfigure(&ofport->up, ofport->odp_port, - &ofport->tnl_port)) { - ofproto_dpif_cast(ofport->up.ofproto)->backer->need_revalidate = true; - } - if (ofport->cfm) { int cfm_opup = cfm_get_opup(ofport->cfm);