aboutsummaryrefslogtreecommitdiff
path: root/vswitchd/bridge.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-09-12 22:39:01 -0700
committerEthan Jackson <ethan@nicira.com>2011-09-12 22:39:01 -0700
commit21d486606d67881c9dccb59a6f0ba6cbd1af5dfa (patch)
treef7d44e6a7e90db048fc9c4fa7fe1427d75cee6d5 /vswitchd/bridge.c
parent8e9ce036dd93307b50b9189438b3929234391d61 (diff)
bridge: Don't update CFM on synthetic interfaces.
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 <paul@nicira.com> Bug #7278.
Diffstat (limited to 'vswitchd/bridge.c')
-rw-r--r--vswitchd/bridge.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index f1c306d4..d93d5c5b 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) {