Synthetic interfaces don't have database records so it doesn't make
sense to update them.  In some situations this could cause a
segmentation fault.

Reported-by: Paul Ingram <p...@nicira.com>

Bug #7278.
---
 vswitchd/bridge.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index f1c306d..d93d5c5 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -1267,6 +1267,10 @@ iface_refresh_cfm_stats(struct iface *iface)
     const uint64_t *rmps;
     size_t n_rmps;
 
+    if (iface_is_synthetic(iface)) {
+        return;
+    }
+
     fault = ofproto_port_get_cfm_fault(iface->port->bridge->ofproto,
                                        iface->ofp_port);
     if (fault >= 0) {
-- 
1.7.6.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to