Hi,
when start service ovn-controller, the br-int may be not connected, in
case, swconn->version = -1,
on my enviroment, i have loadlalancer, in the process of sending health
check packet, ofp_proto is 0, which will leads controller serivice to abort
in ofputil_encode_packet_out.
So this patch is to avoid this problem.
Signed-off-by: wangchuanlei <[email protected]>
---
controller/pinctrl.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/controller/pinctrl.c b/controller/pinctrl.c
index f954362b7..2fcf91bc9 100644
--- a/controller/pinctrl.c
+++ b/controller/pinctrl.c
@@ -3454,11 +3454,11 @@ pinctrl_handler(void *arg_)
ip_mcast_querier_run(swconn, &send_mcast_query_time);
}
- }
- ovs_mutex_lock(&pinctrl_mutex);
- svc_monitors_run(swconn, &svc_monitors_next_run_time);
- ovs_mutex_unlock(&pinctrl_mutex);
+ ovs_mutex_lock(&pinctrl_mutex);
+ svc_monitors_run(swconn, &svc_monitors_next_run_time);
+ ovs_mutex_unlock(&pinctrl_mutex);
+ }
rconn_run_wait(swconn);
rconn_recv_wait(swconn);
--
2.27.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev